Helper command reference
Handbook · Verification · Configuration
These are Python CLI commands, not slash skills. Run from the project root; commands operating on project files accept --target. Stateless route and source-maintenance scripts do not share that target flag. Helpers require Python 3.10+; local execution is qualified only on the documented platform. Template entry points forward to scripts/; optional installation ships standalone helper files. Use --help on the actual command before scripting it.
Project preparation
python3 .claude/framework/project.py init --spec docs/project-request.json
python3 .claude/framework/project.py init --spec docs/project-request.json --apply
python3 .claude/framework/project.py checkinit requires a JSON request path relative to target. No --apply means preview with no writes. Applying preflights all destinations, permits only exact pristine state/roadmap replacement and refuses different existing project files. Repeat unchanged initialization is idempotent; evolved records use onboarding rather than forced reset.
check is read-only. Exit 2 means incomplete/missing records or pending captured design choices, 1 means invalid input/path/operation, 0 means the supported document structure passed. Absent legacy design records are reported as NOT_CAPTURED rather than falsely confirmed. Architecture/application correctness remains unverified.
Design questions and records
python3 .claude/framework/design.py interview --section foundation
python3 .claude/framework/design.py interview --section data --answers docs/project/design.json
python3 .claude/framework/design.py checkBoth read scoped answer/catalog/schema data; neither writes answers or asks a live UI itself. interview returns 0 for a valid listing even while answers are pending. check returns 2 pending, 1 invalid/stale data/path, 0 structurally recorded. --section filters the interview listing, not whole-record check completeness. Sections: foundation, structure, behavior, data, backend, delivery. The full interview contract covers exact enum/custom confirmations and schema pins.
Doctor and routing
python3 .claude/framework/framework.py doctor
python3 .claude/framework/framework.py route fix --small
python3 .claude/framework/framework.py route architecture --risk highDoctor reads template/managed ownership, supported config shapes, selected profiles and project settings/MCP presence, then invokes installed claude --version. It does not repair files, authenticate, connect MCP or validate every native setting. Issues return 1; success returns 0. A version mismatch is a warning requiring requalification, not an update or a complete compatibility proof.
route accepts the implemented intent enum (see --help). High risk or architecture/migration/security/incident -> deep; small fix/discovery/documentation -> fast; other recognized requests -> standard. It prints a suggested workflow and advisory limits, not model scheduling or automatic approval enforcement. --small does not bypass relevant checks.
Reviewed application gates
python3 .claude/framework/framework.py gate
python3 .claude/framework/framework.py gate --executeReads ignored .claude/framework.local.json. Required top-level field: gates array. Each gate: unique nonempty name, nonempty string argv array, optional integer timeout 1–600 seconds (default 60), optional boolean blocking (default true). Unknown fields/types fail before any command runs.
Without --execute it lists commands without running them. With --execute argv runs in the target directory under user privileges, with stdout/stderr preserved. Empty gates return 2 even for a plan. Blocking failure/missing executable/timeout returns 1; advisory failures stay visible without blocking an otherwise successful run. Exit 0 does not imply omitted checks or semantic acceptance. No implicit shell is added, but the selected executable can do anything its user can do.
Optional distribution installer
python3 scripts/framework.py install --target /path/to/another-repository --profiles go-echo --dry-run
python3 scripts/framework.py install --target /path/to/another-repository --profiles go-echo
python3 scripts/framework.py update --target /path/to/another-repository --dry-run
python3 scripts/framework.py uninstall --target /path/to/another-repository --dry-runNot needed inside a normal template clone. --hooks opts into the limited path guard; --no-hooks removes its managed addition. Omitted update flags preserve selections; --profiles with no values removes profile selections. rollback/uninstall are aliases restoring original owned bytes, not upstream release rollback. Modified managed files or unowned collisions stop before writes. No force/global installer exists. Retained local files keep appropriate ignore protection. See the complete ownership/rollback contract.
Framework maintenance and evaluation
python3 -m unittest discover -s tests -v
python3 scripts/validate.py
python3 scripts/check_docs.py
python3 scripts/validate_native.pyTests exercise Foundry fixtures, not the actual application. Static checks validate a supported subset. Docs checks validate guides/examples/artifacts offline. Native probing invokes installed CLI inventory in a temporary wrapper and a deliberately malformed control; it does not call a model or claim Markdown schema validation. Do not equate any of these with live native invocation.
python3 scripts/research.py refreshes public-source evidence over the network using curl and writes research snapshots/pins. It executes no upstream installer; run it only for requested research/update work, not routine application startup. python3 scripts/evaluate.py records.jsonl checks and summarizes supplied matched benchmark records; it invokes no model, authenticates no logs and computes no savings. See evaluation protocol before an approved budgeted live experiment. Missing metrics stay null/not measured.
Iteration review
python3 .claude/framework/review.py prepare --id slice-001
python3 .claude/framework/review.py prepare --id slice-001 --apply
python3 .claude/framework/review.py run
python3 .claude/framework/review.py run --execute
python3 .claude/framework/review.py check --id slice-001The optional global --target precedes the subcommand. A Git working tree is required. Preview is default for prepare/run. run --execute executes only the fully prevalidated local gates and records a source/config-bound receipt. At least one passing blocking gate is required. Timeout/failure/source or config mutation fails; malformed config runs nothing. Check exit 2 means missing/stale/self-reported review evidence or blockers, exit 1 is an invalid operation, exit 0 means STRUCTURE_CHECKED only. See the walkthrough for exclusions, trust and semantic limits.
Collaboration inventory
python3 .claude/framework/collaboration.py statusRead-only local Git inventory: branch/head, operation, dirty flag, unmerged paths/stages and ready_for_new_integration. Global --target precedes status and must be a worktree root. Exit 0: no operation/conflict (dirty work may remain); 2: operation/conflict needs attention; 1: invalid Git/path/tool input. No remote freshness, semantic resolution or test claim. See resolve-conflicts.
Styled handbook
python3 .claude/framework/docs.py
python3 .claude/framework/docs.py --checkOptional --root selects an existing project root; default current directory. Build owns docs/site through its manifest and refuses modified/unowned output collisions. Check is read-only and fails on stale output. No server, network, install or deployment action. See documentation style for renderer/clipboard/data-review limits.
Skill lab
python3 .claude/framework/skill_lab.py scan --apply refreshes the local skill dashboard and structural history. seed, prepare-eval, import-eval, propose, compare, promote and rollback support evaluation definitions, supplied evidence and bounded candidate management. No model/network execution. Full commands and argument contract.