tabtin-ai/tabtin/smart-commit-gen
Claude Code and agent skill by tabtin-ai/tabtin
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Conventional Commits 规范化工具:分析 git diff 自动生成符合规范的提交信息,支持自动检测作用域(scope)并智能推断提交类型(如 feat, fix, refactor)。当用户提及 commit message、提交信息、conventional commits、git commit、规范化提交、scope 检测,或提出“帮我写个 commit message”、“这些改动应该怎么提交”、“分析一下 diff 生成提交信息”等请求时触发。
Install
npx vskill@latest install tabtin-ai/tabtin/smart-commit-genSKILL.md
Git Commit Helper
分析当前 git diff,自动生成符合 Conventional Commits 规范的 commit message,并智能检测 scope。
Quick Start
使用流程(SOP)
1. 获取 diff 分析结果
在用户的 git 仓库中运行脚本,获取自动分析结果:
2. 审查并调整
脚本会输出:
- type:自动推断的提交类型(feat / fix / docs / style / refactor / test / chore / perf / ci / build)
- scope:从文件路径中检测的作用域(如 auth、api、ui 等)
- description:基于变更统计生成的简要描述
- commit_message:组装好的完整 commit message
审查输出后,根据实际语义调整:
- 如果 type 不准确(如脚本判断为 chore 但实际是 feat),用
--type-override覆盖 - 如果 scope 不合适,用
--scope-override覆盖 - description 建议根据实际改动内容手写,脚本输出仅作参考
注意:type 检测基于文件路径和变更统计,对 test/docs/ci/build 等类型的检测较准确,但对修改已有源代码文件的情况(feat vs fix vs refactor)需要你阅读 diff 内容后判断。
3. Conventional Commits 规范参考
| Type | 含义 | |
|---|---|---|
feat | 新功能 | |
fix | Bug 修复 | |
docs | 文档变更 | |
style | 代码格式(不影响逻辑) | |
refactor | 重构(不涉及新功能或修复) | |
test | 测试相关 | |
chore | 构建/工具/依赖等杂项 | |
perf | 性能优化 | |
ci | CI/CD 配置变更 | |
build | 构建系统或外部依赖变更 |
4. Breaking Changes
如果改动包含不兼容变更,在 type 后加 !:
参数说明
| 参数 | 说明 | 默认值 | |
|---|---|---|---|
--repo | Git 仓库路径 | . | |
--staged | 仅分析已暂存的改动 | 否 | |
--format | 输出格式:text 或 json | text | |
--type-override | 手动指定 commit type,跳过自动检测 | 无 | |
--scope-override | 手动指定 scope,跳过自动检测 | 无 |
前置条件
- Python 3.6+
- git 已安装且在 PATH 中
- 当前目录或
--repo指向一个有效的 git 仓库
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/apps/tabtin-dev-toolkit-pack/skills/smart-commit-gen/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tabtin-ai/tabtin/smart-commit-gen)