用途:这是一个 Git 提交管理技能,专注 conventional commits 规范、提交信息质量、git 历史分析与 issue 关联。当用户明确询问提交格式、请求撰写提交、提到 conventional commits、询问提交质量、要求分析提交历史,或引用 /commit-smart、/commit-review、/commit-interactive 命令时自动触发;对话中随意提到 commit 不触发。
主要能力:生成符合规范的提交信息(结构为 type(scope): subject,含 body 与 footer);评审提交的格式、清晰度与一致性;分析 git 历史中的模式与问题;将提交关联到 GitHub issue(Closes #N、Fixes #N、Refs #N、Progresses #N);识别并记录破坏性变更;从提交历史生成 changelog;按 scope、类型与文件关系对多文件做智能分组,支持 WIP 整理、rebase/squash 建议。
使用方式:可直接对话触发,或通过 /commit-smart、/commit-review、/commit-interactive 命令。日志查看示例:git log --oneline -20、git log main...HEAD --oneline、git log --stat -10、git log --grep="auth" --oneline。辅助脚本:python {baseDir}/scripts/commit-analyzer.py check-format(或 find-fixups、analyze-size、report --branch feature/auth);python {baseDir}/scripts/conventional-commits.py validate "feat(auth): add login"(或 generate、interactive、validate-branch feature/auth);python {baseDir}/scripts/issue-tracker.py sync assigned(或 sync labeled priority:high、suggest-refs、get 42、show、clear、json)。issue 缓存路径为 .claude/github-workflows/active-issues.json。
适用场景:日常提交撰写与格式校验、分支提交历史评审、PR 中提交质量检查、多 scope 变更拆分提交、提交与 issue 自动关联。
限制:资料未提供具体运行环境要求、依赖版本、脚本参数完整列表、与各托管平台(GitHub 之外)的兼容性、网络与令牌配置细节,以及收费或价格信息。