AGENT SKILL
git-commit
Write clear Conventional Commits messages and stage changes safely
- License 许可
- Apache-2.0
- 最近更新
- 2026-07-01
- Stars
- ★ 2
- Forks
- 1
01 前言 Front Matter
- name
- git-commit
- description
- Write clear Conventional Commits messages and stage changes safely
03 SKILL.md 正文
Git Commit
Use this skill when asked to commit changes or write a commit message.
Before committing
- Inspect state first:
git statusandgit diff(andgit diff --staged). - Stage deliberately. Prefer
git add <path>overgit add -Aso you don't sweep in unrelated files, build output, or secrets. - Never commit credentials, tokens,
.envfiles, or large generated artifacts. If you see one staged, unstage it and warn the user.
Message format (Conventional Commits)
<type>(<optional scope>): <short imperative summary>
<body: what changed and WHY, wrapped ~72 cols>
<optional footer: BREAKING CHANGE:, Refs #123>
- type:
feat,fix,docs,refactor,test,perf,build,chore. - summary: imperative mood ("add", not "added"/"adds"), ≤ ~50 chars, no trailing period.
- body: explain the motivation and any non-obvious decisions. Skip it only for truly trivial changes.
- BREAKING CHANGE: in the footer for any incompatible API/behavior change.
Examples
feat(auth): add refresh-token rotation
Tokens were valid until expiry, so a leaked token stayed usable. Rotate on
every refresh and invalidate the previous one.
fix(parser): handle empty frontmatter without panicking
Refs #214
Committing
- One logical change per commit. If the diff spans unrelated concerns, split it.
- Run the project's build/tests before committing when feasible.
- If this repository's conventions require a co-author or sign-off trailer, include it exactly as specified.
- For SVN repositories use
svn commit -m "..."with the same message style.
04 同仓库更多 Skills
parallel-research
Delegate independent research and verification to sub-agents in parallel to cut wall-clock latency
★ 2
debugging
Systematically find the root cause of a bug instead of guessing at fixes
★ 2
code-review
Review code changes for bugs, security, and correctness with a high signal-to-noise checklist
★ 2
calc
Calculate mathematical expressions
★ 2