Back to skills
SKILL.md
Git Commit
ASecurity查看当前改动并生成规范的 git 提交信息(可选直接提交)。当用户说"提交代码/写 commit/帮我 commit"时使用。
- 3 stars
- 0 votes
- 0 copies
- 2 views
- Added September 6, 2026
Security analysis
100/100npx -y skills add Ducktang123/claude-code-deepseek --skill git-commit --agent claude-codeAre you the author of Git Commit?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ducktang123-git-commit)---
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
Comments
Loading comments…