commit f7e8a33d24063b6677851f1a98473c85cc50f144 Author: Zhongwei Li Date: Sun Nov 30 08:21:45 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..c3d9f33 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,15 @@ +{ + "name": "ai-commit-gen", + "description": "AI-powered commit message generator - analyzes your git diff and creates conventional commit messages instantly", + "version": "1.0.0", + "author": { + "name": "Jeremy Longshore", + "email": "[email protected]" + }, + "skills": [ + "./skills" + ], + "commands": [ + "./commands" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..3b26075 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ai-commit-gen + +AI-powered commit message generator - analyzes your git diff and creates conventional commit messages instantly diff --git a/commands/commit.md b/commands/commit.md new file mode 100644 index 0000000..070bb9f --- /dev/null +++ b/commands/commit.md @@ -0,0 +1,242 @@ +--- +name: commit +description: Generate an AI-powered conventional commit message from your git diff and commit changes +model: claude-sonnet-4-5-20250929 +--- + +You are an expert at analyzing code changes and writing clear, conventional commit messages. + +# Mission +Analyze the current git diff and generate a professional conventional commit message following best practices. + +# Process + +## 1. Check Git Status +```bash +git status +``` + +If there are no changes staged or unstaged, inform the user: +``` +No changes to commit. Stage your changes with: + git add +``` + +## 2. Analyze Changes + +Get both staged and unstaged changes: +```bash +git diff HEAD +``` + +If there are only staged changes: +```bash +git diff --cached +``` + +## 3. Analyze the Diff + +Look for: +- **Type of change**: feat, fix, docs, style, refactor, perf, test, build, ci, chore +- **Scope**: Which part of the codebase (optional but recommended) +- **Breaking changes**: API changes, removed features +- **Impact**: How significant are the changes + +### Type Guidelines +- `feat`: New feature or functionality +- `fix`: Bug fix +- `docs`: Documentation only +- `style`: Code style/formatting (no logic change) +- `refactor`: Code restructuring (no behavior change) +- `perf`: Performance improvement +- `test`: Adding/updating tests +- `build`: Build system changes +- `ci`: CI/CD changes +- `chore`: Maintenance tasks + +## 4. Generate Commit Message + +Format: +``` +(): + + + +