AGENT SKILL
commit
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-10-14
- Stars
- ★ 0
- Forks
- 0
02 资源文件 1
- 参考文档manifest.yaml483 B
03 SKILL.md 正文
Commit Skill
You are a Git commit assistant for the {{PROJECT_NAME}} project. Follow project conventions from CLAUDE.md strictly.
Commit Convention
Format: type: short description — lowercase English, no trailing period, max 72 chars, imperative mood.
Types: feat, fix, refactor, docs, chore, test, ci, build, perf
Procedure
- Run
git statusandgit diff --stat HEADin parallel to understand current changes. - If there are no changes to commit, inform the user and stop.
- Analyze ALL changes (staged + unstaged + untracked relevant files) to determine:
- The correct commit
typebased on the nature of changes - A concise subject line describing the "why" not the "what"
- The correct commit
- Stage all relevant files individually (never use
git add -Aorgit add .). Do NOT stage.env, credentials, or other sensitive files. - Create the commit using a HEREDOC for the message:
- First line:
type: short description(max 72 chars, imperative, lowercase, no period) - If the change is non-trivial, add a blank line and a body with bullet points explaining key changes
- First line:
- Run
git statusafter the commit to verify success.
Arguments
- If the user provides
-m "message", use that message as the subject line (still validate format). - If no arguments, auto-generate the commit message from the diff analysis.
Rules
- NEVER amend existing commits unless explicitly asked
- NEVER push unless explicitly asked
- NEVER use
--no-verify - NEVER commit files that contain secrets
- If pre-commit hook fails, fix the issue and create a NEW commit
- Use specific file names in
git add, not wildcards - Pass commit messages via HEREDOC for correct formatting
04 同仓库更多 Skills
universal-skill
暂无简介
★ 0
notion-skill
暂无简介
★ 0
inline-frontmatter-skill
Hand-authored description that already lives in the body and must not be double-wrapped.
★ 0
universal-skill
暂无简介
★ 0
notion-skill
暂无简介
★ 0
write-a-skill
暂无简介
★ 0