cadence: Skill for Claude Code

.claude/skills/phase-build/SKILL.md

phase-build is a skill for Claude Code from thomas-powers-jr/cadence. It costs 103 tokens per session (1,283 once invoked), scanned A, original, MIT.

A guided build process for carrying out a planned coding phase from separate Git workspaces through review and a pull request. It coordinates helper agents and rechecks their work before accepting it.

In plain words
What is it for?
Use it to implement an approved phase plan, dispatch tasks in waves, verify each result, review the whole branch, combine the changes into one commit, and open a pull request.
Why use it?
It reduces the risk of agents claiming a task is finished when tests still fail or changes were made in the wrong workspace. It also keeps parallel work separated and reviewed.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

This is thomas-powers-jr/cadence's own configuration. It tells Claude Code how to work on cadence itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cadence configures →

Reuse

Borrowing it

Nothing to install: this file belongs to thomas-powers-jr/cadence. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/thomas-powers-jr/cadence/main/.claude/skills/phase-build/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/thomas-powers-jr/cadence

Made for: Claude Code.

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-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/thomas-powers-jr/cadence/phase-build/github.svg)](https://agentmods.dev/skills/thomas-powers-jr/cadence/phase-build)
Your own site
<a href="https://agentmods.dev/skills/thomas-powers-jr/cadence/phase-build"><img src="https://agentmods.dev/badge/skills/thomas-powers-jr/cadence/phase-build/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for phase-build

Your own site · 80×15
<a href="https://agentmods.dev/skills/thomas-powers-jr/cadence/phase-build"><img src="https://agentmods.dev/badge/skills/thomas-powers-jr/cadence/phase-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,283 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.00103 $0.01283
Opus 5 $0.00051 $0.00642
Sonnet 5 $0.00021 $0.00257
Haiku 4.5 $0.00010 $0.00128

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

Security

Grade A, and why

phase-build 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 9d 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.

.claude/skills/phase-build/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Phase build (subagent-driven, verification-first)

The core rule this pipeline exists to enforce: a subagent's "done, all tests passing" is not evidence. Subagents in this repo have twice claimed all-green over real failures. Every completion claim gets re-verified in the main thread before it is recorded.

Preconditions

  • Loop position is BUILD (or DRAFT with an approved draft — run cadence progress).
  • Read the DRAFT: .cadence/phases/<phase>/<id>-DRAFT.md. Note each task's files: boundary, verify: command, and done: AC-N mapping. Respect ## Boundaries (the Do-NOT list) absolutely.

Pipeline

  1. Isolate. Enter a git worktree for the phase (native worktree tool preferred over manual git worktree add; convention: branch feat/<slug>, worktree under .claude/worktrees/<slug>). Before any commit in this pipeline, confirm git rev-parse --show-toplevel points at the worktree — a subagent has committed to the primary checkout by mistake. If this build is deliberately running parallel agents (this phase and another in flight at once), isolate to a worktree/branch from task 1 — before any subagent touches a file — not reactively after a files: conflict is noticed. Also confirm no other live session already holds this phase/draft (check for a running cadence process, an open terminal, or recent PROGRESS.json activity via cadence doctor) before dispatching into it; if one might still be running, resume that session in place instead of starting a second one against the same draft.
  2. Plan waves. Run cadence dispatch plan --json. It computes dispatch waves from depends: edges and files:-overlap edges. Never parallelize two tasks whose files: overlap, even if the plan seems to allow it.
  3. Per wave — implement. Dispatch one implementer subagent per task in the wave (parallel Task-tool calls). Each prompt must contain: the task's full DRAFT text, its files: boundary ("touch nothing else"), TDD order (failing test referencing the AC-N token inside an asserting it()/ test() block, then implementation), the exact verify: command, and an instruction to report the commands it ran with their real output.
  4. Per task — review. Dispatch a fresh, independent reviewer subagent per completed task: adversarial, diff-scoped, checks boundary compliance, test honesty (assertions, not AC-N comment drops), and DRAFT conformance. Findings go back to a fix round, then re-review.
  5. Per task — re-verify yourself. In the main thread: read the actual diff, then run the full pipeline yourself — pnpm turbo run lint typecheck test build (package-filtered while iterating; full before the wave closes). Only after this passes, record cadence done <T>. Never record DONE from a report.
  6. Whole-branch review. After all waves: one fresh subagent reviews the entire branch diff against the DRAFT's Objective + ACs. It must return "ready to merge" with zero Critical/Important findings. History says this pass catches real defects the per-task reviews miss (an ordering bug, doc prose describing a pre-fix algorithm, stale code comments) — do not skip it for "simple" phases.
  7. Settle, one commit. Run cadence settle run --auto — if it refuses, the gate is right until proven otherwise; fix the cause, don't reach for --force/--allow-*. Once it passes, stage everything together — source, tests, docs, the .changeset/*.md for this phase (feature PRs carry their own changeset, never deferred to the release PR), and the phase artifacts (-DRAFT.md, -PROGRESS.json, -SUMMARY.*, and -SUMMARY-snapshot.* if the phase produced any refused-attempt siblings — phase 247) — and make one commit (feat:/fix:, phase id in the subject). state.json/STATE.md stay gitignored, never committed. If the phase closes a Praxis recommendation, promote it to shipped in this same commit.
  8. Land. Exit the worktree, then invoke the pr-land skill.

Read the full file on GitHub · 83 lines

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. 9d ago First seen · 83 lines · 103 tokens per session scan A feaf42550657

Subscribe to this mod's changes

phase-build is a skill published in the GitHub repository thomas-powers-jr/cadence (2 stars, last pushed today), licensed MIT. It adds 103 tokens to every session and 1,283 once invoked, about $0.0005 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

argot-setup

Set argot up for a repository end to end — audit its history, decide what should shape its voice, fit, verify the fit actually catches things, tune the rules its own history says are noisy, and wire the places it runs (pre-write hook, pre-commit, MCP, CI). One sitting, one decision at a time, each proposed with the…

get-tmonier/argot · 129 tokens

using-git-worktrees

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback.

transparent-pegasus/herdrpowers · 36 tokens

finishing-a-development-branch

Use when implementation is complete, all tests pass, and the user needs to decide how to integrate the work - presents the integration candidates (merge locally, push and open a PR, push only, keep) and executes only the chosen one; never merges on its own.

transparent-pegasus/herdrpowers · 60 tokens

ph-git

(PH) Use only for an explicit Git operation with scoped status, diff, and transport discipline.

jyt6640/persona-harness · 24 tokens

gwm

Manage git worktrees across any repository with the gwm Rust binary (CLI + ratatui TUI). Use when the user asks to create / list / remove / bootstrap / switch / link worktrees, run a command across worktrees (gwm exec) or reclaim build artifacts (gwm clean), materialise a PR into a worktree (gwm review), drive a…

kbrdn1/gwm-cli · 0 tokens

ring:creating-worktrees

Creating an isolated git worktree for parallel branch work: selects the directory by priority order, verifies/adds .gitignore safety, auto-installs the detected toolchain's dependencies, runs a baseline test, and reports readiness. Use before a feature that needs isolation from the main workspace or before executing…

LerianStudio/ring · 88 tokens