Guides the design process before implementation: explores context, challenges assumptions, proposes approaches with trade-offs, and recommends a tier (Small/Medium/Large) with approval gates to prevent wasted work.
Ships in caliper. 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.
Read when SKILL.md points to them.
Turn ideas into validated designs through collaborative dialogue before any code is written.
Do NOT invoke implementation skills, write code, or scaffold projects until you have presented a design and the user has explicitly approved it. Skipping design validation is the #1 cause of wasted work in AI-assisted sessions. This applies to EVERY project regardless of perceived simplicity.A todo list, a utility function, a config change — all go through this process. "Simple" projects are where unexamined assumptions cause the most wasted work. The design can be a few sentences, but you must present it and get approval.
Complete in order:
Explore context — files, docs, recent commits
Challenge assumptions — question the framing before accepting it
Ask clarifying questions — smart batches (see below)
Propose 2-3 approaches — trade-offs and your recommendation. Include the simplest viable option (reuse or extend existing code before adding new), and recommend the simplest approach that meets the success criteria; if your recommendation isn't the simplest, name what the simpler one couldn't do
Recommend a tier, then present the design — sections scaled to complexity, approval after each. Recommend a tier from these signals (default to Medium when in doubt — the cheapest tier with an audit trail):
Set up worktree — create it with git from the main checkout (branching from current HEAD), then EnterWorktree(path: "$WORKTREE"). A path-entered worktree is never auto-removed; one made by EnterWorktree(name:) is, on exit, if it looks unchanged — an integration branch with no commits yet does. See: ./worktree-isolation.md for the rules the session runs under once inside.
MAIN_ROOT=$(caliper-main-root)
PLAN_DIR="$MAIN_ROOT/.claude/claude-caliper/YYYY-MM-DD-<topic>"
WORKTREE="$MAIN_ROOT/.claude/worktrees/<feature>"
git worktree add "$WORKTREE" -b <feature>
mkdir -p "$WORKTREE/.claude" && jq -n --arg d "$MAIN_ROOT" '{permissions:{additionalDirectories:[$d]}}' > "$WORKTREE/.claude/settings.local.json"
seed-agent-memory "$WORKTREE"
$PLAN_DIR lives in the main repo (gitignored) so plan artifacts outlive the worktree. Under isolation the Write/Edit tools refuse it, so documents are drafted in the worktree and moved over with caliper-draft (see the isolation file) — never relocate $PLAN_DIR into the worktree. Use $PLAN_DIR and $WORKTREE — not relative paths — in every dispatch prompt and jq write below; subagents inherit worktree CWD. settings.local.json registers $MAIN_ROOT so a fresh claude launched inside the worktree doesn't prompt per command on $PLAN_DIR. seed-agent-memory copies $MAIN_ROOT/.claude/agent-memory into $WORKTREE as a real dir (writes through a symlink are blocked under isolation) so memory: project subagents read accumulated memory; the SubagentStop hook syncs their writes back to $MAIN_ROOT.
git branch -m integrate/<feature> — orchestrate nests phase worktrees under this one<feature> is correct as-is; execution works here directly, PRs to mainConfigure and approve in plain text — once step 6 is done, end the response with a short recap of the design and one text ask, not AskUserQuestion: its dialog can hide the design above it, so the user would approve something they can't see. The ask covers:
implement), Medium (short design doc + one design-reviewer pass, then implement), Large (design-review, draft-plan, plan-review, orchestrate).caliper-settings get workflow. If a value is returned, just say "Using your configured workflow: ". If PROMPT_REQUIRED, list: Create PR (default; → pr-create), Ready to merge (→ pr-create → pr-review until bot comments are addressed and CI is green, stop before merge), Merge PR (→ pr-create → pr-review → pr-merge), Orchestrate only (stop after implementation review, work stays in worktree), and Plan only (Large tier only — stop after plan-review; meaningless on the plan-less Small/Medium path). List it even when recommending Small/Medium, since the user may switch tiers in the same reply.PROMPT_REQUIRED).Wait for the reply. Requested changes return to step 5; on the way back through step 6, reuse the existing worktree rather than re-adding it.
Approval leaves the permission mode alone. On the Large tier, background subagents (plan-drafter, task implementers) can't answer a prompt, so in a default-mode session their would-be prompts are denied: suggest the user switch to auto mode, or at least acceptEdits (shift+tab), before routing.
Route by tier:
implement skill directly in this session, passing $WORKTREE and the mapped workflow value (see Route Workflow below). The design already presented and approved in step 5/7 stands in for implement's own compressed design gate.implement skill directly, passing $PLAN_DIR/design-<topic>.md, $WORKTREE, and the mapped workflow value.Write design doc (Medium/Large only) — $PLAN_DIR/design-<topic>.md, written and revised through the draft $WORKTREE/.caliper-draft/design-<topic>.md per the isolation file (no commit — gitignored, lives in main repo)
Before dispatching design-review, verify the doc satisfies this quality checklist (catches the most common reviewer findings on first pass):
Run validate-design --check <path> and fix any errors before proceeding to self-review.
Self-review pass (Medium/Large only) — before dispatching the external reviewer, read through the design doc yourself against the 9-point checklist in agents/design-reviewer.md. Fix any issues you find. Goal: catch obvious gaps so the external reviewer surfaces only non-obvious ones. This is an inline check, not a subagent dispatch — no output format required, just fix what you find.
Shared by the design-review dispatch (Medium/Large) and the plan-review dispatch (Large): pass 1 is discovery. The lead fixes all findings and verifies each fix inline (grep/read). A delta pass 2 is dispatched only if pass 1 found critical or high issues; after pass 2, any remaining findings are fixed inline and the loop records pass — never a third dispatch.
Pass 1:
json review-summary block from the response.reviews.json with [] if it doesn't exist, then write the pass-1 record: jq --argjson entry '{"type":"<design-review|plan-review>","scope":"<design|plan>","iteration":1,"issues_found":N,"severity":{"critical":C,"high":H,"medium":M,"low":L},"actionable":N,"dismissed":D,"dismissals":[{"id":ID,"reasoning":"..."}],"fixed":F,"remaining":0,"verdict":"<pass|delta>","timestamp":"<ISO8601>"}' '. += [$entry]' "$PLAN_DIR/reviews.json" > "$PLAN_DIR/reviews.json.tmp" && mv "$PLAN_DIR/reviews.json.tmp" "$PLAN_DIR/reviews.json" — verdict is "pass" if zero critical/high were found (no pass 2 needed), "delta" if a pass 2 follows.critical/high remain: done, proceed to the next checklist step.Pass 2 (only if pass 1 found critical or high):
7. Re-dispatch the same reviewer subagent type with ## Prior Issues appended after the context lines in the prompt: a JSON array of the prior issues, each enriched with resolution ("fixed" or "dismissed") and dismissal_reason (present only when dismissed).
8. Repeat triage + inline fix/verify (steps 3–4) for any newly reported issues.
9. Write the final reviews.json record ("iteration":2, "verdict":"pass", "remaining":0) — no further dispatch regardless of what remains.
Design-review dispatch (Medium/Large):
Read the design reviewer model: DESIGN_REVIEWER_MODEL=$(caliper-settings get design_reviewer_model)
Agent(
subagent_type: "caliper:design-reviewer",
model: "$DESIGN_REVIEWER_MODEL",
prompt: "Review the design doc at $PLAN_DIR/design-<topic>.md
Codebase root: $WORKTREE"
)
Draft-plan dispatch (Large only, after design-review passes):
Read the planner model: PLANNER_MODEL=$(caliper-settings get planner_model)
Agent(
subagent_type: "caliper:plan-drafter",
model: "$PLANNER_MODEL",
mode: "acceptEdits",
prompt: "Read the design doc at $PLAN_DIR/design-<topic>.md and write
an implementation plan.
Working directory: $WORKTREE
Plan directory: $PLAN_DIR/"
)
Plan-review dispatch (Large only, after draft-plan returns), same Review Loop Protocol as design-review:
Read the plan reviewer model: PLAN_REVIEWER_MODEL=$(caliper-settings get plan_reviewer_model)
Agent(
subagent_type: "caliper:plan-reviewer",
model: "$PLAN_REVIEWER_MODEL",
prompt: "Review the implementation plan at $PLAN_DIR/plan.json
Design doc: $PLAN_DIR/design-<topic>.md
Codebase root: $WORKTREE"
)
Map the workflow from step 7 (chosen or configured) to a schema value: Create PR → pr-create, Ready to merge → pr-ready, Merge PR → pr-merge, Orchestrate only → orchestrate, Plan only → plan-only (large tier only).
Small/Medium: No plan.json exists. Invoke the implement skill directly, passing the mapped workflow value so it knows how to chain after implementation-review.
Large: Write .workflow into plan.json: jq --arg w "<workflow>" '.workflow = $w' "$PLAN_DIR/plan.json" > "$PLAN_DIR/plan.json.tmp" && mv "$PLAN_DIR/plan.json.tmp" "$PLAN_DIR/plan.json"
For multi-phase plans, also write the integration branch name:
jq --arg ib "integrate/<feature>" '.integration_branch = $ib' "$PLAN_DIR/plan.json" > "$PLAN_DIR/plan.json.tmp" && mv "$PLAN_DIR/plan.json.tmp" "$PLAN_DIR/plan.json"
For Create PR, Ready to merge, Merge PR, or Orchestrate only: invoke orchestrate, passing $PLAN_DIR/plan.json as the absolute plan path (orchestrate's CWD is the worktree, where plan.json does not exist).
For Plan only: run validate-plan --check-workflow "$PLAN_DIR/plan.json" to verify design-review and plan-review passed. Report the plan file path and stop.
Before clarifying questions, challenge the framing like a senior PM:
Example: User: "All users should have public pages." Challenge: "A public page needs content to show. What would a non-creator put there?" — may surface that the feature isn't needed yet.
markdown previewPhasing (after all sections, large tier only):
See: ./design-spec.md
That file is the authoritative format definition. Required sections in order: Problem, Goal, Success Criteria, Architecture, Test Strategy, Key Decisions, Non-Goals, Implementation Approach, Scope Estimate.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/caliper:designfrom caliper
npx claudepluginhub nikhilsitaram/claude-caliper --plugin caliper19 skills in this plugin
/caliper-settingsUse when the user wants to view, change, or reset their persistent preferences, or when triggered by "/caliper-settings", "my settings", "change defaults"./codebase-reviewUse when asked to audit a codebase, find DRY/YAGNI/complexity issues repo-wide, or perform periodic code quality review/conversateUse when the user invokes /conversate, or asks to talk a change through with you — your recommendations, their decisions, open questions — before anything gets built./coordinateUse when the user wants a queue of issues worked in parallel handoff panes, one PR each, with you as coordinator — "/coordinate", "run these issues in parallel panes", "coordinate issues X, Y and Z", "be the coordinator", "start a release train"./design-reviewUse when a design doc has been written and before draft-plan is dispatched/draft-planUse when you have a spec or requirements for a multi-step task, before touching codeOther plugins' skills for the same job