Back to skills
SKILL.md
Bob Commit Message
ASecurity根据当前代码改动写出规范的 Git 提交说明。当用户说「写个提交信息」「帮我写 commit message」「提交一下」「生成提交说明」时使用。
- 8 stars
- 0 votes
- 0 copies
- 1 view
- Added November 29, 2026
Security analysis
100/100npx -y skills add TF49/AI-Helper --skill bob-commit-message --agent claude-codeAre you the author of Bob Commit Message?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tf49-bob-commit-message)---
name: bob-commit-message
description: 根据当前代码改动写出规范的 Git 提交说明。当用户说「写个提交信息」「帮我写 commit message」「提交一下」「生成提交说明」时使用。
---
# Git 提交说明
## 步骤
1. 运行 `git status` 和 `git diff --staged` 查看已暂存的改动;没有暂存内容时看 `git diff`,并告诉用户还没有暂存。
2. 运行 `git log --oneline -10`,沿用这个仓库已有的写法(语言、前缀、大小写)。
3. 写出提交说明,交给用户确认。**不要自己执行 `git commit`,除非用户明确要求。**
## 格式
仓库没有自己的约定时,使用 Conventional Commits:
```
<类型>(<范围>): <一句话说明>
<正文:为什么要改,改了之后有什么不同>
```
- 类型:`feat` 新功能、`fix` 修复、`docs` 文档、`refactor` 重构、`test` 测试、`chore` 杂项。
- 范围:受影响的模块,可省略。
- 标题不超过 60 个字符,不加句号,用祈使语气(「添加」「修复」,而不是「添加了」)。
- 正文写原因和影响,不要复述 diff。改动很小且标题已经说清楚时可以不写正文。
## 注意
- 一次提交只说一件事。改动明显包含多件不相关的事时,建议用户拆成多次提交,并给出拆分方式。
- 改动里出现密钥、密码、`.env` 这类文件时,先提醒用户,不要写进提交说明里带过。
- 不要在提交说明里加入用户没有要求的署名或广告。
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.