跳到主要内容
知仓学习社ZHICANG

commit

Stage and create a Conventional Commits message for the current change

不碰外部(只输出文字)无严重或高危命中EverMind-AI/EverOS

它会碰到什么

扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

/commit

Create a well-formed commit following the Conventional Commits

standard. The format is enforced by gitlint in the commit-msg hook.

Steps

  1. Run git status and git diff (and git diff --staged) to see what changed.
  2. Review recent history for style: git log --oneline -10.
  3. Group the change into a single focused commit. If the working tree mixes

unrelated changes, stage selectively (git add -p / specific paths) rather

than committing everything at once.

  1. Write the message in Conventional Commits form:
   <type>[(scope)][!]: <imperative summary, ≤72 chars>

   <optional body: what & why, wrapped at 72>

   <optional footer: BREAKING CHANGE: …, Refs: #123>
  1. Never use --no-verify. If pre-commit hooks fail, fix the cause and re-commit.
  2. Do not commit secrets, generated artifacts, or work-in-progress directly to

the protected main branch.

Types

| Type | Use for |

|---|---|

| feat | new feature |

| fix | bug fix |

| refactor | behavior-preserving restructure |

| test | add / update tests |

| docs | documentation |

| style | formatting only |

| perf | performance |

| chore | config / build / tooling |

| build | build system or dependencies |

| ci | CI configuration |

| revert | revert a previous commit |

Notes

  • No emoji — the title must start with the type.
  • One logical change per commit; keep the history bisectable.
  • The summary is imperative mood: "add", not "added" / "adds".
  • scope is optional: fix(search): …. A ! before the colon (or a

BREAKING CHANGE: footer) marks a breaking change.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 12,997
本站分层T1
该仓技能数5
原文件路径.claude/skills/commit/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 5 个技能