git-atomic-commit
Split a large diff into atomic, review-friendly commits. Use when asked to "split commits", "create atomic commits", "chunk this diff", or prepare clean commit history.
- License 许可
- MIT
- 最近更新
- 2026-04-11
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- git-atomic-commit
- description
- Split a large diff into atomic, review-friendly commits. Use when asked to "split commits", "create atomic commits", "chunk this diff", or prepare clean commit history.
02 资源文件 3
- 参考文档agents/openai.yaml204 B
- 参考文档references/slicing-rules.md393 B
- 脚本scripts/suggest-slices.sh738 B
03 SKILL.md 正文
Git Atomic Commit
Always produce small commits where each commit has one logical purpose and passes checks.
Required Guardrails
- Run
git-run-checksbefore the first commit and after each meaningful commit group. - Never mix refactor + behavior change + formatting in one commit unless unavoidable.
- Keep commit ordering dependency-safe (prerequisites first).
Atomic Slicing Process
- Inspect changes with
git status --shortandgit diff. - Draft commit slices by concern:
- mechanical move/rename
- API or schema changes
- behavior changes
- tests
- docs/chore
- Stage only one slice (
git add -por path-based staging). - Verify staged diff with
git diff --cached. - Commit with a Conventional Commit message (delegate to
git-conventional-commit). - Repeat until working tree is clean.
Quality Checks per Slice
- Commit compiles and tests at least at smoke level.
- Message explains intent, not implementation trivia.
- Follow-up commits do not silently depend on unstaged files.
Optional Helper Script
Use ./scripts/suggest-slices.sh to get candidate commit groupings from file paths.
Boris-Inspired Operating Rules
- Read first, code less, and edit only what is necessary.
- Keep context tight and decisions explicit.
- Prefer deterministic command sequences over ad-hoc experimentation.
- Surface assumptions and risks before finalizing each commit.
Claude Mapping (Optional)
- Use parallel agents only for independent subproblems; merge results into one coherent commit plan.
- Keep each subagent assigned to one commit slice to avoid overlap.
04 同仓库更多 Skills
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
swarm-planner
[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.
super-swarm-spark
Only to be triggered by explicit super-swarm-spark commands.
role-creator
Create and install Codex custom agent roles in ~/.codex/config.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).
read-github
Read and search GitHub repository documentation via gitmcp.io MCP service. **WHEN TO USE:** - User provides a GitHub URL - User mentions a specific repo in owner/repo format - User asks "what does this repo do?", "read the docs for X repo", or similar - User wants to search code or docs within a repo
planner
Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: "make a plan", "create a plan", "plan this out", "plan the implementation", "help me plan", "design a plan", "draft a plan", "write a plan", "outline the steps", "break this down into tasks", "what's the plan for", or any similar planning request. Also triggers on explicit "/planner" or "/plan" commands.