zhangshenao/harness9/commit
Claude Code and agent skill by zhangshenao/harness9
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Use when the user invokes /commit or asks to commit changes, after a code review has been completed and the changes are confirmed ready to stage and commit to git.
Install
npx vskill@latest install zhangshenao/harness9/commitSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
commit — Stage & Commit
Overview
在 Code Review 通过后,将有效的代码变更暂存并提交到本地 Git 仓库。
前置条件检查
- 确认本次对话中已执行过
/cr(Code Review) - 若 Review 报告存在 Critical 问题,停止执行,提示用户先修复
- 若未执行过
/cr,先调用crskill 完成 Review,再继续
执行步骤
1. 确认变更范围
2. 精确暂存文件
不使用 `git add -A` 或 `git add .`,逐文件或逐目录添加:
排除规则:
.env、包含敏感信息的文件 → 不暂存,提示用户确认- 与本次功能无关的临时文件 → 不暂存
3. 起草提交信息
参考以下格式(优先遵循仓库现有风格,通过 git log --oneline -10 判断):
常用 type:feat / fix / docs / refactor / test / chore
禁止在提交信息中添加任何 AI 工具相关的署名,例如 Co-Authored-By: Claude 或类似内容。
4. 执行提交
5. 确认结果
输出提交的 hash 与摘要,告知用户提交成功。
常见错误
| 问题 | 处理 | |
|---|---|---|
| pre-commit hook 失败 | 修复 hook 报告的问题,重新 git add 后创建新 commit,不使用 --amend | |
| 暂存了不该提交的文件 | git restore --staged <file> 取消暂存,重新操作 | |
| 工作区已无变更 | 告知用户没有可提交的内容 |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/commit/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
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/zhangshenao/harness9/commit)