Agent Skills
› spinabot/brigade
› git-commit
git-commit
GitHub指导如何规范地暂存代码、编写符合 Conventional Commits 规范的提交信息,以及使用 gh CLI 创建 Pull Request。强调保持提交原子性、避免提交敏感文件及遵循项目既有风格。
Trigger Scenarios
用户请求生成 Git 提交信息
用户询问如何创建或优化 Pull Request
用户需要规范化 Git 提交流程
Install
npx skills add spinabot/brigade --skill git-commit -g -y
SKILL.md
Frontmatter
{
"name": "git-commit",
"description": "Stage, write, and structure git commits and pull requests cleanly. Read this before committing — for conventional-commit message format, when to split commits, and how to open a PR with the gh CLI.",
"requires-bins": "git"
}
Git commits & PRs
Use this when committing changes or opening a pull request.
Before committing
- Run
git statusandgit diff --stagedto see exactly what's going in. Nevergit add -Ablindly — stage the files that belong to this change. - Keep one logical change per commit. If the diff does two unrelated things, make two commits.
- Don't commit secrets, large binaries, or generated artifacts. Check
.gitignorecovers them.
Message format
Conventional Commits:
<type>(<optional scope>): <short imperative summary>
<optional body — what changed and WHY, wrapped at ~72 cols>
Types: feat, fix, docs, refactor, test, chore, perf, build, ci.
- Summary in the imperative mood ("add", not "added"), ≤72 chars, no trailing period.
- The body explains the reasoning a future reader needs — not a restatement of the diff.
Pull requests (gh CLI)
git push -u origin <branch>thengh pr create --fill(or--title/--body).- PR body: what changed, why, and how it was verified (tests run, manual checks).
- Confirm the base branch is correct before creating.
Conventions to honor
Match the repository's existing style — read recent git log --oneline first and follow whatever format the project already uses if it differs from the above.
Version History
- db99206 Current 2026-07-05 10:58


