/sdlc-wizard:claude-setup-wizard [optional: regenerate | verify-only]from sdlc-wizard
Scans codebase to auto-detect project configuration, builds confidence per data point, and only asks about unknowns. Use for first-time setup or re-running setup.
Ships in sdlc-wizard. 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.
None: SKILL.md is the whole skill.
$ARGUMENTS
You are a confidence-driven setup wizard. Your job is to scan the project, infer as much as possible, and only ask the user about what you can't figure out. The number of questions is DYNAMIC — it depends on how much you can detect. Stop asking when all configuration data points are resolved (detected, confirmed, or answered).
DO NOT ask a fixed list of questions. DO NOT ask what you already know.
Before doing ANYTHING else, use the Read tool to read the ENTIRE CLAUDE_CODE_SDLC_WIZARD.md file. This file contains all templates, examples, and instructions you need. You CANNOT do this setup correctly without reading it first. Do NOT rely on summaries or references — read the full file now.
After reading, use it as the source of truth for every step below.
Follow these steps IN ORDER. Do not skip or combine steps.
Scan the project root for:
For each configuration data point, assign a confidence level based on scan results:
Configuration Data Points:
| Category | Data Point | How to Detect |
|---|---|---|
| Structure | Source directory | Look for src/, app/, lib/, etc. |
| Structure | Test directory | Look for tests/, tests/, spec/ |
| Structure | Test framework | Config files (jest.config, vitest.config, pytest.ini) |
| Commands | Lint command | package.json scripts, Makefile, config files |
| Commands | Type-check command | tsconfig.json → tsc, mypy.ini → mypy |
| Commands | Run all tests | package.json "test" script, Makefile |
| Commands | Run single test file | Infer from framework (jest → jest path, pytest → pytest path) |
| Commands | Production build | package.json "build" script, Makefile |
| Commands | Deployment setup | Dockerfile, vercel.json, fly.toml, deploy scripts |
| Infra | Database(s) | prisma/, .env DB vars, docker-compose services |
| Infra | Caching layer | .env REDIS vars, docker-compose redis service |
| Infra | Test duration | Count test files, check CI run times if available |
| Preferences | Response detail level | Cannot detect — ALWAYS ASK |
| Preferences | Testing approach | Cannot detect intent from existing code — ALWAYS ASK |
| Preferences | Mocking philosophy | Cannot detect intent from existing code — ALWAYS ASK |
| Testing | Test types | What test files exist (.test., .spec., e2e/, integration/) |
| Coverage | Coverage config | nyc, c8, coverage.py config, CI coverage steps |
| CI | CI shepherd opt-in | Only if CI detected — ALWAYS ASK |
| Domain | Project domain | Auto-detect from domain indicators above (firmware/data-science/CLI/web). Web/API is the default fallback. One domain per project — dominant signal wins |
Each data point has one of three states:
Preference data points (response detail, testing approach, mocking philosophy, CI shepherd) are ALWAYS UNRESOLVED regardless of what code patterns exist. Current code patterns show what IS, not what the user WANTS going forward.
Present ALL detected values organized by state to the user.
For RESOLVED (detected) items: Show what was found, let user bulk-confirm with a single "Looks good" or override specific items.
For RESOLVED (inferred) items: Show what was inferred with reasoning, ask user to confirm or correct.
For UNRESOLVED items: Ask the user directly — these are your questions.
The ready rule: You are ready to generate files when ALL data points are resolved (detected, inferred+confirmed, or answered by user). The number of questions you ask depends entirely on how many data points remain unresolved after scanning. A well-configured project might need 3-4 questions (just preferences). A bare repo might need 10+. There is no fixed count.
DO NOT proceed to file generation until all data points are resolved.
Using detected + confirmed values, generate CLAUDE.md with:
Reference: See "Step 8" in CLAUDE_CODE_SDLC_WIZARD.md for the full template.
AGENTS.md is the cross-tool agent-instructions file converged on by Cursor, Continue.dev, Aider, and other agentic IDEs (CC issue #6235, 276 comments). If the user already has AGENTS.md in the repo, the wizard's CLAUDE.md overlaps in scope; ignoring it leads to drift between the two files.
Detection (already in Step 1's auto-scan): does ./AGENTS.md exist?
If YES, surface the dual-maintain decision:
Detected
AGENTS.md(cross-tool agent-instructions standard, used by Cursor/Continue.dev/Aider). The wizard'sCLAUDE.mdcovers the same ground for Claude Code. Three options:A. Dual-maintain (recommended): keep both files.
CLAUDE.mdfor Claude Code (loaded into every session),AGENTS.mdfor other tools. Sync manually when changing one — phase (a) does not auto-merge. Future work (phase d) will add a drift-consistency test.B. Merge (manual in phase a): record your intent to converge on a single source of truth. The wizard does NOT copy content for you in v1.42.0 — phase (b) will add the copy/symlink helper. For now, pick this if you plan to merge by hand and just want the wizard to know.
C. Skip: leave AGENTS.md alone. The wizard generates only
CLAUDE.md. AGENTS.md will go stale relative to your CC-specific instructions.Pick A, B, or C:
[A/B/C]
Default if no response: A (dual-maintain). Document the user's choice as a one-line comment in their project's SDLC.md (e.g. <!-- AGENTS.md interop: dual-maintain (per ROADMAP #205 phase a) -->). v1.42.0 does NOT teach /claude-update-wizard to parse this metadata key — that's phase (d) work. The comment is for reference and future /claude-update-wizard AGENTS-aware behavior.
If NO AGENTS.md exists: skip this step silently. Phase (b) of #205 (offer to ALSO generate AGENTS.md alongside CLAUDE.md) is deferred — not in v1.42.0 scope.
Scope: phase (a) only — detection + surfacing (v1.42.0). Phases (b) symlink-write, (c) partial (this step), (d) drift test are deferred.
Generate SDLC.md with the full SDLC checklist customized to the project:
Include metadata comments:
<!-- SDLC Harness Version: [version from CLAUDE_CODE_SDLC_WIZARD.md] -->
<!-- Setup Date: [today's date] -->
<!-- Completed Steps: step-0.1, step-0.2, step-1, step-2, step-3, step-4, step-5, step-6, step-7, step-8, step-9 -->
Reference: See "Step 9" in CLAUDE_CODE_SDLC_WIZARD.md for the full template.
Generate TESTING.md using the domain-specific template matching the detected project domain:
Each domain template includes:
Reference: See "Step 9" in CLAUDE_CODE_SDLC_WIZARD.md for the full domain-conditional templates.
Generate ARCHITECTURE.md with:
Reference: See "Step 6" in CLAUDE_CODE_SDLC_WIZARD.md for the full template.
Only if design system artifacts were found in Step 1:
Skip this step if no UI/design system detected.
Only if branding-related assets were found in Step 1 (brand/, logos/, style-guide.md, brand-voice.md, existing BRANDING.md, or UI/content-heavy project detected):
Skip this step if no branding assets or UI/content patterns detected.
Based on detected stack, suggest entries for permissions.allow in .claude/settings.json:
Write the shape as:
{
"permissions": {
"allow": [
"Bash(npm:*)",
"Bash(npx:*)",
"Bash(git:*)",
"Bash(gh:*)"
]
}
}
Do NOT write the deprecated top-level allowedTools array (issue #197). Claude Code treats the presence of allowedTools in project settings as "user has explicitly scoped tool permissions" and silently disables its auto-mode classifier — same failure family as the model pin in #198. permissions.allow is the supported successor and does not trip the auto-mode gate.
Present suggestions and let the user confirm.
The CLI ships cli/templates/settings.json with no model or env pin, preserving Claude Code's model auto-selection. Users can opt into a pin during setup — see AI_SETUP_LANES.md (Reliable: Opus 4.6[1m] + GPT-5.6 Sol + Fable 5.2, recommended default; Frontier: Opus 5.5 + GPT-5.6 Sol + Fable 5.2, experimental; B: Sonnet 5 Simple/One-Off; C: OpusPlan Hybrid).
Why this is opt-in (issue #198): A top-level "model" in settings.json disables auto-mode for the session. Pinning is only worth it when you want consistent model behavior rather than per-turn auto-selection.
Check for global [1m] model pin (#391): Read ~/.claude/settings.json. If model contains [1m], warn: global pin forces 1M on every repo; headless surfaces bill against credits after June 15. Offer [r] Remove / [k] Keep. If r: delete the model key.
Run the complexity heuristic first (roadmap #233):
npx agentic-sdlc-wizard complexity .
The output is JSON: { tier: "simple" | "complex", score, signals }. Use the result to suggest a default in the prompt below — do NOT override the user's choice. The heuristic flags any .env / secrets/ / credentials/ at any depth as a stakes signal that forces complex regardless of size.
Ask the user exactly once in Step 9.5:
Detected repo complexity: {tier} ({score}, signals: {loc, tests, hooks, workflows, stakes-flag if any}).
How do you want to configure the model for this repo?
- [N] No pin (default): Auto-mode. CC picks model per turn. Simplest, no advisor.
- [r] Reliable — Opus 4.6[1m] + GPT-5.6 Sol + Fable 5.2 (Recommended default): Pins
model: "claude-opus-4-6[1m]",advisorModel: "claude-fable-5-2". Proven stability; Fable 5.2 is new to the lane as of 2026-11-09. Effort:maxper session via/effort. GPT-5.6 Sol xhigh as first brain, Fable 5.2 high as escalation.- [o] Opus 5.5 + Fable 5.2 (Frontier — experimental): Pins
model: "claude-opus-5-5",advisorModel: "claude-fable-5-2". Effort:high; GPT-5.6 Sol xhigh as reviewer.- [s] Sonnet 5 + Fable 5.2 (Setup B — Simple/One-Off, lower cost): Pins
model: "sonnet",advisorModel: "claude-fable-5-2". Native 1M context, no[1m]suffix needed. Effort:medium, escalatehigh→xhighfor hard tasks.- [p] OpusPlan Hybrid (Setup C — cost-conscious, still want Opus reasoning): Pins
model: "opusplan". Opus 5 plans (Shift+Tab), Sonnet 5 executes. Max-bundled. No API credit drain (#390).
[N/r/o/s/p]
Conductor model: claude-opus-4-6[1m] at high — for a /conduct front-door session, set per session (--model 'claude-opus-4-6[1m]' --effort high), not a Step 9.5 repo pin. Controller model: claude-opus-4-6[1m] at high too; workers keep claude-opus-5-5 at medium. See AI_SETUP_LANES.md → "Conductor".
If the user answers N (default): Make no edits to .claude/settings.json. Auto-mode stays on. Done.
If the user answers r (Reliable): Edit .claude/settings.json and add:
{
"model": "claude-opus-4-6[1m]",
"advisorModel": "claude-fable-5-2"
}
No effortLevel in settings — use /effort max per session. Tell the user: "Reliable lane (Opus 4.6[1m] + GPT-5.6 Sol + Fable 5.2). Use GPT-5.6 Sol xhigh as first brain for reviews, Fable 5.2 high as escalation brain at <95% confidence. See AI_SETUP_LANES.md for the full brain ladder."
If the user answers o (Frontier — Opus 5.5 + Fable 5.2): Edit .claude/settings.json and add:
{
"model": "claude-opus-5-5",
"advisorModel": "claude-fable-5-2",
"effortLevel": "high"
}
Tell the user: "Frontier lane (Opus 5.5 + GPT-5.6 Sol + Fable 5.2). Effort high. GPT-5.6 Sol xhigh as cross-model reviewer via Codex CLI. Check shell rc for a stale ANTHROPIC_DEFAULT_OPUS_MODEL — it silently overrides this pin."
If the user answers s (Sonnet 5 + Fable 5.2): Edit .claude/settings.json and add:
{
"model": "sonnet",
"advisorModel": "claude-fable-5-2",
"effortLevel": "medium",
"env": {
"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "75"
}
}
Tell the user: "Sonnet 5 + Fable (Setup B) — lower-stakes/simpler work. Effort medium, escalate /effort high→xhigh. Needs CC v2.1.170+. The 75 override is global to this file — it hits every conversation and subagent here and does NOT turn off if you later switch the driver to Opus; remove it by hand if you repin."
If the user answers p (opusplan): Edit .claude/settings.json and add:
{
"model": "opusplan",
"advisorModel": "claude-fable-5-2"
}
Tell the user: "Opus 5 plans (Shift+Tab), Sonnet 5 executes — both Max-bundled, no API drain (Setup C). Set effort per-session via /effort, not a shell-rc env var. Pin ANTHROPIC_DEFAULT_OPUS_MODEL: \"claude-opus-4-8\" if you want 4.8's field-proven planning instead of Opus 5's. Needs CC v2.1.170+."
Mention the escape hatch in all three cases:
model line (and optionally the env/effortLevel keys) from .claude/settings.json, or run /model and pick "Default (recommended)"..claude/settings.json and replace the model value, or re-run /claude-setup-wizard Step 9.5.ANTHROPIC_DEFAULT_OPUS_MODEL: "claude-opus-4-8" or use the full model string claude-opus-4-8 directly.This is project-scoped and shared with the team via git.
After writing project settings (for [o], [s], or [p]), ask once:
Also set
advisorModelin your global~/.claude/settings.json? (Applies advisor to ALL your projects. Project-level always overrides.)[y/N]
Default No. If yes, read ~/.claude/settings.json, add/update only the advisorModel key (do NOT touch other keys), write back. This is the only global settings mutation in setup besides Step 7.7's dead plugin cleanup.
Note: All pin choices include an advisor that auto-consults at decision points. Fable-as-advisor was disabled by an Anthropic rollout on 2026-07-24 and observed working again on 2026-08-16 — check by calling it, not by trusting this note. Fall back to a Fable subagent at high if it genuinely fails. Needs CC v2.1.170+ (v2.1.219+ for Opus 5, v2.1.290+ for claude-fable-5-2 — older versions return a 400).
Offer this only when most of the repo's code is in a language GitNexus parses: TypeScript, JavaScript, Vue, Python, Java, Kotlin, C, C++, C#, Objective-C, Go, Rust, PHP, Ruby, Swift, Dart, Zig or COBOL. It does not parse bash. Otherwise skip this step silently.
Ask the user exactly once, default No:
Install GitNexus, a local code graph for blast-radius and caller queries? License: PolyForm Noncommercial 1.0.0 — commercial use needs a license from its author.
[y/N]
Only an explicit yes proceeds. Then follow wizard → "Optional: GitNexus code graph": install
[email protected] with --save-exact, index with analyze --index-only --pdg --embeddings, and
add the gitnexus server to the project .mcp.json. If that file exists, merge into
mcpServers and keep every server already there; never overwrite it. Never run gitnexus setup;
the wizard section says why.
If .claude/hooks/ has fewer than 9 files, hooks were never installed — tell the user to run npx agentic-sdlc-wizard@latest init first (the wizard doc's hook code blocks are illustrative, not a full template set).
Update tdd-pretool-check.sh with the actual source directory (replace generic /src/ pattern).
Run verification checks:
chmod +x)settings.json is valid JSON.gitignore has required entries (.claude/plans/, .claude/settings.local.json)Report any issues found.
Tell the user:
Setup complete. Hooks and settings load at session start. Exit Claude Code and restart it for the new configuration to take effect. On restart, the SDLC hook will fire and you'll see the checklist in every response.
Optional next steps:
- Run
/claude-automation-recommenderfor stack-specific tooling suggestions (MCP servers, formatting hooks, type-checking hooks, plugins)- After a few sessions, run
/less-permission-prompts— a native Claude Code skill that scans your transcripts for common read-only Bash/MCP calls and proposes a prioritized allowlist. Reduces permission friction without enabling auto mode.- Run
/insights(native CC, v2.1.101+) monthly for friction patterns from session history. Output is qualitative-only — it does NOT replace token-spike detection (hooks/token-spike-check.sh, ROADMAP #220), which needs raw session JSONL.All three are complementary to the SDLC wizard — they add tooling and quality-of-life, not process enforcement.
regenerate as an argument, skip Q&A and regenerate files from existing SDLC.md metadata.verify-only as an argument, skip to Step 11 (verify) only.What SKILL.md sets; muted values are Claude Code's defaults
highThree short reads, in order
project-setup, configuration-wizard, codebase-scanning, sdlc
6 skills in this plugin
/conductCoordinate registered Claude and Codex sessions for bounded reviews, design questions, and task handoffs. One Conductor, one shared protocol and helper on both ends. Use when the user asks to consult, dispatch to, review with, or coordinate another Claude or Codex session (CLI now; desktop once an adapter exposes it)./feedbackSubmit feedback, bug reports, feature requests, or share SDLC patterns you've discovered. Privacy-first — always asks before scanning./fleetAlias for /conduct — fleet coordination. Use when the user types /fleet or asks to coordinate the fleet of Claude and Codex sessions./sdlcFull SDLC workflow for implementing features, fixing bugs, refactoring code, testing, releasing, publishing, and deploying. Use this skill when implementing, fixing, refactoring, testing, adding features, building new code, or releasing/publishing/deploying./claude-update-wizardSmart update for SDLC wizard — shows changelog, compares files, lets you selectively adopt changes while preserving customizations.npx claudepluginhub baseinfinity/claude-sdlc-harness --plugin sdlc-wizardOther plugins' skills for the same job