kanevry/session-orchestrator/bootstrap
Claude Code and agent skill by kanevry/session-orchestrator
- community
Checking that the SKILL.md file is still in the repository.
Use this skill when scaffolding the minimum repository structure required by session-orchestrator. Invoked automatically by the Bootstrap Gate when CLAUDE.md, Session Config, or bootstrap.lock is missing. Also available as /bootstrap for manual invocation. Three intensity tiers: fast (demos/spikes), standard (MVPs), deep (production/team).
Install
npx vskill@latest install kanevry/session-orchestrator/bootstrapSKILL.md
The same SKILL.md was published earlier as kanevry/session-orchestrator/bootstrap.
Bootstrap Skill
Plugin root:${CLAUDE_PLUGIN_ROOT}. Claude Code replaces this with the plugin's absolute path when it loads this file. Where it appears unreplaced — in a file this skill reads with the Read tool, or on Codex, Cursor or Pi — the plugin root is the directory that contains this skill'sskills/folder (two levels above the folder of this SKILL.md). Write that absolute path literally into every command that starts a plugin script: the Bash tool has no plugin variable, and shell variables do not survive between tool calls.
Invocation
The user invokes /bootstrap with arguments: $ARGUMENTS. Direct invocation runs with INVOCATION_MODE = direct (see § Invocation Context) and is standalone: after bootstrap completes, report the files created and the git commit hash, and do NOT automatically continue into any other skill.
TL;DR — for first-time users: Run /bootstrap with no flags. The skill auto-detects the right tier (fast/standard/deep) from your repo, recommends one with a one-line reason, then walks a fixed questionnaire — tier/stack (1–2 prompts), owner persona (5), dispatcher autonomy (1); 7–9 prompts on a first-run full bootstrap. Bestätigen → fertig. Keine weiteren Schritte.
The flags below cover special cases (re-adopting an existing repo, upgrading a tier, syncing rules). If you don't recognize the case in the description, you don't need the flag.
Instruction file alias: Bootstrap creates and readsCLAUDE.md(orAGENTS.mdon Codex CLI). The two are transparent aliases — pick one, never both. Resolution rule: seeskills/_shared/instruction-file-resolution.md.
Standard usage (no flags)
This is the path 95 % of users want.
| Invocation | Behavior | |
|---|---|---|
/bootstrap | Auto-detect tier (fast / standard / deep) from repo context. Present recommendation via AskUserQuestion with options to confirm or override. Tier/stack: 1–2 questions; first-run full bootstrap adds owner interview (5, owner-interview.mjs) + dispatcher-autonomy capture (1). Then scaffold files + commit. |
What the user sees:
Flag reference (special cases)
Only use a flag if you have one of the situations described. Parsed flags decide the mode dispatch in § Invocation Context — --fast / --standard / --deep skip the tier confirmation question, while --retroactive, --refresh-lock, --sync-rules and --ecosystem-health are standalone short-circuit flows that run to completion in this skill without dispatching to a tier template.
| Flag | When to use it | |
|---|---|---|
--upgrade <tier> | You bootstrapped fast earlier and now need standard or deep. Idempotent — writes only the delta. Refuses downgrade. Valid: fast → standard, fast → deep, standard → deep. | |
--retroactive | The repo already has CLAUDE.md (or AGENTS.md on Codex CLI) + ## Session Config but no bootstrap.lock (manually bootstrapped before the gate existed). Writes the lock based on file inventory; makes no scaffolding changes. Commit: chore: bootstrap lock (retroactive). | |
--refresh-lock | Your bootstrap.lock already has valid version/tier fields but the freshness probe flags it as stale or plugin-version-drifted — --retroactive is a no-op here. Acknowledges the current plugin version and resets the freshness clock (refreshed-at + refreshed-plugin-version) without touching the lock's original bootstrap provenance. Also appends missing runtime and hook-log .gitignore lines. No scaffolding, no auto-commit. | |
--sync-rules | Pull canonical rules from the plugin's rules/ library into .claude/rules/. Preserves local rules (files without the plugin source header). Standalone — does not touch bootstrap.lock. | |
--ecosystem-health | Run the ecosystem-health wizard: detects CI provider + package manager, prompts for health endpoints, pipelines, and critical issue labels. Writes the config block + .orchestrator/policy/ecosystem.json. No scaffolding, no auto-commit. | |
--fast / --standard / --deep | Skip the tier confirmation question (e.g., for scripted runs). Equivalent to running /bootstrap and selecting that option. | |
--no-interview | Non-interactive run (scripted or headless). No AskUserQuestion and no numbered-list question anywhere — tier, archetype, vault, owner interview, dispatcher autonomy. This row is the contract; the phase sites below only point here. Defaults: tier = RECOMMENDED_TIER (a tier flag wins); archetype: public path → detected or node-minimal, private path → detected or abort with a one-line error (private-contract.md § Select) — never the public default on the private path; vault registration skipped; dispatcher autonomy = off without asking; owner.yaml not written. Never end a turn on a question: if a required value cannot be defaulted, abort with a one-line error. |
All flag-driven flows are idempotent — running twice with no upstream change is a no-op.
Overview
This skill runs when the Bootstrap Gate is closed (missing CLAUDE.md, Session Config, or .orchestrator/bootstrap.lock) or when the user invokes /bootstrap directly. It scaffolds the minimum structure required by all session-orchestrator skills, commits it, and writes the lock file that opens the gate for all future invocations.
Anti-bureaucracy contract: On a first-time full bootstrap (no tier flags, no --no-interview), expect 7–9 AskUserQuestion prompts in three fixed blocks — not an open-ended wizard. (1) Tier/stack (Phase 2): one tier-confirmation question, plus an optional second archetype question when PATH_TYPE = public and archetype confidence is low (Standard/Deep only). (2) Owner persona (Phase 3.5): five questions from scripts/lib/owner-interview.mjs (first-run only). (3) Dispatcher autonomy (Phase 3.5.1): one question from scripts/lib/config/dispatcher-autonomy-capture.mjs. Flagged flows (--upgrade, --retroactive, --sync-rules, --ecosystem-health) and --no-interview skip some or all of these blocks. In a headless run (codex exec, claude -p) a question is a failed bootstrap, not a pause: measured 2026-11-02 under codex exec, 2 of 4 --fast --no-interview runs stopped on the tier question and wrote no bootstrap.lock.
Invocation Context
Before starting, determine how this skill was invoked:
- Transitive (gate-closed): Invoked from another skill's Phase 0. The user's original intent (their first prompt) is available in context. After bootstrap completes, execution must return to the original skill's Phase 1.
- Direct (`/bootstrap`): User invoked manually. Parse
$ARGUMENTSfor flags:--fast,--standard,--deep,--no-interview,--upgrade <tier>,--retroactive. See § Invocation above for flag semantics.
Store INVOCATION_MODE = transitive | direct.
Mode dispatch (direct invocation only):
- If
--upgrade <tier>is present in$ARGUMENTS: jump to Upgrade Flow section. Do not proceed to Phase 1. - If
--retroactiveis present in$ARGUMENTS: jump to Retroactive Flow section. Do not proceed to Phase 1. - If
--refresh-lockis present in$ARGUMENTS: jump to Refresh-Lock Flow section. Do not proceed to Phase 1. - If
--sync-rulesis present in$ARGUMENTS: jump to Sync-Rules Flow section. Do not proceed to Phase 1. - If
--ecosystem-healthis present in$ARGUMENTS: jump to Ecosystem-Health Flow section. Do not proceed to Phase 1. - Otherwise: continue to Phase 1 below.
Phase 0.5: Determine Private vs. Public Path
Before dispatching to any tier template, read skills/bootstrap/public-fallback.md and execute Step 1 (PATH_TYPE detection). Store the result as PATH_TYPE = private | public. This detection is silent — no user interaction.
private: the existing host-local config resolution found a baseline directory and its reduced contract validated. Useprivate-contract.mdfor selection, templates, commands, CI and rules.public: the resolved baseline is absent, empty, or points to a missing directory. Use plugin-bundled templates.- Existing but invalid configured baseline: abort before dispatch; report the reader's sanitized error reason; for
producer-missingalso surface themessageand the migrate-or-unconfigure choice (seepublic-fallback.md§ Step 1).
Pass PATH_TYPE into Phase 1 and all subsequent phases. All tier templates (fast-template.md, standard-template.md, deep-template.md) must consult public-fallback.md for CLAUDE.md generation and archetype file sourcing when PATH_TYPE = public.
Phase 1: Detect Tier + Archetype
Read skills/bootstrap/intensity-heuristic.md and execute the tier + archetype recommendation algorithm.
Inputs to the heuristic:
- User's first prompt — the message that triggered this skill (most important signal)
- Repo name —
basename $(git rev-parse --show-toplevel)(secondary signal) - Existing files —
ls -laof repo root (presence ofpackage.json,pyproject.toml, etc. shifts archetype) - $ARGUMENTS flags — if
--fast,--standard, or--deepis present, skip heuristic and use the specified tier directly
Measure first. Run node "${CLAUDE_PLUGIN_ROOT}/scripts/setup-precheck.mjs" --repo-root "$PWD" --json (read-only, one JSON line: items[] with key, status, value, reason). Use its vcs and packageManager items as the input for the heuristic instead of guessing from ls -la. Show the user one line per item before the tier question; a skipped item (for example test, typecheck, lint) reads "no check, reason: <reason>". Never write that text into a *-command key: the gate would run it as a shell command. Ceiling (#2230 cut 1): an absent or none command still falls back to the npm default in scripts/run-quality-gate.mjs extractCommand; revisit with the Stufe-0 cut that gives the gate a real "no check" value. If the command fails because the plugin path did not resolve (Codex CLI and Cursor do not substitute ${CLAUDE_PLUGIN_ROOT}, #2258), say "no measurement, plugin path unresolved" and continue with the inputs above.
Output from Phase 1:
RECOMMENDED_TIER=fast|standard|deepRECOMMENDED_ARCHETYPE= validated private contract ID, public ID, ornullHEURISTIC_REASON= one-sentence explanation of why this tier was chosen (shown to user)PATH_TYPE=private(plan-baseline-path configured and path exists) |public(no baseline)
Detecting PATH_TYPE: Already determined in Phase 0.5 — use the stored PATH_TYPE value. Do not re-run detection.
Fast tier: RECOMMENDED_ARCHETYPE is always null. No stack selection needed.
Phase 2: Present Tier Confirmation (One Question)
Present exactly one AskUserQuestion unless:
$ARGUMENTSincludes--fast,--standard, or--deep(tier pre-selected, skip question)$ARGUMENTSincludes--no-interview→CONFIRMED_TIER = RECOMMENDED_TIER, a tier flag wins (contract: SKILL.md § Invocation flag table)--retroactiveflag (no scaffolding at all, skip to Phase 4)
Language (#1562). The question texts in this skill are written in German. Render every question, option description and report line in the operator's language: owner.language from ~/.config/session-orchestrator/owner.yaml when that file exists (de or en), otherwise the language the operator writes in this session. Tier labels (fast, standard, deep) and archetype ids stay verbatim, because they are values; (Empfohlen) and Abbrechen follow the language ((Recommended), Cancel).
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bootstrap/SKILL.md
Popularity
- Repository stars
- 52
- Repository forks
- 7
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kanevry/session-orchestrator/bootstrap)