查看当前改动并生成规范的 git 提交信息(可选直接提交)。当用户说"提交代码/写 commit/帮我 commit"时使用。
Scanned 9/6/2026
Install to Claude Code
npx -y skills add Ducktang123/claude-code-deepseek --skill git-commit --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Git Commit?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/ducktang123-git-commit-claude-code-deepseek)More formats (shields.io, HTML) on the badges page.
---
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` 跳过钩子,除非用户明确要求。
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!