From Builder
Turn a spec (.claude/specs/specN.md) plus the explorer memory into (a) a clarity rating out of 10 and (b) a technical implementation plan that the orchestrator can rate. Use after recall-memory, before any code is written. Enforces evidence-first planning: every claim cites path:line, scope is an explicit file list, and the plan must respect the invariants and risks recorded in MEMORY.md. Used by both the Sonnet planner and the Opus escalation planner.
How this skill is triggered — by the user, by Claude, or both
Slash command
/builder:plan-changeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Two outputs, in order: a **clarity rating**, then (only if clear enough) a
Two outputs, in order: a clarity rating, then (only if clear enough) a technical plan.
You already hold the full codebase context (via recall-memory). Read every
.claude/specs/specN.md in scope. Rate how confidently the spec can be
implemented in the right place, without guessing, 0–10:
If clarity < threshold (default 9, from .claude/builder/settings.json):
do not plan. Return the specific blocking questions and why each matters in
code terms (e.g. "spec says 'update the auth check' — RBAC lives in custom
middleware at Startup.cs:228 AND per-controller attributes; which layer?").
The orchestrator surfaces these to the user; nothing is written until answered.
Write to .claude/builder/PLAN.md. Required sections (the deterministic gate
validate-plan.sh checks these — missing any sends the plan back). When
micro_decomposition is on (the default, read from .claude/builder/settings.json),
the ## Tasks breakdown is also required and gated — follow the micro-decompose
skill (${CLAUDE_PLUGIN_ROOT}/skills/micro-decompose/SKILL.md) for right-sizing and
the edge-case taxonomy:
# builder plan — <spec id / short title>
Clarity: N/10
## Goal
What the spec asks for, in one or two sentences. No scope beyond the spec — not 1% extra.
## Scope (files this change may touch)
- path/to/file.ext <- exact repo-relative paths, one per bullet, path first
- path/to/other.ext
(The PreToolUse guard blocks edits to anything not listed here.)
## Approach
Ordered steps. Each step cites evidence as path:line for anything it relies on
(e.g. "extend the handler at OrderService.cs:142"). Separate EVIDENCE (seen in
code) from INFERENCE (assumed) explicitly.
## Tasks
(Required when `micro_decomposition` is on — the default. Skip this section only
when it is off.) Decompose the change per the `micro-decompose` skill into the
smallest INDEPENDENTLY-VERIFIABLE units — proportional, never over-split: a
one-line change is ONE task. One block per task, FIXED schema (the deterministic
gate `validate-plan.sh` parses it):
### Task 1 — <short intent>
- Files/functions: <exact repo-relative paths / symbols this unit touches>
- Existing pattern: <the established pattern/file this follows + the callers of any symbol it changes — see "Explore before change" below>
- Behavior: <precise input → output; the ONE thing this unit does>
- Edge cases:
- <case> → <intended handling> (≥1; pull in the relevant MEMORY.md risks by name)
- Definition of Done: <observable, testable completion incl. edge coverage — not just "compiles">
### Task 2 — <…>
- …
## Risks & invariants (from MEMORY.md)
- Invariants this change must preserve (cite the MEMORY.md risk map).
- New risks this change introduces and how the plan mitigates them.
## Test strategy
How the change will be verified (feature-level cases incl. edge cases; what
app-level regression matters). Names the existing harness if one exists.
## Assumptions & open questions
Anything still uncertain. If this list is non-trivial, clarity was over-rated —
drop the score and return to Step 1.
Before you write a task, find what already exists — recall from MEMORY.md/index.json first, then narrow with grep/ripgrep on concrete symbols:
Existing pattern: line.Existing pattern: (or in Risks). A change that ignores its callers is how
"small mistake, whole-codebase damage" happens.
This is cheap search — it can run at the low-effort tier (see the context-finder / recall-memory
retrieval doctrine). Return summaries, not raw file dumps.## Tasks count tracks distinct behaviors, not lines of code. A trivial spec stays 1–2 tasks. If the breakdown wants many tasks for a small spec, collapse it; if a spec truly needs many, flag in Assumptions that it may be several specs.Clarity score; if clear: the Scope file list + the single riskiest step + your
self-rating of the plan vs. spec/standards. The orchestrator re-rates and runs
validate-plan.sh before any implementation.
npx claudepluginhub hafizmirhamza276-lab/backend-agentic-marketplace --plugin builderGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.