commit
Split a dirty working tree into an ordered list of atomic conventional commits, then commit them only on an explicit literal OK. Reads `git diff HEAD` to plan; messages are single-line.
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- commit
- description
- Split a dirty working tree into an ordered list of atomic conventional commits, then commit them only on an explicit literal OK. Reads `git diff HEAD` to plan; messages are single-line.
- disable-model-invocation
- false
03 SKILL.md 正文
Commit
Split the uncommitted working tree into atomic commits — propose them, then commit only on an explicit OK.
1. See the changes
git status # surfaces untracked files the diff misses
git diff HEAD
The diff is enough to plan. If you already know these files from this session, don't re-read them — go straight to the proposal.
2. Propose the commits
Number each commit; put its exact message on its own line, files bulleted below — readable even with long messages or many files:
**1.** `feat(auth): add token refresh endpoint`
- src/auth/refresh.ts
- src/auth/routes.ts
**2.** `test(auth): cover refresh expiry edge cases`
- src/auth/refresh.test.ts
One logical change per commit, ordered so the history reads sensibly. Don't over-split — merging two would-be commits into one for simplicity is fine.
Message format: conventional type(scope): description — feat, fix,
chore, test, refactor, docs. Single-line, English, present tense, brief.
No body. No Co-Authored-By footer (the system default asks for one; never
add it).
3. Wait for OK
After showing the plan, stop. Only the literal OK (or ok) commits.
OK, but <change> → adjust, re-show, wait. Anything else → adjust, re-show,
wait. "go ahead" / "commit that" / picking commits is not an OK.
4. Commit
For each commit, in order:
git add <files>
git commit -m "type(scope): description"
Then show git log --oneline of the new commits. Commits only — no push.
04 同仓库更多 Skills
zoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
walkthrough
Build a throwaway HTML reading guide for a set of changes (dirty tree, local commits, or a PR): what it means for users and for the system, then an ordered walk through the code with links that open each file in the IDE. Orients the human; leaves every quality call to them.
teach
Teach the user a new skill or concept, within this workspace.
suggest-reviewers
Suggest GitHub reviewers for the current branch's Pull Request by ranking the people who actually own and recently touched the changed files (git history + CODEOWNERS). Use when the user asks who should review this PR/branch or wants reviewer suggestions. Also invoked as the final step of the github-pr skill.
setup-skills
Sets up an `## Agent skills` block in AGENTS.md/CLAUDE.md and `docs/agents/` so the engineering skills know this repo's issue tracker (GitHub, GitLab, ClickUp, or local markdown), domain doc layout, and error tracking. Run as a first-time bootstrap for a repo, or if engineering skills appear to be missing context about the issue tracker, domain docs, or error tracker.