AGENT SKILL

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

03 SKILL.md 正文

Git Atomic Commit

Always produce small commits where each commit has one logical purpose and passes checks.

Required Guardrails

  1. Run git-run-checks before the first commit and after each meaningful commit group.
  2. Never mix refactor + behavior change + formatting in one commit unless unavoidable.
  3. Keep commit ordering dependency-safe (prerequisites first).

Atomic Slicing Process

  1. Inspect changes with git status --short and git diff.
  2. Draft commit slices by concern:
    • mechanical move/rename
    • API or schema changes
    • behavior changes
    • tests
    • docs/chore
  3. Stage only one slice (git add -p or path-based staging).
  4. Verify staged diff with git diff --cached.
  5. Commit with a Conventional Commit message (delegate to git-conventional-commit).
  6. 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

0xharryriddle
0xharryriddle/codex-field-kit

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.

前端开发
★ 3
0xharryriddle
0xharryriddle/codex-field-kit

swarm-planner

[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

super-swarm-spark

Only to be triggered by explicit super-swarm-spark commands.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

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).

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

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

Skill与智能体开发
★ 3
0xharryriddle
0xharryriddle/codex-field-kit

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.

★ 3