Skip to content
Back to skills

Git Commit

ASecurity

查看当前改动并生成规范的 git 提交信息(可选直接提交)。当用户说"提交代码/写 commit/帮我 commit"时使用。

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
ai-agentsgit

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add Ducktang123/claude-code-deepseek --skill git-commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Commit?

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

Security grade badge for Git Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ducktang123-git-commit/badge)](https://www.skillsdirectory.com/skills/ducktang123-git-commit)

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: git-commit
description: 查看当前改动并生成规范的 git 提交信息(可选直接提交)。当用户说"提交代码/写 commit/帮我 commit"时使用。
---

# Git 提交信息生成

根据实际改动生成清晰、规范的提交信息。

## 步骤
1. 查看改动:`git status` 和 `git diff`(已暂存的看 `git diff --cached`)。
2. 理解这次改动**到底做了什么、为什么**。
3. 生成提交信息,采用 Conventional Commits 风格:
   - 格式:`<类型>: <简述>`,类型常用 `feat`(新功能) / `fix`(修复) / `docs` / `refactor` / `test` / `chore`。
   - 标题用祈使句、简洁;必要时空一行后写正文说明动机和影响。
   - 可中文可英文,跟项目历史保持一致(看 `git log` 的风格)。
4. 把建议的提交信息展示给用户。
5. 用户确认后再执行 `git add` + `git commit`(**未经确认不要自动提交或推送**)。

## 原则
- 提交信息描述"做了什么/为什么",不是简单复述代码。
- 一次提交聚焦一件事;改动混杂时建议拆分。
- 不要 `--no-verify` 跳过钩子,除非用户明确要求。

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.

Comments

Loading comments…