About git-commit
A skill for committing local Git changes. It checks the worktree, follows Conventional Commits, runs relevant tests, and handles required consistency checks for changes to skills or README.md.
Key features
- 01Check Git worktree status
- 02Conventional Commits messages
- 03Run relevant minimal tests
- 04Check skills and README.md changes
- 05Aim for a clean worktree
Use cases
- 01Committing reviewed local changes
- 02Validating a skills or README.md update
- 03Preparing a focused, auditable commit
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ gitbobobo/ skills --skill git-commitAfter installing, type/git-commitin Claude Code to confirm it loaded.
Details
From the project README提交所有变更(纯本地操作)。
提交要求
- 按可审计粒度提交,提交信息清晰,且只提交应入库文件
- 提交信息满足 Conventional Commits 规范
- 运行修改内容相关的最小范围测试,如果失败需要修复并提交
- 改动涉及
skills/或README.md时,提交前运行node scripts/check.mjs校验一致性
流程
- 先检查
git status --porcelain再决策。 - 若发现应忽略文件/临时文件:征求用户意见后决定 1 纳入提交 2 保留并更新
.gitignore3 直接删除。 - 按「提交要求」完成提交,结束时应尽量保证工作区干净。
Comments
Markdown supported