/forge:planningfrom forge
Generate a PRD (product requirements document) for a feature — user stories, journey, edge cases, success criteria — plus an async tech feasibility note from the architect. Includes a design spec HTML by default (use --no-design to skip). Usage: /planning <feature-name> <--no-design> <--gtm> <--sync> <-- brief>
Ships in forge. Installing the plugin adds it to Claude Code.
Produces a PRD spec doc for a feature: user stories, user journey, edge cases, success criteria, and a brief technical-feasibility note from the architect.
This skill is phase 1 of two. After the PRD is written, the user reviews it and then runs /implementation-plan {feature-name} to generate the full implementation plan with the architecture debate and task breakdown.
The old single-phase planning conflated "what are we building?" (product) with "how will we build it?" (engineering) and burned debate cycles on architecture before the user had reviewed the user stories. Splitting forces a checkpoint:
/planning — PM owns the PRD. Architect contributes only a feasibility check (no API design, no task breakdown). Design Thinker (default) and GTM Expert (when flagged) feed context into the PM so the PRD reflects UX and positioning thinking. A design spec HTML is generated alongside the PRD by default. The user reviews stories/edge cases before any architecture decisions are made./implementation-plan — picks up the approved PRD, runs the full PM + Architect (+ DA) debate, and produces the locked-scope plan that /implement consumes. Design Critic and the full GTM launch debate live here.Parse from the argument string:
feature-name: Required. Kebab-case name for the feature (used in the spec file name).--no-design: Optional flag. Skip Design Thinker and design spec HTML generation. Use when you only need the PRD without UX artifacts.--gtm: Optional flag. Spawn a GTM Expert to produce a short positioning note that feeds into the PM's success metrics and target-user framing. No launch plan (that's in /implementation-plan).--sync: Optional flag. Detect spec changes and reconcile against an existing plan. See "Spec Sync Mode" below.--design-spec-only: Optional flag. Skip Phase A+B (no PRD regeneration). Read existing PRD, spawn the design-spec-writer agent, write the design spec sibling file, and patch the PRD frontmatter to add design_spec:. Use this when the PRD was generated previously with --no-design and you want to backfill the design artifact. Idempotent.--check: Optional flag. Compare the design spec's recorded prd_hash against the current PRD body hash. Exit 0 on match, exit 1 with an actionable message on mismatch. Read-only — no file writes. Used by CI / pre-commit / drift hook routing.-- <brief>: Optional inline brief. Everything after -- (not followed by a flag name) is the feature brief.Flag interactions:
--design-spec-only, --check, and --sync are pairwise exclusive — pick at most one.--no-design is incompatible with --design-spec-only, --check, and --sync. If combined, error out with: /planning: --no-design cannot be used with --{flag}.--no-design is NOT set (default) and no sub-flag → normal flow (Phase A design-thinker + Step 4e design-spec-writer fire).--sync is set → in v1, print: --sync mode for design artifacts lands in v1.1. Use /planning <feature> --design-spec-only to regenerate the design spec. and exit non-zero. Do NOT regenerate.Mode flags (--fast, --lite, --full) are intentionally NOT accepted here — those control the architecture debate, which only happens in /implementation-plan. If passed, print a hint:
/planning: --{flag} is not used in PRD generation. Run /implementation-plan {feature-name} {flag} after you review the PRD.
…and continue with the PRD flow ignoring the flag.
Before anything else, detect non-interactive mode:
CLAUDE_AUTOPILOT=1 OR CI=true → non-interactive mode.feature-name, brief (via -- <brief>).Example non-interactive error:
/planning: missing required args in non-interactive mode (CLAUDE_AUTOPILOT=1):
- feature-name
- brief (pass via `-- <brief>`)
Exiting.
If --sync is provided, skip to Spec Sync Mode instead of the normal PRD flow.
At the start of skill execution (after argument parsing), write a breadcrumb:
echo "planning" > .claude/verification-pending
Skip this step if no sub-flag (--design-spec-only, --check, --sync) was passed.
If --no-design is set AND a sub-flag was passed, error out: /planning: --no-design cannot be used with --{flag}.
If a sub-flag was passed (and --no-design is NOT set):
Validate mutual exclusion: exactly ONE of --design-spec-only, --check, --sync may be present. If 2+ are set, print /planning: --design-spec-only, --check, --sync are mutually exclusive — pick one. and exit non-zero.
Resolve feature-name:
/planning: <feature-name> is required when using --design-spec-only, --check, or --sync. Pass it as the first positional argument..claude/specs/*.md, exclude design spec siblings — files whose name ends with the design suffix — display base names without extension as options).Dispatch to one of:
--design-spec-only → Step 4f.--check → Step 4g.--sync → Step 4h.After the dispatched step completes, exit the skill — do NOT fall through to Step 0 or any PRD-generation steps.
If non-interactive mode is active, skip this entire step.
Otherwise, this step uses a short questionnaire to fill in any args the user didn't supply inline. Each question is skipped if its value was already provided inline.
Every question in this step MUST include a "Cancel / exit planning" option. If the user selects Cancel on any question, the skill aborts cleanly:
Planning cancelled. Re-run /planning anytime..claude/specs/.feature-name was passed inline)Use AskUserQuestion:
Silent kebab-case normalization: After the user provides a name, normalize it silently:
-- to a single --Do NOT ask the user to confirm the normalization. Store the normalized form as feature-name.
The normalized name is echoed ONCE in the welcome line printed at the start of Q2 (e.g., Using name: my-cool-feature) so the user sees what got used.
If normalization produces an empty string, re-prompt Q1 with a short "Please enter a valid name (letters, digits, spaces, or -)." message. Max 3 retries, then abort cleanly like Cancel.
-- inline)Print a one-line welcome: Using name: {feature-name}. Next: describe the feature.
Use AskUserQuestion:
Store as FEATURE_BRIEF. If the brief is fewer than 2 non-whitespace characters, re-prompt with "Please enter at least a sentence." Max 3 retries then abort.
Gate: Run this step ONLY when the environment variable ARTH_QUESTIONS_URL is set
(check with echo "${ARTH_QUESTIONS_URL:-unset}"). It is set only by the Arth cloud
sandbox — terminal sessions and CLAUDE_AUTOPILOT=1/CI=true runs never set it, so this
entire step is invisible to them and terminal behavior is unchanged. If it is unset,
SKIP this step entirely and go to Step 1.
This is a CONTRACT — when the gate is set you MUST call AskUserQuestion at least once
before writing the PRD (Step 4). Supplying feature-name + brief inline does NOT
waive this: the user provided those via the launch form but still wants to steer scope
before the PRD is written. "The brief is clear enough" / "ask nothing" is NOT an allowed
outcome here — always ask. (Same contract spirit as calibrate's install prompt, which
always asks even in Auto Mode.) The only time you skip is when the gate (ARTH_QUESTIONS_URL)
is unset.
What to do — ask ONE AskUserQuestion call with 1–3 questions covering the
highest-leverage scope decisions for THIS feature. Every feature has these even when the
brief looks complete — pick the most consequential:
For each question:
choices (the most likely answers).Deferring a question (picking "Use your best judgment") is fine; skipping the whole step
is a contract violation. Fold every answer into FEATURE_BRIEF (append a Clarified scope: section); for any deferred question, record the assumption you adopt in the PRD's
open-questions list. Then continue to Step 1.
By this point FEATURE_BRIEF is already resolved — either from Step 0's Q2 or from the inline -- <brief> arg. If it is somehow still missing, fail loudly:
/planning: FEATURE_BRIEF unresolved. This should not happen; check Step 0 and non-interactive guards.
Only execute this step if --sync was passed. Skip entirely otherwise.
Check that .claude/specs/{feature-name}.md exists. If not, print:
⚠ --sync requires an existing spec at .claude/specs/{feature-name}.md
Falling back to full PRD generation.
Set SYNC_MODE=false and continue to Step 2.
Check that .claude/plans/{feature-name}.md exists. If not, same warning + fallback.
Read the existing spec fully. Extract EXISTING_IDS: all US-N, EC-N, SC-N found via Grep.
Read the existing plan. Extract FEATURE_BRIEF from the plan's "Problem & User Segment" or first paragraph under the title.
Spawn PM agent (subagent_type="product-manager", model="sonnet") with this prompt:
You are reviewing an existing PRD for "{feature-name}" and adding any missing items.
Existing spec: [full content of .claude/specs/{feature-name}.md]
Add ONLY what is missing — do not modify or delete any existing US-N, EC-N, or SC-N entries.
Review the spec for:
1. Any user stories that are implied by the feature brief but not yet captured
2. Any edge cases that are missing given the existing stories
3. Any success criteria gaps
For new items, use the next available IDs (e.g., if US-5 is the last story, add US-6).
Format new entries exactly like the existing ones.
Feature brief (from plan): {FEATURE_BRIEF}
Wait for PM output. If PM adds new items: write the updated spec to .claude/specs/{feature-name}.md. Re-extract IDs. Compute NEW_IDS = updated_ids - EXISTING_IDS.
If NEW_IDS is empty:
--sync: No new spec items found. PRD is already complete.
Exit.
Otherwise print:
--sync complete: {N} new items added to spec.
New IDs: {list}
Review the updated PRD at .claude/specs/{feature-name}.md, then run
/implementation-plan {feature-name} --sync to extend the plan.
Exit.
Spawn an explore-light subagent (model: haiku) to scan for relevant files:
prompt: "For a feature called '{feature-name}', find: (1) related backend routes/services, (2) related frontend pages/components, (3) related database models, (4) any existing tests. Return a structured summary of file paths and their purpose. Feature brief: {FEATURE_BRIEF}"
Store the result as CODEBASE_CONTEXT. This is needed for the architect's feasibility note (Step 4).
Check for topic wikis relevant to this feature:
ls -d .claude/wikis/*/wiki/index.md 2>/dev/null
If wikis exist:
wiki/index.md (Tier 1 — small catalog)FEATURE_BRIEF and feature-nameStore relevant wiki excerpts as WIKI_CONTEXT. If no wikis or no matches, set to "No topic wikis found.".
Compiled Memory Context (arth-memory Tier 0.5 — if configured): the first
rung of the 3-rung ladder (full contract: skills/_lib/arth-memory-tier05.md).
Attempted ONLY when both bash gates below pass — each line is a single
trivial command (a compound block trips the Bash guard — keep each command
trivial, same discipline as the org memory KB block further down):
bash skills/_lib/arth-memory.sh status # must print "configured" — anything else → skip to Knowledge Graph Query (fallback) below (marketplace-plugin path: "${CLAUDE_PLUGIN_ROOT}/skills/_lib/arth-memory.sh")
grep -m1 '^ARTH_MEMORY_HEALTH=' .claude/.arth-memory.env 2>/dev/null # must be ARTH_MEMORY_HEALTH=ok — anything else (or missing file) → skip to Knowledge Graph Query (fallback) below
bash skills/_lib/arth-memory.sh scope-key # → owner/repo; becomes the compile_context scope_key arg
If both gates pass, call mcp__arth-memory__compile_context with:
scope_key — the scope-key output abovetask — the same 3-5 keywords from feature-name and FEATURE_BRIEF that the
kg-query call below uses (extract once, reuse for both — do not derive a
second keyword set)budget: 2000If the tool is unavailable, errors, or returns empty: inject nothing and fall through to the Knowledge Graph Query (fallback) below, unchanged (the org memory KB read stays active too).
On success: prepend the result under ## Compiled Memory Context (arth-memory), [mem:…] citation tokens preserved verbatim, store as
KG_CONTEXT, AND skip the "Org memory KB" read below (D3′ — same org memory;
the compiled, cited form supersedes the raw file-read).
Team-scope memory (arth-memory — additive, cross-repo): ADDITIVE to the project-scope call above, not a replacement — both may fire and both may appear in the final context. Planning needs cross-repo/org decisions surfaced alongside repo-local ones, since architecture and product calls made in one repo often bind the whole org. Attempted ONLY when the SAME status + health gates above passed, PLUS one more gate (each line trivial, same Bash-guard discipline):
bash skills/_lib/arth-memory.sh status # must print "configured" — anything else → skip team-scope query
grep -m1 '^ARTH_MEMORY_HEALTH=' .claude/.arth-memory.env 2>/dev/null # must be ARTH_MEMORY_HEALTH=ok — anything else (or missing file) → skip team-scope query
bash skills/_lib/arth-memory.sh group-id # must print a NON-EMPTY group id — empty → skip team-scope query silently (no team/org configured; fail-open)
If all three pass, ALSO call mcp__arth-memory__compile_context with:
scope_level: "team"scope_key — the same scope-key output used by the project-scope call abovetask — the same keywords the project-scope call above uses (do not derive a new keyword set)budget: 2000If the tool is unavailable, errors, or returns empty: inject nothing (fail-open, no empty heading).
On success: prepend the result under a heading DISTINCT from the project-scope
one — ## Team Memory Context (arth-memory — cross-repo) — [mem:…] citation
tokens preserved verbatim, kept SEPARATE from ## Compiled Memory Context (arth-memory) so the planner can tell repo-local decisions from cross-repo
ones. Store as TEAM_KG_CONTEXT.
Knowledge Graph Query (fallback rung — supplemental; fires when arth-memory is absent, unhealthy, or returned nothing above):
Query the knowledge graph for relevant conventions, patterns, and domain rules:
KG_SCRIPT="${CLAUDE_PLUGIN_ROOT}/skills/knowledge-graph/kg-query.sh" # plugin install: Claude Code substitutes the root at load
[ -f "$KG_SCRIPT" ] || KG_SCRIPT=".claude/skills/knowledge-graph/kg-query.sh" # symlink install
kg_result=$("$KG_SCRIPT" "<3-5 keywords from feature-name and FEATURE_BRIEF>" --top 10 --threshold 0.3 2>/dev/null)
kg_exit=$?
If KG returns useful context (exit 0, non-empty), store as KG_CONTEXT.
Then check the raw KB files for anything the graph may have missed:
.claude/knowledge/shared/conventions.md.claude/knowledge/shared/patterns.md.claude/knowledge/shared/domain.mdUse judgment on depth: if KG already surfaced the key conventions for this feature area, skim the raw files rather than reading end-to-end.
Org memory KB (arth-memory — if memory-setup has run): SKIPPED when the
Compiled Memory Context block above already succeeded (D3′ — same org memory,
already compiled + cited). Runs only on its absence/failure. The org's
Decisions/Constraints across every repo are on disk; a plan that ignores them gets rejected
at implement-time. Read the current repo's slice and fold it into KB_CONTEXT so the PM +
Architect design within the org's house rules. Graceful absence (no-op if absent). Locate
it with simple commands (a single complex bash block trips the Bash guard — keep each
command trivial):
[ "${ARTH_MEMORY:-}" = off ] && echo "memory off — skip org KB" # honor the off switch
ls -d "$HOME"/.arthai/memory/*/arth-memory-okf 2>/dev/null # org KB root(s); skip step if none or if off
git remote get-url origin # → owner/repo
The repo slice is <kb-root>/repos/<owner>/<repo>/ (fall back to <kb-root>/org/ if absent).
Then read it with the Read + Grep tools (not a bash heredoc): Read architecture.md,
and Grep constraints/ + decisions/ for 3–5 keywords from the feature-name + brief,
then Read the top matches.
Store combined findings (KG + project KB + org KB) as KB_CONTEXT. Org Constraints are
authoritative — surface any that constrain this feature in the PRD's constraints section.
If .claude/registry.json does not exist, skip this step and set AGENT_SUBSTITUTIONS = {}. Otherwise, read it and build the substitution map from source == "project" entries with composition == "replace" and a replaces_subagent_type field. The map is keyed by replaces_subagent_type → custom agent_name. This is used below when spawning design-thinker, gtm-expert, product-manager, and architect.
If the project has opted into compliance/security/testing extension packs, inject active rules into the PRD-writing PM and Architect prompts so the resulting PRD references applicable constraints. Zero overhead if no packs are enabled.
source "$(pwd)/skills/_lib/extensions-context.sh" 2>/dev/null || \
source "${CLAUDE_PLUGIN_ROOT}/skills/_lib/extensions-context.sh" 2>/dev/null || true
EXT_CONTEXT=$(emit_extensions_context "planning" 2>/dev/null || echo "")
If non-empty, include $EXT_CONTEXT in the SHARED_CONTEXT block (Step 4a) — after ## Project Conventions & Domain Rules and before the feature brief. The PM should weave compliance constraints into user stories' acceptance criteria. The architect should flag any technical constraints in the feasibility note.
See skills/implement/SKILL.md Step 3i for the canonical pattern.
Read model-policy.yml — resolve from the first that exists: ${CLAUDE_PLUGIN_ROOT}/model-policy.yml (marketplace plugin), ~/.claude-agents/model-policy.yml (git-clone install), then .claude/model-policy.yml (project copy). Build:
POLICY[agent_key] = { "model": ..., "effort": ..., "fallback": ... }
If model-policy.yml is missing or unparseable, use the hardcoded defaults shown in each spawn ("opus" / "sonnet" / "haiku") — zero regression.
When spawning any agent, if the Task call returns a model-sunset/deprecation error:
POLICY[agent_key]['fallback'].⚠ <model> deprecated for <agent_key>; retrying with <fallback>.model-policy.yml.Create the specs directory:
mkdir -p .claude/specs
PRD generation runs in two phases. When --no-design is passed AND --gtm is NOT passed, Phase A is skipped and the PM + Architect run in parallel directly (Phase B).
Phase A — Input briefs (runs by default; skipped only if --no-design is passed AND --gtm is NOT passed): Design Thinker (default) and/or GTM Expert spawn in parallel and produce short context briefs that feed into the PM. Their outputs are NOT separate sections in the PRD — they are inputs the PM uses to inform user stories and success metrics. The PM produces one unified PRD voice.
Phase B — PRD writers (always runs): PM and Architect spawn in parallel. PM writes the PRD (consuming Phase A briefs if present). Architect writes the feasibility note. No debate, no rounds.
## Project Context
{PROJECT_NAME} - {PROJECT_DESCRIPTION}
Stack: {TECH_STACK}
Stage: {DEVELOPMENT_STAGE}
## Relevant Codebase
{CODEBASE_CONTEXT}
## Topic Wiki Context
{WIKI_CONTEXT}
## Project Conventions & Domain Rules
{KG_CONTEXT}
{KB_CONTEXT}
{TEAM_KG_CONTEXT}
## Feature: {feature-name}
{FEATURE_BRIEF}
Unless --no-design is set, spawn design-thinker (subagent_type="{AGENT_SUBSTITUTIONS['design-studio:think'] or 'design-studio:think'}", model="{POLICY['design-studio-think']['model'] or 'sonnet'}").
If --gtm is set, spawn gtm-expert (subagent_type="{AGENT_SUBSTITUTIONS['gtm-expert'] or 'gtm-expert'}", model="{POLICY['planning-gtm-expert']['model'] or 'sonnet'}").
Both spawn in the same message (parallel) when both flags are set.
Design Thinker prompt:
{SHARED_CONTEXT}
You are the Design Thinker producing a UX BRIEF that will inform the PM's PRD for
"{feature-name}". You are NOT writing the PRD; you are producing input the PM consumes.
This is a short brief (max ~200 words, bullets preferred). Do NOT include mockups, design
critiques, or implementation suggestions — those belong to /implementation-plan phase 2.
Cover only:
- WHO the primary user is (1-2 segments, concrete personas with context)
- The TOP 3 user needs this feature must serve
- INTERACTION PRINCIPLES the PM should encode in user stories (e.g., "make the error
state recoverable in one click", "no modal blocking", "progressive disclosure")
- UX-specific edge cases the PM might miss (e.g., empty states, first-run experience,
accessibility — keyboard nav, screen reader, color contrast)
Return only the brief as Markdown bullets — no preamble.
Store output as DESIGN_CONTEXT. If --no-design is set, set DESIGN_CONTEXT = "".
GTM Expert prompt:
{SHARED_CONTEXT}
You are the GTM Expert producing a POSITIONING NOTE that will inform the PM's PRD for
"{feature-name}". You are NOT writing the PRD; you are producing input the PM consumes.
This is a short note (max ~200 words, bullets preferred). Do NOT propose a launch plan,
viral mechanics, or distribution timeline — those belong to /implementation-plan phase 2.
Cover only:
- WHO is this for (target segment in market terms — what they buy today, what alternative
they'd switch from)
- The CORE POSITIONING — one sentence: "for {segment} who {pain}, this is {category} that
{differentiator}"
- WHAT "success" looks like in market terms (1-3 measurable signals — adoption rate,
retention, switching, NPS, etc.) that should appear in the PRD's success metrics
- KEY OBJECTIONS or doubts a target user would raise that the PRD should answer
Return only the note as Markdown bullets — no preamble.
Store output as GTM_CONTEXT. If --gtm is not set, set GTM_CONTEXT = "".
Wait for both briefs to return before starting Phase B — the PM needs them as input.
Note: PRD generation deliberately pins
model="sonnet"by default — cheaper than the implementation-plan PM. Spec drafting is mechanical enough for sonnet; the multi-round debate in/implementation-planneeds opus-level reasoning.
Prompt:
{SHARED_CONTEXT}
You are a Product Manager generating a PRD for the feature "{feature-name}".
This is **phase 1 of two**. Your job is the PRODUCT brief — user stories, journey, edge
cases, success criteria. You are NOT designing architecture or estimating tasks; that
happens in /implementation-plan after the user reviews your PRD.
## Input Briefs (from teammates — synthesize, do NOT echo)
If a UX brief or GTM positioning note is provided below, you MUST use it to inform your
user stories, edge cases, and success metrics. But produce a SINGLE UNIFIED PRD — do not
copy these briefs into the output verbatim, and do not create separate "from Design"
or "from GTM" sections. Internalize the input and let it shape your story authoring.
### UX Brief
{DESIGN_CONTEXT if not --no-design else "(no UX brief — write the PRD from the feature brief alone)"}
### GTM Positioning
{GTM_CONTEXT if --gtm else "(no GTM positioning — derive target user from the feature brief alone)"}
---
Generate a PRD with these sections (write Markdown):
## User Stories
Write 3-7 user stories covering the happy path and key error states.
Format: "As a [user type], I want [action], so that [outcome]"
Each story must have:
- **Story ID**: US-1, US-2, etc.
- **Priority**: P0 (must-have for launch) or P1 (important but deferrable)
- **Acceptance**: specific testable condition that proves this story is done
Example:
US-1 [P0]: As a new developer, I want to install the toolkit with one command,
so that I can start using it without manual configuration.
Acceptance: `/plugins install forge@arthai` succeeds and skills are available.
## User Journey
Step-by-step flow from the user's first interaction to completion.
Include:
- **Happy path**: numbered steps (1. User does X → 2. System responds Y → ...)
- **Decision points**: where the user makes a choice (mark with ◆)
- **Error branches**: where things can go wrong (mark with ✗ and show recovery path)
Format as a text flowchart:
## Edge Cases
Structured list of what can go wrong. For each:
- **ID**: EC-1, EC-2, etc.
- **Scenario**: what triggers this edge case
- **Expected behavior**: what should happen (not crash, not hang)
- **Severity**: Critical (blocks user) / High (degrades experience) / Medium (inconvenience)
- **Linked story**: which user story this edge case relates to
## Success Criteria
Measurable outcomes tied to user stories. These become the acceptance criteria
that /implement and /qa use to validate the implementation.
- Each criterion references a story ID
- Each criterion is binary: pass or fail, no subjective judgment
Return only the PRD body in Markdown — no preamble, no commentary, no "Here is the PRD".
Store the PM's output as PM_PRD.
The architect spawns in the same message as the PM (parallel — they don't depend on each other's output). The architect does NOT consume DESIGN_CONTEXT or GTM_CONTEXT; feasibility is a tech concern, not a UX/positioning concern.
The architect's role here is feasibility flagging only, not design. They do NOT propose an API, schema, or task breakdown. They produce a short note that the user can read alongside the PRD to spot dealbreakers BEFORE the architecture debate runs in /implementation-plan.
Note: Feasibility check is scoped enough to use sonnet by default. The full architecture debate in
/implementation-planruns the architect on opus.
Prompt:
{SHARED_CONTEXT}
You are an Architect contributing a TECH FEASIBILITY NOTE to the PRD for "{feature-name}".
This is phase 1 of two. You are NOT designing architecture, API contracts, schemas, or
task breakdowns — that happens in /implementation-plan after the user reviews the PRD.
Your job is to flag what's technically risky BEFORE the user signs off on scope.
Read the feature brief and codebase context. Produce a short Markdown note with these
sections (be concise — bullets, not paragraphs):
## Tech Feasibility Note
### Feasible as briefed?
One of: GREEN (no concerns) / YELLOW (concerns, see below) / RED (blocked, see below)
### Hard constraints
- Anything the brief asks for that the existing stack cannot deliver as-is
(missing infra, incompatible deps, fundamental limits). Reference codebase paths.
### High-risk areas
- Items where implementation cost is likely to be much higher than the brief implies
(e.g., touches auth, payments, data migration, breaking changes, real-time sync, ML).
- For each, one line: WHY it's risky + the rough cost direction (L / XL).
### Dependencies on external systems
- Third-party APIs, services, or teams that need to be ready before this can ship.
- For each, note whether it's already integrated or needs new work.
### Suggested clarifications
- 1-3 questions the user/PM should answer in the PRD BEFORE architecture debate runs,
so the implementation-plan team doesn't have to guess.
DO NOT propose an API contract.
DO NOT propose a schema.
DO NOT propose a task breakdown.
DO NOT propose phasing.
Save those for /implementation-plan.
Return only the feasibility note in Markdown — no preamble, no "Here is the note".
Store the architect's output as ARCHITECT_FEASIBILITY.
Skip this step entirely if --no-design was passed.
After Phase B completes (PRD body is in PM_PRD, design-studio-think output is in DESIGN_CONTEXT), generate the design spec sibling artifact:
Resolve the toolkit root before sourcing (ATTACK-4 mitigation — handles invocation from any CWD):
# Resolve toolkit root: the directory containing .claude/. The skill executor's CWD
# may not be the toolkit root, so we cannot rely on a bare relative path.
# Prefer the plugin root when running as an installed marketplace plugin
# (the lib is shipped under ${CLAUDE_PLUGIN_ROOT}/hooks/lib/); fall back to the
# repo root for local/dev installs. (issue #451)
TOOLKIT_ROOT="$(r="${CLAUDE_PLUGIN_ROOT}"; echo "${r:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}")"
source "$TOOLKIT_ROOT/hooks/lib/design-spec-drift.sh"
This exposes compute_prd_body_hash and compare_prd_hash.
Critical: PM_PRD alone is NOT the body that lands on disk. Step 5 assembles the full PRD body by wrapping PM_PRD with a header, feature brief, and architect feasibility note. The stored prd_hash in the design spec MUST match what compare_prd_hash will later compute by reading the on-disk PRD body — otherwise --check and the drift hook will permanently report drift on every freshly-generated pair (ATTACK-1 from cycle-1 redteam).
Assemble the EXACT body string that Step 5 will write between the closing --- of the frontmatter and EOF, then hash:
# This must match Step 5's body composition byte-for-byte.
# Step 5 writes (between frontmatter and EOF):
# # PRD: {feature-name}
#
# ## Feature Brief
# {FEATURE_BRIEF}
#
# {PM_PRD}
#
# ---
#
# {ARCHITECT_FEASIBILITY}
_TMP_PRD_BODY=$(mktemp)
{
printf '# PRD: %s\n\n' "$FEATURE_NAME"
printf '## Feature Brief\n%s\n\n' "$FEATURE_BRIEF"
printf '%s\n\n' "$PM_PRD"
printf -- '---\n\n'
printf '%s' "$ARCHITECT_FEASIBILITY"
} > "$_TMP_PRD_BODY"
PRD_HASH=$(python3 -c "
import hashlib, sys
with open(sys.argv[1]) as f:
body = f.read()
# Body has no frontmatter at this point (we never added one). Apply the SAME
# canonical normalization as hooks/lib/design-spec-drift.sh:
# ' '.join(body.split()) + sha256.
body = ' '.join(body.split())
print(hashlib.sha256(body.encode()).hexdigest())
" "$_TMP_PRD_BODY")
rm -f "$_TMP_PRD_BODY"
Invariant: any future change to Step 5's body-composition order/format MUST be mirrored here, or the hashes will diverge. Document any change in both places.
(The normalization recipe ' '.join(body.split()) is duplicated from hooks/lib/design-spec-drift.sh for one reason: at hash-compute time the PRD file does not exist on disk yet, and the helper is filename-based. Keep the recipe in sync — hooks/lib/design-spec-drift.sh:79-82.)
Spawn (subagent_type="design-spec-writer", model="{POLICY['design-spec-writer']['model'] or 'sonnet'}", effort="{POLICY['design-spec-writer']['effort'] or 'medium'}")
Prompt: "
{SHARED_CONTEXT}
You are the Design Spec Writer for '{feature-name}'.
## Inputs (inline)
PRD body:
{PM_PRD}
Design-studio-think brief:
{DESIGN_CONTEXT}
Target output file path: .claude/specs/{feature-name}-design.html.tmp
prd_hash (copy verbatim into your frontmatter): {PRD_HASH}
## Output Contract
Write to the .tmp path provided. Use the structured 6-section format from your agent definition. Set spec_hash: PENDING — the calling skill will patch it.
"
The .tmp suffix is REQUIRED so the drift hook does NOT fire on the intermediate write (*/.claude/specs/*.html glob doesn't match .tmp).
After the agent returns, verify the temp file exists and contains all 6 required H2 headers. If ANY header is missing, retry once:
DESIGN_TMP=".claude/specs/{feature-name}-design.html.tmp"
REQUIRED_SECTIONS=(
'id="story-cross-reference"'
'id="user-journeys"'
'id="key-screens"'
'id="interaction-principles"'
'id="accessibility"'
'id="design-system"'
)
verify_sections() {
local missing=()
for s in "${REQUIRED_SECTIONS[@]}"; do
grep -qF "$s" "$DESIGN_TMP" 2>/dev/null || missing+=("$s")
done
[ ${#missing[@]} -eq 0 ]
}
if ! verify_sections; then
# Retry once with the same prompt
(spawn design-spec-writer again with identical inputs)
fi
# After retry, if STILL missing headers, fall back to a minimal spec.
#
# The fallback MUST preserve all 6 H2 headers EXACTLY as listed in REQUIRED_HEADERS
# above — the section id attributes like id="story-cross-reference", id="user-journeys", etc.
# Use a TODO paragraph inside each section.
# Do NOT drop sections. Do NOT rename IDs. Downstream consumers (test 33, future agents,
# --check) rely on the 6-section contract holding even on the fallback path (ATTACK-3 mitigation).
if ! verify_sections; then
cat > "$DESIGN_TMP" <<MINIMAL_EOF
---
kind: design-spec
feature: $FEATURE_NAME
generated: $(date -u +%Y-%m-%dT%H:%M:%SZ)
prd: .claude/specs/$FEATURE_NAME.md
prd_hash: $PRD_HASH
spec_hash: PENDING
sections: [journeys, key_screens, interaction_principles, accessibility, design_system]
story_refs: []
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Design Spec: $FEATURE_NAME (TODO)</title>
<style>body{font-family:system-ui,sans-serif;max-width:960px;margin:0 auto;padding:40px 24px;}h2{border-bottom:2px solid #2563eb;padding-bottom:8px;margin-top:32px;}.todo{color:#d97706;background:#fef3c7;padding:12px;border-radius:8px;}</style>
</head>
<body>
<h1>Design Spec: $FEATURE_NAME</h1>
<p class="todo">design-studio-think output was incomplete on both attempts. Re-run <code>/planning $FEATURE_NAME --design-spec-only</code> to regenerate.</p>
<section id="story-cross-reference">
<h2>Story Cross-Reference</h2>
<p class="todo">TODO: Re-run /planning $FEATURE_NAME --design-spec-only to generate.</p>
</section>
<section id="user-journeys">
<h2>User Journeys</h2>
<p class="todo">TODO: Re-run /planning $FEATURE_NAME --design-spec-only to generate.</p>
</section>
<section id="key-screens">
<h2>Key Screens</h2>
<p class="todo">TODO: Re-run /planning $FEATURE_NAME --design-spec-only to generate.</p>
</section>
<section id="interaction-principles">
<h2>Interaction Principles</h2>
<p class="todo">TODO: Re-run /planning $FEATURE_NAME --design-spec-only to generate.</p>
</section>
<section id="accessibility">
<h2>Accessibility</h2>
<p class="todo">TODO: Re-run /planning $FEATURE_NAME --design-spec-only to generate.</p>
</section>
<section id="design-system">
<h2>Design System</h2>
<p class="todo">TODO: Re-run /planning $FEATURE_NAME --design-spec-only to generate.</p>
</section>
</body>
</html>
MINIMAL_EOF
DESIGN_FAILED=true
# Skill still exits 0 — the design spec exists, just with TODO sections. The
# warning is added to the Step 6 hand-off block via DESIGN_FAILED.
fi
(In the SKILL.md prose, describe this as natural-language steps. The bash blocks above are illustrative for the LLM-driven skill executor; actual implementation is by Claude following these instructions.)
Set the trap BEFORE the PRD write:
trap 'rm -f "$DESIGN_TMP"' EXIT
This ensures that if any subsequent step fails (Step 5 PRD write, frontmatter patching), the temp file is removed and no orphan design spec exists (SC-7, EC-5 Critical).
Reached ONLY via the Step -1 dispatch when --design-spec-only <feature> was passed.
PRD_FILE=".claude/specs/$FEATURE_NAME.md"
if [ ! -f "$PRD_FILE" ]; then
echo "/planning: PRD not found at $PRD_FILE. Run /planning $FEATURE_NAME to create both at once." >&2
exit 1
fi
Do NOT write a design spec when the PRD is missing — exit non-zero.
Reuse the existing slug normalization from Step 0 (Q1). Apply it to $FEATURE_NAME so the design spec path agrees with the PRD path (EC-6). After normalization, set DESIGN_TMP to the .tmp path for the design spec (same pattern as Step 4e.4 — .claude/specs/<slug> + design suffix + .tmp). Reuses the same DESIGN_TMP variable name as Step 4e.4 so the writer/retry/trap logic from Steps 4e.3–4e.5 applies without modification.
The PRD file is already on disk. Source the shared helper and compute the PRD body hash using the same normalization that --check and the drift hook use:
# Prefer the plugin root when running as an installed marketplace plugin
# (the lib is shipped under ${CLAUDE_PLUGIN_ROOT}/hooks/lib/); fall back to the
# repo root for local/dev installs. (issue #451)
TOOLKIT_ROOT="$(r="${CLAUDE_PLUGIN_ROOT}"; echo "${r:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}")"
source "$TOOLKIT_ROOT/hooks/lib/design-spec-drift.sh"
PRD_HASH=$(compute_prd_body_hash "$FEATURE_NAME" ".claude/specs")
if [ $? -ne 0 ] || [ -z "$PRD_HASH" ]; then
echo "/planning: failed to compute PRD body hash for $FEATURE_NAME — is the PRD malformed?" >&2
exit 1
fi
Also extract PM_PRD (the body content) and FEATURE_BRIEF from the existing PRD file — they are the inputs to the writer agent. Use python3 inline to parse the frontmatter and isolate the body sections.
--design-spec-only skips Phase A and Phase B. Spawn ONLY design-studio-think using the same subagent_type and model policy lookup as Step 4b, with the PRD body as input. Get DESIGN_CONTEXT back. The PM and Architect agents produced the existing PRD and do not need to re-run.
Spawn design-studio-think (subagent_type="design-studio:think", model="{POLICY['design-studio-think']['model'] or 'sonnet'}").
Input: the PRD body extracted in 4f.3.
Store output as DESIGN_CONTEXT.
The writer spawn (Step 4e.3), EC-7 retry/fallback (Step 4e.4), and trap setup (Step 4e.5) are IDENTICAL to the --design happy path. Execute them verbatim using the DESIGN_TMP, PRD_HASH, DESIGN_CONTEXT, and FEATURE_NAME values set above. Do not duplicate the prose — follow those sub-steps as written.
Step 5's PRD body write is SKIPPED — the PRD already exists. Execute only the --design post-write block from Step 5, with these adaptations:
spec_hash from PENDING to real hash in $DESIGN_TMP (same as Step 5 sub-step 1).design_spec: into PRD frontmatter IDEMPOTENTLY using the same if ! grep -q "^design_spec: " guard from Step 5. Set PRD_DESIGN_SPEC_INJECTED accordingly.$DESIGN_TMP removal and design_spec: line rollback.$DESIGN_TMP to final path (same mv command as Step 5 sub-step 4).trap - EXIT as Step 5 sub-step 5).✅ Design spec written to .claude/specs/$FEATURE_NAME (design spec path).
PRD frontmatter updated with design_spec: pointer.
Next: review the design spec, then /implementation-plan $FEATURE_NAME.
If DESIGN_FAILED was set in Step 4e.4, prepend the same one-line warning as Step 6's DESIGN_FAILED note.
Reached ONLY via the Step -1 dispatch when --check <feature> was passed.
# Prefer the plugin root when running as an installed marketplace plugin
# (the lib is shipped under ${CLAUDE_PLUGIN_ROOT}/hooks/lib/); fall back to the
# repo root for local/dev installs. (issue #451)
TOOLKIT_ROOT="$(r="${CLAUDE_PLUGIN_ROOT}"; echo "${r:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}")"
source "$TOOLKIT_ROOT/hooks/lib/design-spec-drift.sh"
if compare_prd_hash "$FEATURE_NAME" ".claude/specs"; then
echo "✅ Design spec for $FEATURE_NAME is in sync with PRD (prd_hash matches)."
exit 0
fi
case $? in
1)
# Mismatch — the helper already wrote the 3-line diagnostic to stderr.
echo ""
echo "Run /planning $FEATURE_NAME --design-spec-only to regenerate."
exit 1
;;
2)
echo "/planning: PRD not found at .claude/specs/$FEATURE_NAME.md." >&2
exit 1
;;
3)
echo "/planning: Design spec not found. Run /planning $FEATURE_NAME --design-spec-only to create it." >&2
exit 1
;;
4)
echo "/planning: Design spec is malformed (missing prd_hash)." >&2
exit 1
;;
esac
--check is read-only — no file writes, no agent spawns, no PRD modification. Suitable for CI / pre-commit / drift-hook handoff.
Reached ONLY via the Step -1 dispatch when --sync <feature> was passed.
--sync (append-only design spec sync) lands in v1.1 once a stable section-ID scheme is proven. v1 stub:
echo "/planning $FEATURE_NAME --sync is not yet implemented (planned for v1.1)." >&2
echo "" >&2
echo "v1 options:" >&2
echo " • Regenerate the design spec from scratch: /planning $FEATURE_NAME --design-spec-only" >&2
echo " • Check sync state (read-only): /planning $FEATURE_NAME --check" >&2
exit 2
Exit code 2 distinguishes "feature not implemented" from "drift detected" (exit 1) or success (0).
.claude/specs/{feature-name}.mdCompose the spec body as:
# PRD: {feature-name}
## Feature Brief
{FEATURE_BRIEF}
{PM_PRD}
---
{ARCHITECT_FEASIBILITY}
Compute spec_hash = SHA-256 of the spec body content (everything below the frontmatter).
Write the file with this frontmatter:
---
feature: {feature-name}
generated: {ISO date}
phase: prd
stories: {count of US- IDs in PM_PRD}
edge_cases: {count of EC- IDs in PM_PRD}
feasibility: {GREEN|YELLOW|RED parsed from ARCHITECT_FEASIBILITY}
spec_hash: {SHA-256}
---
The phase: prd marker tells /implementation-plan that this is a fresh PRD ready to be turned into a plan. The spec_hash enables drift detection — when the spec is edited, the hash won't match anymore, and the spec-sync hook will fire /planning --sync.
When --no-design was NOT passed (Step 4e ran — this is the default):
After writing the PRD file successfully, finalize the design spec:
# 1. Patch the design spec temp file's spec_hash from PENDING to the real hash.
DESIGN_BODY_HASH=$(python3 -c "
import re, hashlib, sys
with open(sys.argv[1]) as f:
content = f.read()
body = re.sub(r'^---\s*\n.*?\n---\s*\n', '', content, count=1, flags=re.DOTALL)
body = ' '.join(body.split())
print(hashlib.sha256(body.encode()).hexdigest())
" "$DESIGN_TMP")
# Patch in place using sed (or a python frontmatter editor — keep the file otherwise byte-identical)
sed -i.bak "s/^spec_hash: PENDING$/spec_hash: $DESIGN_BODY_HASH/" "$DESIGN_TMP"
rm -f "${DESIGN_TMP}.bak"
# 2. Verify the patched file's spec_hash matches its body (sanity)
# (Optional but cheap.)
# 3. Patch the PRD frontmatter to add `design_spec: .claude/specs/<feature>-design.html`
# (After the existing spec_hash line. Idempotent — if design_spec: already exists, no-op.)
#
# IMPORTANT (ATTACK-2 mitigation): track whether we mutated the PRD so the
# subsequent `mv` failure can roll the frontmatter mutation BACK. Without this,
# a `mv` failure leaves the PRD pointing to a non-existent design file.
PRD_FILE=".claude/specs/{feature-name}.md"
PRD_DESIGN_SPEC_INJECTED=false
if ! grep -q "^design_spec: " "$PRD_FILE"; then
sed -i.bak "/^spec_hash: /a\\
design_spec: .claude/specs/{feature-name}-design.html
" "$PRD_FILE"
rm -f "${PRD_FILE}.bak"
PRD_DESIGN_SPEC_INJECTED=true
fi
# Extend the trap to also undo the PRD frontmatter mutation on failure between
# here and the final `trap - EXIT`. If `mv` succeeds the trap is released cleanly
# below; if anything fails (mv error, signal, etc.), this trap fires:
# (a) remove the orphan .tmp design spec
# (b) if we added design_spec: to the PRD just now, strip it back out (idempotent)
trap '
rm -f "$DESIGN_TMP";
if [ "${PRD_DESIGN_SPEC_INJECTED:-false}" = "true" ] && [ -f "$PRD_FILE" ]; then
sed -i.bak "/^design_spec: \\.claude\\/specs\\/{feature-name}-design\\.html$/d" "$PRD_FILE"
rm -f "${PRD_FILE}.bak"
fi
' EXIT
# 4. Atomic-rename .tmp to final path. After this, the file matches the */specs/*.md glob
# and the drift hook becomes responsible for any future drift detection.
mv "$DESIGN_TMP" ".claude/specs/{feature-name}-design.html"
# 5. Release the trap — temp is gone, PRD frontmatter is committed, no rollback needed.
trap - EXIT
If any of steps 1-3 fail, the trap set in Step 4e.5 removes the temp file → no orphan (SC-7).
If step 4 (mv) fails, the extended trap above removes the temp file AND strips the
just-injected design_spec: line from the PRD frontmatter → no broken PRD pointing
at a non-existent file (ATTACK-2 mitigation).
If DESIGN_FAILED was set in Step 4e.4 (both writer attempts failed), still complete the atomic-rename — the user gets a minimal spec with TODO markers — and add a one-line warning to the summary in Step 6: ⚠ design-studio-think output was incomplete; design spec contains TODO markers. Run /planning <feature> --design-spec-only to retry.
Print the PRD path and the architect's feasibility verdict, then hand off:
✅ PRD written to .claude/specs/{feature-name}.md
Tech feasibility: {GREEN|YELLOW|RED}
{If YELLOW or RED: print the "High-risk areas" + "Hard constraints" bullets verbatim}
Next steps:
1. Review the PRD — confirm user stories, edge cases, and success criteria capture
what you actually want to build. Edit the file directly if anything is off.
2. When ready, run:
/implementation-plan {feature-name}
to spin up the architecture debate and produce the implementation plan.
Mode options for /implementation-plan:
--fast PM + Architect debate, single phase, no DA
--lite PM + Architect + Devil's Advocate, one combined round
--full Two debate rounds — scope first, then feasibility (default)
--no-design Skip design spec generation
--gtm Add GTM expert to the debate
When --no-design was NOT passed (default), also print:
Design spec: .claude/specs/{feature-name}-design.html
{DESIGN_FAILED warning, if applicable}
Important — do NOT auto-invoke /implementation-plan. The user must review the PRD first. This is the explicit checkpoint that motivated the split.
Persist the PRD as a decision so future planning runs can surface it. Durable
dual-write: append to the ingested KB file FIRST, then write the graph node.
kg-write alone is ephemeral — kg-ingest --rebuild (run on every calibrate and
rescan) regenerates graph.jsonl from shared/*.md and drops any node not backed
by a KB file. shared/decisions.md is the durable source; the graph node is the
fast-retrieval copy.
DECISION="PRD generated: {feature-name} (feasibility: {GREEN|YELLOW|RED})"
# Heading form (### …) so kg-ingest extracts it as its OWN node — a flat bullet
# would be absorbed into the previous decision's body and never be queryable.
printf '\n### %s — %s\n' "$(date +%F)" "$DECISION" >> .claude/knowledge/shared/decisions.md 2>/dev/null || true
KG_WRITE="${CLAUDE_PLUGIN_ROOT}/skills/knowledge-graph/kg-write.sh" # plugin install: Claude Code substitutes the root at load
[ -f "$KG_WRITE" ] || KG_WRITE=".claude/skills/knowledge-graph/kg-write.sh" # symlink install
[ -x "$KG_WRITE" ] && "$KG_WRITE" decision "$DECISION" "planning" 2>/dev/null || true
Failure is non-fatal — the PRD file is the source of truth.
After presenting:
rm -f .claude/verification-pending 2>/dev/null/implementation-plan will run the verifier after the plan is written.Triggered automatically by the spec-drift-check.sh hook when a spec file is edited, or manually via /planning {feature-name} --sync.
When a user edits .claude/specs/{feature}.md and saves, the post-edit hook:
.claude/specs/*.md)spec_hash in the spec's frontmatter/planning {feature} --syncSync mode runs PM-only (no architect re-feasibility), adds any missing stories/edge cases that are implied by the (now-edited) brief, and rewrites the spec with a refreshed spec_hash. After sync, the user should run /implementation-plan {feature-name} --sync to reconcile the implementation plan against the new spec items.
| Role | Model | When | Rationale |
|---|---|---|---|
| explore-light (scan) | haiku | always | Just file search |
| design-thinker (UX brief) | sonnet | --design | Short input brief, not a full design pass |
| gtm-expert (positioning note) | sonnet | --gtm | Short input brief, not a launch plan |
| product-manager (PRD) | sonnet | always | Spec drafting |
| architect (feasibility note) | sonnet | always | Scoped, not full architecture design |
PRD generation is single-pass, parallel within each phase. Default (design enabled): 1 Haiku + 2 Sonnet calls (Phase A) → 2 Sonnet calls (Phase B) + 1 Sonnet call (design-spec-writer). With --no-design: 1 Haiku + 2 Sonnet calls in parallel (Phase B only). With --gtm: adds 1 more Sonnet call to Phase A. Still order-of-magnitude cheaper than the old /planning full mode; the heavy debate work moves to /implementation-plan.
After the PRD is written and presented:
If autopilot is active (check .claude/.workflow-state.json mode == "autopilot"):
/implementation-plan. PRD review is a required human checkpoint — the whole point of the split. Instead, write phase: "prd-review" to the workflow state and exit. The user (or a future explicit handoff) decides when to run /implementation-plan.If guided mode (no autopilot or mode != "autopilot"):
/implementation-plan.After /planning completes, print this block verbatim as the final line of the summary:
─────────────────────────────────────────────
💡 Context tip — PRD is now on disk at .claude/specs/{feature-name}.md.
Before running /implementation-plan:
1. Read the PRD top to bottom. Edit anything that doesn't match what you want to build.
2. Pay attention to the architect's feasibility note — RED/YELLOW items are
cheaper to resolve in the PRD than after the architecture debate.
3. When ready, start a FRESH session (/clear) and run:
/implementation-plan {feature-name}
A clean window avoids context rot during the build.
─────────────────────────────────────────────
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub arthtech-ai/sarathi --plugin forge12 commands in this plugin
/docsAudit and generate documentation for skills, agents, and hooks — including full per-skill customer doc pages. Usage: /docs <audit|write|check> <skill-name>/implementSpin up an implementation team from a plan. Usage: /implement <feature-name> <--frontend-only> <--backend-only> <--no-redteam> <--redteam-once> <--redteam-once-strict> <--redteam-strict> <--phase> <--phases> <--all-phases> <--tasks> <--resume-from> <--workflow|--classic> <--decisions off|shadow|enforce>/implementation-planSpin up an adversarial planning team for a feature whose PRD already exists. Reads .claude/specs/<feature>.md, runs the PM + Architect (+ Devil's Advocate) debate, and writes a locked-scope plan to .claude/plans/<feature>.md. Usage: /implementation-plan <feature-name> <--design> <--gtm> <--fast> <--lite> <--sync>/perfRun a performance optimization pass with a cross-functional team. Usage: /perf <scope> <--backend-only> <--frontend-only> <--audit-only> <--deep>/prRun QA, create a GitHub PR, and manage post-merge workflow. Never push directly to main. Optional flags --skip-qa and --decisions off|shadow|enforce./precheckRun local tests before pushing. Catches CI failures locally in 30s instead of 4min round-trip. Usage: /precheck4 plugins in one repository ship this exact command · first indexed Dec 1, 2026
Other plugins' commands for the same job