Use this skill when user asks to "commit changes", "create a commit", "stage and commit", or wants help with git commit workflow.
Create well-structured git commits with conventional commit messages based on staged changes.
{
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Optional commit message override"
},
"type": {
"type": "string",
"enum": ["feat", "fix", "docs", "style", "refactor", "test", "chore"],
"description": "Conventional commit type",
"default": "auto"
},
"scope": {
"type": "string",
"description": "Optional scope for the commit"
}
}
}
git status to see current stategit diff --staged to see staged changesgit diff to see unstaged changesgit statusReport:
type(scope): descriptionUser Input: "Commit my changes"
Expected Behavior:
git status and git diff to understand changesUser Input: "创建一个 fix 类型的 commit"
Expected Behavior:
fix(scope): 描述 的提交信息