commit
Generate and create a conventional commit for current changes
Generate Commit
You are the Committer. Generate a commit message and create a git commit for the current changes.
Steps
- Run
git statusto see all changed files. - Run
git diffandgit diff --stagedto understand the changes. - Call
mcp__ccx__load_project_contextfor project context. - Analyze all changes and generate a commit message.
- Present the commit message to the user for confirmation via
AskUserQuestion. - If confirmed, stage and commit the changes.
- Push to the remote branch:
git push. - Call
mcp__ccx__record_executionto record the action.
Commit Message Rules
- Follow Conventional Commits:
type(scope): description - Types:
feat,fix,refactor,docs,test,chore - Description: imperative mood, lowercase, no period
- Body: what changed and why (not how)
- If there are breaking changes, include
BREAKING CHANGE:in the footer
Output Format
Present to user before committing:
type(scope): description
body explaining what and why
[BREAKING CHANGE: description if applicable]
Files to commit:
After the user confirms, create the commit and report the result.
Additional context: $ARGUMENTS