From ccw
当用户说 'commit'、'save changes'、'wrap up'、'done with changes' 或想要创建 git 提交时使用。分析已暂存/未暂存的更改,并根据项目历史生成规范的提交消息。
How this skill is triggered — by the user, by Claude, or both
Slash command
/ccw:commitThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
此技能分析代码更改并生成遵循项目现有风格的高质量提交消息。
此技能分析代码更改并生成遵循项目现有风格的高质量提交消息。
git log --oneline -15 2>/dev/null || echo "No git history"git branch --show-current 2>/dev/nullgit diff --staged --stat 2>/dev/null | head -30git diff --stat 2>/dev/null | head -20git status -s 2>/dev/null | head -20步骤 1: 分析上下文
步骤 2: 处理未暂存更改
AskUserQuestion 提供选项:暂存所有、暂存特定文件或取消。步骤 3: 分析更改
git diff --staged步骤 4: 生成提交消息
步骤 5: 提议并提交
AskUserQuestion 展示生成的提交消息。git commit -m "<message>"。npx claudepluginhub jrzhang1107/cc-workflow --plugin ccwCreates git commits with clear messages from working tree changes, following repo conventions or conventional commits. Handles clean trees and detached HEAD.
Suggests conventional commit messages by analyzing staged, unstaged, and untracked git changes — read-only, never commits.
Guides git commit workflow: analyzes staged files, generates conventional messages (feat/fix/etc.), updates README for features/setup changes, ignores unstaged.