bootstrap
Capify an existing project. Scans the repo for already-installed MCP servers, skills, rules, hooks, sub-agents, and plugins (across .claude, .cursor, .codex, .gemini, etc.), consolidates them into shared top-level directories (skills/, rules/, hooks/), and synthesizes a sound capabilities.yaml from the inventory. Use whenever the user says "bootstrap capa", "capify this project", "onboard capa onto an existing repo", "inventory my agent setup", or asks how to turn an ad-hoc Claude/Cursor/Codex configuration into a capabilities file. Use even when the user only mentions one provider — discovery
npx skills add infragate/capa --skill bootstrap --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Turns an existing project that has MCP servers, skills, rules, hooks, and sub-agents across several provider-specific directories into a clean, reproducible capabilities.yaml managed by capa. It performs discovery, migration, and synthesis to produce a single capabilities.yaml at the repo root.
How it works
- Preflight checks include ensuring capa is installed, Git state sanity, and branch handling by creating a capa/bootstrap branch when on a main-like branch.
- Discover: scans the repo for agent configurations across providers, resolving symlinks and submodules, excluding common build dirs. Builds an inventory snapshot with sections like mcp_servers, skills, rules, hooks, subagents, symlinks, submodules, and ignored_dirs_present.
- Plan: presents the inventory and explains why moves are necessary. Decides which provider-specific items move to shared dirs, how to reference them (e.g., .claude/skills/foo/ → skills/foo/ with type: local and def.path), and which providers to declare. Discusses .gitignore changes and potential conflicts.
- Migrate: executes moves with git mv per category and shows a rename list for verification.
- Synthesize: writes capabilities.yaml with a skeleton structure including providers, options, and empty or populated sections for skills, servers, tools, rules, hooks, subagents, plugins. Always includes capabilities-manager and sorts by id. Documents how to choose MCP server configs and how to reference tools.
- Verify: runs capa install and surfaces installed items, blockers, and remaining credential prompts.
- Inspect tools: populates the tools: section by querying MCP servers for available tools and suggesting appropriate ids, ensuring id naming excludes server prefixes and matches the described conventions.
When to use it
Use when the user has a repo that already works with at least one AI coding agent but has never run capa init. Trigger words include: "bootstrap capa", "capify", "set capa up on this repo", "convert my .claude/.cursor config to capa", or asks how to turn ad-hoc provider configurations into a capabilities file. If a capabilities.yaml already exists, this tool defers to capabilities-manager instead.
What it can touch
- provider config dirs (e.g., .claude, .cursor, .codex, etc.) to migrate into shared top-level dirs (skills/, rules/, hooks/).
- The project root for the synthesized capabilities.yaml.
- .gitignore entries as planned in Phase 3.
Caveats
- Do not move files without user sign-off during Phase 3. Phase transitions require user confirmation before Phase 4 migration.
- If Phase 6 yields empty tools for a server, the agent will prompt the user to complete authentication per the guidance in Phase 6.
- The tool relies on capabilities-manager for schema details; it defers exact field shapes to that skill when composing entries.
# Bootstrap Turn an existing project that has accumulated MCP servers, skills, rules, hooks, and sub-agents across several provider-specific directories into a clean, reproducible `capabilities.yaml` managed by capa. ## When to use The user has a repo that already works with at least one AI coding agent (Claude Code, Cursor, Codex, Gemini, Copilot, etc.) but has never run `capa init`. They want capa to take over so the configuration is shared across providers and version-controlled in one place. Trigger words and shapes: "bootstrap capa", "capify", "set capa up on this repo", "convert my .claude/.cursor config to capa", "I have a bunch of skills and rules already — onboard them". If `capabilities.yaml` already exists at the repo root, this skill is the wrong tool — point the user at the `capabilities-manager` skill instead, which knows how to extend an existing file. ## How this relates to `capabilities-manager` Bootstrap is the one-time on-boarding helper. It produces a `capabilities.yaml` from scratch. `capabilities-manager` is the long-term editor — adding skills, registering MCP servers, configuring hooks on an already-bootstrapped project. **Read `capabilities-manager` for sch
- When to use
- How this relates to capabilities-manager
- The flow at a glance
- Phase 1 — Preflight
- Phase 2 — Discover
- Phase 3 — Plan
- Phase 4 — Migrate
- Phase 5 — Synthesize
- Phase 6 — Verify
- Phase 7 — Inspect tools and populate tools:
- Wrap-up
- What this skill never does
- Things capa can't model
- References
What does the bootstrap skill do?
Capify an existing project. Scans the repo for already-installed MCP servers, skills, rules, hooks, sub-agents, and plugins (across .claude, .cursor, .codex, .gemini, etc.), consolidates them into shared top-level directories (skills/, rules/, hooks/), and synthesizes a sound capabilities.yaml from the inventory. Use whenever the user says "bootstrap capa", "capify this project", "onboard capa onto an existing repo", "inventory my agent setup", or asks how to turn an ad-hoc Claude/Cursor/Codex configuration into a capabilities file. Use even when the user only mentions one provider — discovery
How do I install it?
Run `npx skills add infragate/capa --skill bootstrap --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From infragate/capa, a repository with 680 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
