Skip to content

Commit b22610a

Browse files
committed
feat: add commit and skill-creator plugins
commit plugin generates conventional commit messages from staged diffs. skill-creator is a minimal port of anthropic's skill-creator with SKILL.md guide and schemas reference (no bundled scripts/agents).
1 parent 4f0d103 commit b22610a

9 files changed

Lines changed: 1078 additions & 3 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
"plugins": [
1111
{
1212
"name": "switch-provider",
13-
"description": "Switch Claude Code between AI providers (Anthropic, zAI, DeepSeek, Kimi, Qwen, MiniMax) with a single command",
13+
"description": "Switch Claude Code between AI providers (Anthropic, Z.AI, Kimi, MiniMax) with a single command",
1414
"version": "1.0.0",
1515
"author": {
1616
"name": "kossakovsky"
1717
},
1818
"source": "./plugins/switch-provider",
1919
"category": "utilities",
2020
"tags": ["provider", "api", "configuration"],
21-
"keywords": ["provider", "switch", "api", "xai", "deepseek", "kimi", "qwen", "minimax"]
21+
"keywords": ["provider", "switch", "api", "zai", "kimi", "minimax"]
2222
},
2323
{
2424
"name": "plugin-development",
@@ -31,6 +31,30 @@
3131
"category": "developer-tools",
3232
"tags": ["development", "plugins", "scaffold", "validation", "tools"],
3333
"keywords": ["claude-code", "plugins", "developer-tools", "scaffold", "validation"]
34+
},
35+
{
36+
"name": "commit",
37+
"description": "Smart git commits with conventional commit message generation",
38+
"version": "1.0.0",
39+
"author": {
40+
"name": "kossakovsky"
41+
},
42+
"source": "./plugins/commit",
43+
"category": "developer-tools",
44+
"tags": ["git", "commits", "conventional-commits"],
45+
"keywords": ["git", "commit", "conventional", "changelog"]
46+
},
47+
{
48+
"name": "skill-creator",
49+
"description": "Create new skills, modify and improve existing skills, and measure skill performance with evals and benchmarks",
50+
"version": "1.0.0",
51+
"author": {
52+
"name": "anthropics"
53+
},
54+
"source": "./plugins/skill-creator",
55+
"category": "developer-tools",
56+
"tags": ["skills", "creator", "evals", "development"],
57+
"keywords": ["skills", "creator", "evals", "development"]
3458
}
3559
]
3660
}

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ Then install any plugin:
1818

1919
| Plugin | Description |
2020
|--------|-------------|
21-
| [switch-provider](plugins/switch-provider/) | Switch Claude Code between AI providers (Anthropic, zAI, DeepSeek, Kimi, Qwen, MiniMax) with a single command |
21+
| [switch-provider](plugins/switch-provider/) | Switch Claude Code between AI providers (Anthropic, Z.AI, Kimi, MiniMax) with a single command |
2222
| [plugin-development](plugins/plugin-development/) | Toolkit for creating, validating, and distributing Claude Code plugins |
23+
| [commit](plugins/commit/) | Smart git commits with conventional commit message generation |
24+
| [skill-creator](plugins/skill-creator/) | Create, test, and improve Claude Code skills with evals and benchmarks |
2325

2426
## Contributing
2527

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "commit",
3+
"version": "1.0.0",
4+
"description": "Smart git commits with conventional commit message generation",
5+
"author": { "name": "kossakovsky" },
6+
"license": "MIT",
7+
"keywords": ["git", "commit", "conventional-commits"]
8+
}

plugins/commit/README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# commit
2+
3+
Smart git commits with conventional commit message generation.
4+
5+
## Installation
6+
7+
```bash
8+
/plugin marketplace add kossakovsky/claude-code-plugins
9+
/plugin install commit@claude-code-plugins
10+
```
11+
12+
## Usage
13+
14+
Generate a commit message automatically:
15+
16+
```bash
17+
/commit:commit
18+
```
19+
20+
Use a custom commit message:
21+
22+
```bash
23+
/commit:commit "feat: add new feature"
24+
```
25+
26+
## How It Works
27+
28+
1. Analyzes staged changes with `git diff --staged`
29+
2. Detects the project's commit style from recent history
30+
3. Determines the change type (feat, fix, refactor, etc.)
31+
4. Generates a conventional commit message
32+
5. Asks for approval before committing
33+
34+
## Conventional Commits Format
35+
36+
Messages follow the format: `type(scope): description`
37+
38+
Types: `feat`, `fix`, `refactor`, `docs`, `chore`, `test`, `style`, `perf`, `ci`, `build`
39+
40+
## License
41+
42+
MIT

