mik2win/foureyes/bootstrap

Claude Code and agent skill by mik2win/foureyes

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Adapt the feature-flow kit to THIS project — the front door for setting it up. Run on the FIRST install after dropping the kit into a project's .claude/ folder: detects the stack, writes the project profile (.claude/PROJECT.md), installs and reconciles stack rule packs against the real codebase, wires settings/hooks/commands, and writes the kit manifest. Backs up before writing and asks keep-or-rollback before cleaning up build-time files. On a project that's ALREADY adapted (profile_status: ACTIVE) it hands off to /update-kit instead of re-installing, so any later update or re-adapt goes through the safe staging + 3-way merge. Trigger when the user says "bootstrap", "adapt the kit", "set up .claude for this project", or when PROJECT.md is missing / still a TEMPLATE. DO NOT TRIGGER to remove or roll back the kit (that's /teardown). For a plain kit update or re-adapt you can go straight to /update-kit — running /bootstrap on an already-adapted (profile_status: ACTIVE) project is still safe: it detects that and hands off to /update-kit rather than re-installing.

Install

npx vskill@latest install mik2win/foureyes/bootstrap

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as mik2win/foureyes/bootstrap.

/bootstrap — adapt the kit to this project

You turn the portable feature-flow kit into a project-specific .claude/. You are interactive: detect what you can, ask the user about anything ambiguous or where rules diverge from the real code, then generate the project layer. Read _kit/KIT.md and _kit/rules-library/PACKS.md once at the start — they define the kit and the pack format.

Work top-to-bottom, naming each phase as you enter it — the phase headings below are the checklist, and none is optional. Do not skip or reorder: this run is interactive and long, and a run that loses its place re-asks the user questions they already answered.


Phase 0 — Preconditions

  1. Dispatch on entry (this skill is the front door) — check this FIRST. If

.claude/PROJECT.md already exists with profile_status: ACTIVE and you were entered directly (the user ran /bootstrap — not /update-kit calling the reconcile phases 3–6), this is not a first install: the project is already adapted. Hand off to `/update-kit` and stop — it stages the new/current kit, 3-way merges so local adaptations survive, then re-adapts. Re-copying the kit over .claude/ and re-installing would clobber local edits — never do that. (Re-adapting after structural changes also goes through /update-kit.) Check this before the kit-present precondition below, because an adapted project has already removed _kit/ at cleanup.

  1. Confirm the current directory is the project root and the kit is present: _kit/KIT.md

exists under .claude/ (or the cwd if the kit was dropped at repo root). If not, stop and tell the user to copy the kit into <project>/.claude/ first.

  1. Read the contracts: PROJECT.template.md, settings.template.json, and

CLAUDE.snippet.md. Stack rule packs are vendored in _kit/rules-library/.

Phase 0.5 — Back up before any writes

Before writing anything, snapshot what you are about to change so this run is reversible (Phase 8). Create a timestamped backup dir plus a manifest of newly created paths:

bash
TS=$(date +%Y%m%d-%H%M%S); BK=".claude/.bootstrap-backup/$TS"; mkdir -p "$BK"
for f in CLAUDE.md .gitignore .claude/PROJECT.md .claude/settings.json .claude/hooks/guard-bash.sh; do
[ -f "$f" ] && mkdir -p "$BK/$(dirname "$f")" && cp -p "$f" "$BK/$f"
done
: > "$BK/created.txt" # paths this run newly creates — for a clean rollback
  • Back up every file you will modify in place into $BK before you touch it. The loop

covers the always-touched ones; add any other existing file you end up overwriting.

  • As you install in Phases 5–6, append each newly created path (pack rules, pack skills,

commands, PROJECT.md if it didn't exist) to $BK/created.txt, one per line.

  • On a re-run, add a new snapshot — never delete earlier ones.
  • This snapshot reverses bootstrap's own writes. Restoring the project to its pre-kit

state also needs the pre-copy backup taken before the kit was copied in (README "Quick start" step); /teardown uses whichever backup is present.

Phase 1 — Detect the project

Decide empty vs existing (any source files tracked or present beyond .claude/).

Scan for stack markers and structure. For a non-trivial repo, delegate the heavy scan to an Explore agent (read-only) and have it report; otherwise scan inline:

  • Language/framework markers: Gemfile(+rails), package.json(+framework deps),

pyproject.toml/setup.py, go.mod, Cargo.toml, *.csproj, etc.

  • Package manager / tooling: lockfiles (yarn.lock, package-lock.json, uv.lock,

poetry.lock, Gemfile.lock); presence of make, task runners, bin/ scripts.

  • Test / build / lint commands: infer from config (Makefile targets, package.json

scripts, pyproject tool config) — capture exact strings.

  • Structure / layers: top-level source dirs, module/layer layout, any existing

architecture docs, CLAUDE.md, .cursor/rules, README.

  • Git host: git remote -v → github / gitlab / none.
  • Integrations: external SDKs/clients in deps and their official doc URLs.

Phase 2 — Draft the profile

Fill PROJECT.template.md into a draft .claude/PROJECT.md from detection.

  • Existing project: populate every section from evidence; mark anything you inferred

but aren't sure of for confirmation in Phase 4.

  • Empty project: you can't detect — ask the user. Use AskUserQuestion for: primary

language/framework, package manager, test command, architecture style, and the business domain + roles. Keep it to a few focused questions.

  • Always confirm the Domain section with the user briefly — it drives /analyst and

can't be reliably detected from code.

  • Set the Domain → Glossary (CONTEXT.md) and ADR location pointers (default CONTEXT.md

at repo root and docs/adr/). Leave them n/a until /domain-model records the first term/decision — do not create the files now (they're created lazily by /domain-model). If the repo already has a CONTEXT.md or docs/adr/, point at it.

  • Set Plans / backlog → Issue tracker = local, the Issues directory (default

<backlog>/issues/, used by /to-issues and /triage), and the Triage labels state machine — offer the default needs-triage → ready → in-progress → done + blocked and let the user adjust. Don't scaffold the issues directory; /to-issues creates it on first use.

  • Set Plans / backlog → Small-debt register — default <backlog>/small-debt-register.md, the

path-keyed home for verified zero-consequence fixes that /close-epic refuses to card and rules/_generic/code.md tells a file-editing session to grep. Don't scaffold it; it is created from skills/close-epic/assets/small-debt-register.md on first use. n/a is a valid answer — the rows then stay as clauses in ledger rows, which is where they were before the register existed.

  • Ask the artifact git policy and record it in PROJECT.md → "Artifact git policy". For each

category of agent-generated artifact, the user decides whether it stays local (gitignored, never pushed) or is committed (shared) — explain the trade-off, don't impose. Group into a couple of AskUserQuestions, e.g.:

  • Working backlog (briefs/specs/plans/PRDs/issues/handoff/diagnosis): "keep as local scratch

that never leaves your machine, or commit them as shared docs?"

  • Shared model (CONTEXT.md glossary + ADRs): "commit as the team's shared language

(recommended — that's the point of a ubiquitous language), or keep local?" Offer a sensible default (working backlog local, CONTEXT.md/ADRs committed) but the choice is the user's. The chosen local locations get added to .gitignore in Phase 6.

  • Ask the VCS / code-publish policy and record it in PROJECT.md → "Security / VCS policy".

The safe default is suggest-only: the agent never runs git add / commit / merge / push — it outputs the command for the user to run. Confirm the user wants that, or relax it (e.g. allow local commits but never push). Also ask for any other commands to forbid entirely — a deploy/publish CLI, scp/rsync to a remote, a package-publish command, etc. Both answers drive the settings.json deny list and the guard-bash blocks in Phase 5, so the user explicitly controls what the agent may run and what code can leave the machine.

Set profile_status: ACTIVE only at the end (Phase 5), not yet.

Phase 3 — Select rule packs (from the rules library)

Stack rule packs are vendored in the kit at _kit/rules-library/ — read them there, no network needed. (If that folder is missing, proceed generic-only and tell the user.)

  1. Always install the kit's rules/_generic/* (language-neutral; already in place).
  2. Scan _kit/rules-library/*/pack.yaml; read _kit/rules-library/PACKS.md for the schema.

Evaluate each detect against the target repo; select matching packs and pull their depends_on. If both ruby and rails match, choose ONE per their notes (ruby = comprehensive, rails = condensed) — ask the user if unsure. Compose freely across languages (e.g. ruby + react-ts + postgres, or python + postgres).

  1. If a detected stack has no pack in the library, tell the user: the generic core

works, but stack rules are missing — offer to (a) proceed generic-only, or (b) pause to add a pack under _kit/rules-library/ per PACKS.md, then re-run.

  1. Resolve each pack's installs: take always-entries; for conditional entries

(rule/when/probe/on_absent) run the probe against the repo and honor on_absent (skip, or ask). Note each pack's templates (e.g. project-overview.md) for the fill step. Warn about any listed file missing from the library.

Phase 4 — Reconcile rules with reality (key step)

Only for an existing project. For each selected pack, walk its assumptions[]:

  1. Run the probe (a cheap Grep/Glob/Read check) to test whether the pack's expects

holds in this codebase.

  1. If reality matches → install the rule as-is.
  2. If reality diverges and on_divergence: ask (the default) → present the divergence

via AskUserQuestion: state what the rule expects vs what the code actually does, and offer:

  • Adopt — keep the rule; note that code should move toward it over time.
  • Relax — rewrite the rule to match the current code (edit the installed copy).
  • Skip — don't install this rule.

(For adopt/relax/skip defaults in the pack, apply without asking.)

  1. Batch related divergences into as few questions as is sensible — don't ask 20 separate

questions if 4 grouped ones cover it.

  1. Record each resolution (assumption id → decision) in PROJECT.md → a "Rules notes"

subsection, so the choice is traceable and the next /bootstrap reuses it.

Phase 5 — Generate the project layer

Write the project-specific files. As you go, log each newly created path to $BK/created.txt and back up any pre-existing file into $BK before overwriting it (see Phase 0.5):

  1. `.claude/PROJECT.md` — finalize all sections; set profile_status: ACTIVE.
  2. `.claude/rules/` — copy the selected packs' resolved installs rule files

(reconciled) from _kit/rules-library/<stack>/claude/rules/ into .claude/rules/; keep the kit's _generic/. Copy each pack's also_install skills into .claude/skills/. Fold a pack's CLAUDE.md guidance into PROJECT.md rather than overwriting the project's CLAUDE.md. Copy templates (e.g. project-overview.md) and flag them for the user to fill. Update PROJECT.md → Rules to list what's installed.

Then narrow each installed rule's `paths:` to this project's actual layout — this is the step that turns the rule set into a context budget. The kit ships paths: "**/*" as a deliberate template default: it means "scope me, I don't know your tree yet", and a rule left that wide loads on every file touch. Walk the installed rules and rewrite each glob against the layout you surveyed:

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

Popularity

Repository stars
2
7-day trend score
10

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • configConfiguration overrides

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mik2win/foureyes/bootstrap/badge)](https://verified-skill.com/skills/mik2win/foureyes/bootstrap)

Something wrong with this skill or its page? Tell us.