phase-commit

phase-commit is a skill for Claude Code from yarlson/yarstack. It costs 36 tokens per session (264 once invoked), scanned A, original, MIT.

A process for creating one local Git commit for a completed and verified unit of work. Git commits record selected file changes in the project’s local history.

In plain words
What is it for?
Use it after validation and review to inspect the worktree, stage only explicit paths, create a repository-style commit, and verify the resulting commit without pushing it.
Why use it?
It helps keep the commit isolated, preserves unrelated work, and confirms that the committed files match the requested change.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the yarstack plugin — 41 skills shipped together

Good fit Use it after validation and review to inspect the worktree, stage only explicit paths, create a repository-style commit, and verify the resulting commit without pushing it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yarlson/yarstack/phase-commit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yarlson/yarstack --skill phase-commit
Clone the repo
git clone --depth 1 https://github.com/yarlson/yarstack

Made for: Claude Code.

Or install yarstack, the plugin that ships this one along with the rest of its 41 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for phase-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/yarlson/yarstack/phase-commit.svg)](https://agentmods.dev/skills/yarlson/yarstack/phase-commit)
Your own site
<a href="https://agentmods.dev/skills/yarlson/yarstack/phase-commit"><img src="https://agentmods.dev/badge/skills/yarlson/yarstack/phase-commit.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 264 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00264
Opus 5 $0.00018 $0.00132
Sonnet 5 $0.00007 $0.00053
Haiku 4.5 $0.00004 $0.00026

Measured 7d ago against content hash 73189c72ead4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

phase-commit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/yarstack/skills/phase-commit/SKILL.md · 26 lines

What it actually says

Phase Commit

Create one isolated local commit without changing history or external state.

Workflow

  1. Confirm required repository checks and applicable validation and review cover the exact intended content.
  2. Inspect status, staged and unstaged changes, and relevant untracked files; preserve all unrelated user work.
  3. Stop when scope is ambiguous or includes sensitive, unexpectedly generated, or otherwise unsafe paths.
  4. Stage only explicit paths with git add -- <paths>; never use broad staging commands or globs.
  5. Review the staged path list and diff against the requested unit.
  6. Draft the commit subject and body using repository conventions, then use text-improve without changing technical meaning.
  7. Commit without bypassing hooks or changing signing policy.
  8. Verify the created commit content and remaining worktree.

Do not amend, rewrite history, push, create branches or pull requests, manage CI, tag, release, or include unrelated changes.

On hook or commit failure, stop and report the blocker without claiming completion.

Finish only after verifying the created commit, then report its hash and concise summary.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 26 lines · 36 tokens per session scan A 73189c72ead4

Subscribe to this mod's changes

phase-commit is a skill published in the GitHub repository yarlson/yarstack (3 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 264 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

work-unit-commits

Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.

Gentleman-Programming/gentle-ai · 33 tokens

plate

Turn finished local work into a commit, an ordinary pull request, or a pull request stack. Use this skill to commit changes or to publish a branch. Use it to open or update a pull request. Use it to create, sync, restack, or submit a pull request stack. You can also run /plate. This skill owns all staging, commits…

paulnsorensen/easy-cheese · 106 tokens

requesting-code-review

Use when implementation is done and you need a structured pre-PR review workflow. Triggers: 'ready for review', 'review my changes before PR', 'pre-merge check', 'is this ready', 'submit for review'. NOT for: post-merge review (use code-review) or deciding how to integrate (use finishing-a-development-branch).

axiomantic/spellbook · 77 tokens

owndiff-pre-commit

Audit OwnDiff changes before committing or releasing by checking scope, generated artifacts, private data, documentation accuracy, version consistency, structured files, tests, and the OwnDiff ownership gate. Use when a user asks to verify, clean up, prepare, commit, publish, or release changes in the OwnDiff…

owndiff/own-your-diff · 77 tokens

create-commit

Create a git commit whose message records why the change exists, not just what changed. Stages only the files that belong to the change, matches the repo's existing commit style, and shows the message and staged files for user approval before committing. Use when asked to commit work or write a commit message.…

TwiTech-LAB/devchain · 84 tokens

standalone-pr-loop

Implement same-repository GitHub Issues into a reviewed pull request, or review and fix an existing PR, iterating with fresh independent read-only native subagents selected adaptively from the change risk until no actionable feedback remains. Use for issue-to-PR implementation or iterative PR review/fix work.

dceoy/ai-coding-agent-skills · 64 tokens