plugins/commit/commands/commit.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
description: "Create a git commit with a generated conventional commit message"
3+
argument-hint: "[message]"
4+
---
5+
6+
# Smart Git Commit
7+
8+
Create a git commit with a conventional commit message, either provided or auto-generated.
9+
10+
## Steps
11+
12+
1. **Check for provided message**: If an argument was provided, use it as the commit message directly and skip to step 6.
13+
14+
2. **Check working tree state**: Run `git status` to see the current state of the repository.
15+
16+
3. **Handle staging**:
17+
- If nothing is staged, show the unstaged changes and ask the user what to stage.
18+
- Suggest `git add -A` to stage everything, or let the user specify individual files.
19+
- Never stage files without explicitly showing what will be staged and getting confirmation.
20+
21+
4. **Analyze staged changes**: Run `git diff --staged` to understand what has been changed.
22+
23+
5. **Detect project commit style**: Run `git log --oneline -10` to see recent commit messages and adapt to the project's conventions.
24+
25+
6. **Determine change type**: Analyze the diff to classify the change as one of:
26+
- `feat` — new feature
27+
- `fix` — bug fix
28+
- `refactor` — code restructuring without behavior change
29+
- `docs` — documentation only
30+
- `chore` — maintenance, dependencies, config
31+
- `test` — adding or updating tests
32+
- `style` — formatting, whitespace, linting
33+
- `perf` — performance improvement
34+
- `ci` — CI/CD configuration
35+
- `build` — build system or external dependencies
36+
37+
7. **Generate commit message**: Create a message following the conventional commit format:
38+
```
39+
type(scope): description
40+
```
41+
- **type**: determined from the diff analysis above
42+
- **scope**: optional, inferred from the changed files or directories
43+
- **description**: concise summary of changes in imperative mood (e.g., "add user auth endpoint", not "added user auth endpoint")
44+
45+
8. **Present for approval**: Show the generated commit message and ask the user to approve, edit, or reject it.
46+
47+
9. **Execute commit**: If approved, run `git commit -m "<message>"`.
48+
49+
10. **Show result**: Display the commit output to confirm success.
50+
51+
## Important Rules
52+
53+
- Never force-push or amend commits without an explicit request from the user.
54+
- Never stage files without showing what will be staged first.
55+
- If there are no changes at all (nothing staged, nothing modified, no untracked files), inform the user and stop.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "skill-creator",
3+
"version": "1.0.0",
4+
"description": "Create new skills, modify and improve existing skills, and measure skill performance with evals and benchmarks",
5+
"author": { "name": "anthropics" },
6+
"license": "MIT",
7+
"keywords": ["skills", "creator", "evals", "development"]
8+
}

plugins/skill-creator/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# skill-creator
2+
3+
Create, modify, and improve Claude Code skills. Originally from [anthropics/skills](https://github.com/anthropics/skills).
4+
5+
## Installation
6+
7+
```bash
8+
/plugin marketplace add kossakovsky/claude-code-plugins
9+
/plugin install skill-creator@claude-code-plugins
10+
```
11+
12+
## What It Does
13+
14+
The skill-creator activates automatically when you want to create or improve a Claude Code skill. It guides you through:
15+
16+
1. **Capturing intent** -- understanding what the skill should do and when it should trigger
17+
2. **Writing the SKILL.md** -- structured guidance on frontmatter, progressive disclosure, and writing patterns
18+
3. **Testing** -- running eval test cases with and without the skill
19+
4. **Iterating** -- improving based on feedback until the skill works well
20+
5. **Description optimization** -- tuning triggering accuracy
21+
22+
## Included
23+
24+
- `SKILL.md` -- comprehensive skill creation guide (~480 lines)
25+
- `references/schemas.md` -- JSON schemas for evals, grading, benchmarks, and other data structures
26+
27+
## License
28+
29+
MIT

0 commit comments

Comments
 (0)