From git-tools
智能代码提交技能 - 分析变更并生成规范提交信息。 当用户说"提交代码"、"commit"、"生成提交信息"、"帮我commit"、"写commit message"、"检查提交质量"时使用此技能。 支持分析代码变更、自动识别提交类型(feat/fix/docs/refactor等)、生成符合 Conventional Commits 规范的提交信息、执行质量检查。 重要特性:绝不添加任何 AI 工具标识(如 Co-Authored-By AI),保持提交历史专业和干净。
How this skill is triggered — by the user, by Claude, or both
Slash command
/git-tools:commitThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
智能代码提交技能 - 分析变更并生成规范提交信息。
智能代码提交技能 - 分析变更并生成规范提交信息。
# 分析并生成提交信息
/commit analyze
# 执行质量检查
/commit check
# 一键提交
/commit create
<type>(<scope>): <subject>
<body>
<footer>
| 类型 | 说明 | 示例 |
|---|---|---|
| feat | 新功能 | feat(auth): 添加用户登录功能 |
| fix | Bug 修复 | fix(api): 修复用户列表分页问题 |
| docs | 文档更新 | docs(readme): 更新安装说明 |
| refactor | 重构代码 | refactor(utils): 优化日期格式化函数 |
| style | 代码格式 | style: 统一缩进为2空格 |
| test | 测试相关 | test(user): 添加用户服务单元测试 |
| chore | 构建/工具 | chore(deps): 升级依赖版本 |
| perf | 性能优化 | perf(list): 优化列表渲染性能 |
auth, api, ui, dblogin, search, paymentcomponents, services, utilsgit diff --staged 获取暂存区变更{
"commit": {
"messageFormat": "conventional",
"qualityChecks": true,
"autoScope": true,
"maxSubjectLength": 72,
"signCommits": false
}
}
npx claudepluginhub protagonistss/ithinku-plugins --plugin git-toolsCreates Conventional Commits with pre-commit checklists for scope, quality, tests, linting, formatting, and documentation. Ensures one logical change per commit before git commit.
Generates and validates conventional commit messages following the conventionalcommits.org spec. Useful when committing code, reviewing commit format, or creating pull requests.
Manages git commit workflows: checks status and diffs, stages changes selectively, generates and validates conventional commit messages, then executes commits.