|
| 1 | +Generate a conventional commit message for the current staged changes. |
| 2 | + |
| 3 | +Analyze the git diff of staged files and create a commit message following conventional commits specification: |
| 4 | + |
| 5 | +**Format:** `<type>(<scope>): <description>` |
| 6 | + |
| 7 | +**Types:** |
| 8 | + |
| 9 | +- feat: new feature |
| 10 | +- fix: bug fix |
| 11 | +- docs: documentation |
| 12 | +- style: formatting, missing semicolons, etc. |
| 13 | +- refactor: code change that neither fixes a bug nor adds a feature |
| 14 | +- test: adding or correcting tests |
| 15 | +- chore: maintenance tasks |
| 16 | +- ci: continuous integration changes |
| 17 | +- revert: reverts a previous commit |
| 18 | + |
| 19 | +**Scopes:** |
| 20 | + |
| 21 | +- api: Lua API and Python API communication |
| 22 | +- log: Logging and Replay functionality |
| 23 | +- bot: Python bot framework and base classes |
| 24 | +- examples: Example bots and usage samples |
| 25 | +- dev: Development tools and environment |
| 26 | + |
| 27 | +**Workflow:** |
| 28 | + |
| 29 | +1. Run `git status` to see overall repository state. If there are are no staged changes, exit. |
| 30 | +2. Run `git diff --staged` to analyze the actual changes |
| 31 | +3. Run `git diff --stat --staged` for summary of changed files |
| 32 | +4. Run `git log --oneline -10` to review recent commit patterns |
| 33 | +5. Choose appropriate type and scope based on changes |
| 34 | +6. Write concise description (50 chars max for first line) |
| 35 | +7. Include body if changes are complex |
| 36 | +8. Return the generated commit message enclosed in triple backticks |
| 37 | + |
| 38 | +**Notes** |
| 39 | + |
| 40 | +- Do not include emojis in the commit message. |
| 41 | +- Do not include `🤖 Generated with [Claude Code](https://claude.ai/code)` in the commit message. |
| 42 | +- If the list is empty, do not add any co-authors |
| 43 | +- Include in the body of the commit message the following line as last line: `# Co-Authored-By: Claude <noreply@anthropic.com>` |
0 commit comments