Enforce frequent atomic commits while doing coding work. Always use this skill at the start of any task that may edit code, configuration, tests, documentation, generated metadata, or other repository files; apply it before implementing features, fixing bugs, refactoring, formatting, or making multi-step changes.
Ships in kf-global. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
この skill は、コーディングタスク開始時に必ず参照する commit 粒度の規約。 変更はアトミックな単位に分け、必要な検証が通った論理単位で commit する。
変更は必ず「アトミック(最小単位)」に分割し、こまめにコミットする。
1つの関心事
常にビルド可能な状態
リファクタリングの分離
レビューしやすいサイズ
Fix multiple issues are strictly prohibited.git status --short --untracked-files=all で既存変更を確認する。git diff --cached --stat と git diff --cached --name-status で commit 対象を確認する。概要 は What、Why はなぜこのように実装・変更したか(判断理由)とする。git commit を実行する。CLI ツールによりコードベースに何かしらの変更が加えられた時 → 1 commit
feat_: CLI > sv create コマンド実行
- 概要: `sv create` コマンドを実行し生成物を追加
- Why: 手動 scaffold よりテンプレート生成の方が初期構成のばらつきを抑えられるため
機能変更と typo 修正が同時に見つかった時 → 2 commit
生成ファイルと元コード更新が同じ論理変更に属する時 → 1 commit
| skill | 役割 |
|---|---|
| 本 skill(atomic-rules) | commit 粒度、検証タイミング、論理単位の分割 |
| kf-g-git-commit-staged-only-rules | ユーザー commit 依頼時の staged 対象限定(What を stage する範囲) |
| kf-g-git-commit-japanese-commit-message | commit メッセージ形式と Why 記述(canonical) |
通常 commit は上記 2 skill(staged-only + japanese-commit-message)を意図的に併用する。ユーザーが /genshijin-commit を明示した場合のみ外部 skill を優先する(優先順位は kf-g-code-how-what-why-why-not-principles を参照)。
この skill は、エージェントがコーディング作業を進めるときの commit 粒度を扱う。
ユーザーが明示的に commit を依頼した場合だけ、kf-g-git-commit-staged-only-rules を優先し、依頼時点ですでに staged 済みの変更だけを commit 対象にする。
Fix multiple issues のような大きい commit。完了時は、作成した commit、検証内容、未 commit 変更の有無を短く報告する。
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/kf-global:kf-g-git-commit-atomic-rulesfrom kf-global
npx claudepluginhub melumuccu/ai --plugin kf-global35 skills in this plugin
/kf-g-agent-git-managed-workflowUse this skill when changing any git-managed files in a repository. Always apply it before creating issues, dedicated worktrees, commits, or pull requests for such changes; covers issue-first planning, worktree path and branch naming, atomic commits, push, PR creation, presenting the PR URL to the user, and stopping on hook failures without --no-verify.
/kf-g-agent-planning-design-as-finalUse this skill whenever creating or revising planning documents, design docs, issue/PR planning HTML, or any equivalent design text. Rewrite the published text as one complete final design, as if it had been planned that way from the start, for a reader with no prior conversation./kf-g-agent-research-report-only-unless-approvedUse this skill whenever the user asks to research, compare, review, evaluate, explain, recommend, or select something and the request does not clearly ask for file edits. In these cases, report findings only and do not modify documents, source code, dependencies, generated files, or git state until the user explicitly approves applying changes./kf-g-agent-review-adversarial-after-primary-responseUse this skill after finishing design or implementation and after giving the user the primary response. Always apply it then to run adversarial evaluation, and implementation verification or two-stage review as specified, so findings can be used for self-improvement./kf-g-agent-review-adversarial-evaluationUse this skill when the user asks for advice, review, critique, evaluation, feedback, or a second opinion on a design, plan, proposal, document, approach, or similar artifact. Do not use after finishing design or implementation and after the primary user response (use kf-g-agent-review-adversarial-after-primary-response), for post-implementation two-stage programming reviews (use kf-g-agent-review-post-implementation-two-stage), or as the edit-approval gate (use kf-g-agent-research-report-only-unless-approved)./kf-g-agent-review-post-implementation-two-stageUse this skill for programming design and implementation reviews after completion and after giving the user the primary response, including code, configuration, tests, and CI/CD changes. Start with a diff-first review, then resume the same reviewer for plan alignment; route documentation-only, business-planning, general-research, and nontechnical work through the appropriate single-stage review process.