# Detailed procedure Resolve the SKILL.md input contract first. The caller selected this entry point explicitly; it must not trigger itself or recursively call bootstrap from a hook/agent. Read only the references for the chosen mode. The helper is `python3 .claude/framework/bootstrap.py`, run from the project root; `dispatch` accepts a single quoted mode request as data and emits an advisory plan without running it. Do not interpolate the actual invocation into shell text: parse it in the current conversation or pass a structured argv argument. ## Mode dispatch | Invocation | Procedure and owner | Mutation boundary | |---|---|---| | `/claude-bootstrap` | Read discovery.md; inspect actual infrastructure; propose missing setup; initial baseline full review only when real code/scope exists | Reversible authorized local setup only; no invented product, findings or global installation | | `init` | discovery.md + architecture.md; workspace.py configure preview, then existing authorization for apply; project-kickoff for a new product or codebase-onboarding for existing source | Existing docs/decisions/custom native files are preserved; never initialize a product just to maintain Foundry | | `plan` | Read-only discovery; deliver phases, owners, acceptance, conflicts, risk and commands for review | No project files, manifests, caches, proposed reports or generated docs written | | `review` / `review diff` | review-workflow.md; scoped working-tree/base/head review through iteration-review | Read-only application review; execute only inspected authorized checks; code fixes are a separate task | | `review full` | Baseline actual code/contracts and selected risk categories; reuse existing reviews | Full means explicit scope, not every agent/plugin or private file | | `feedback` | Validate a supplied source-bound finding report, preview feedback storage, then store when authorized | Pending independent verification; no active lesson/instruction changes | | `improve` | learning-workflow.md; framework-audit improvement and skill_lab candidate lifecycle | At most two candidates per baseline; explicit reviewed promotion only | | `evaluate` | evaluation-policy.md; define cases and prepare/import actual evidence with skill_lab.py | No paid/model execution unless authorized; protected expected results stay outside candidate inputs | | `maintain` | maintenance-policy.md; inspect duplicates/retention/stale lessons and propose changes | No scheduler, archival deletion, approved lesson rewrite or recurrence is inferred | | `upgrade` | Verify inspected source revision and existing install ownership; preview source framework.py update --dry-run where supported | Clean boilerplates use reviewed Git merging, not managed update; no plugin/global/package install without approval | | `rollback` | Identify setup, managed install or candidate ownership first; preview the corresponding workspace/framework/skill_lab rollback | Never blanket Git reset, recursive deletion or unrelated-file restoration | | `doctor` | framework.py doctor + workspace.py status; inspect metadata/hooks/permissions/adapters with actual installed docs | Report problems, do not silently repair sensitive configuration | | `status` | workspace.py status plus project-status and existing review/eval evidence | Read-only; distinguish present/configured/executed/verified | When providing scope text, put an explicit mode first (use default for default-mode scope); omit all arguments for default discovery. Unknown modes are errors, not an excuse to choose an action. Missing finding/scope/target inputs block that mode's dependent work; continue useful read-only inspection. Mode text is ordinary skill task text, not a native parser or Python flags. The skill is explicit-only and adds no allowed-tools/model grant. ## Shared sequence Inspect Git state/revision, actual contracts and installed versions; record phased decisions. For substantial design use existing eng-planner; for significant review use eng-reviewer independently when available. Delegate no further than one level and cap review/fix at two rounds. Report unavailable independent review rather than substituting model agreement. Do not generate the many sample roles in the master prompt unless a specific requirement justifies a new nonoverlapping responsibility. Use native fallbacks when upstream integrations are absent/incompatible. Read superpowers-integration.md or gsd-integration.md only when relevant. One orchestration owner per concern; never run three redundant reviews. Approval for a local review does not authorize upstream installation, credentials, roadmap changes or remote comments. Close with source revision/snapshot, changes, actual commands/exits, inspected findings, uncertainty, retained ownership, remaining risks and next action. Reuse existing product STATE/ROADMAP and reviews; do not manufacture progress. Framework maintenance state remains separate. Global deployment and unsupported retention/scheduling/metrics must be reported explicitly as unconfigured, not complete.