Git slash commands (Gitmoji + Conventional Commits).
Install
/plugin install git@xdanger-pluginsRun it inside Claude Code after adding the marketplace with /plugin marketplace add xdanger/claude-plugins.
Contents
Discovered from sourceCommands 1
Context
- Current git status: !
git status - Current git diff (staged and unstaged changes): !
git diff HEAD - Current branch: !
git branch --show-current - Recent commits: !
git log --oneline -10
Your task
Based on the above changes, create a single git commit following Gitmoji and Conventional Commits specification.
Execution Steps
- Run
git diff --cachedto review all staged changes (ignore unstaged files) - If
$ARGUMENTSis provided, rungh issue view $ARGUMENTSto get issue details - Analyze changes and determine:
- type: feat/fix/docs/style/refactor/perf/test/build/ci/chore/revert
- scope: Extract from issue or branch name (optional)
- gitmoji: Choose emoji matching the change nature
- breaking: Whether there's a breaking change
- Generate commit message in this format:
First line (subject):
<emoji> <type>(<scope>)<exclamation-if-breaking>: <description> (#<issue_id>)
Example: ✨ feat(auth)! support user login (#1234)
Key points:
- description in English, imperative mood (add/fix/update), max 50 characters
- Add exclamation mark after type if breaking change
Body (after blank line):
- <emoji> change description 1
- <emoji> change description 2
- <emoji> change description 3
For breaking changes, append:
💥 BREAKING CHANGE:
- breaking change description
- After committing, run
git statusto confirm
Guidelines
- Output only the commit message, no explanations
- Message must accurately reflect "why" and "what" of changes
- Use active voice, avoid redundant phrases
- If no staged files, output warning message
- Stage additional changes if needed using
git add
You have the capability to call multiple tools in a single response. Stage and create the commit using a single message. Do not use any other tools or do anything else besides git operations needed for the commit.
Sponsors
Details
- Marketplace
- xdanger/claude-plugins
- Source
- plugins/git
- Category
- Community
