Skip to content
Back to skills

Bob Commit Message

ASecurity

根据当前代码改动写出规范的 Git 提交说明。当用户说「写个提交信息」「帮我写 commit message」「提交一下」「生成提交说明」时使用。

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
ai-agentsgit

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add TF49/AI-Helper --skill bob-commit-message --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bob Commit Message?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bob Commit Message
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tf49-bob-commit-message/badge)](https://www.skillsdirectory.com/skills/tf49-bob-commit-message)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.