/ai-devkit:cmk:repo-setupfrom ai-devkit
Bootstraps, adopts, updates, or verifies a repository against a target contract. Composes multiple facets (layout, toolchain, docs, CI/CD) into one pass.
Ships in ai-devkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Compose every setup facet into one pass over a repository. This skill owns no
facet's content itself — it decides which facets apply, in what order, and
folds each facet's own report into one. Read references/target-contract.md
for the tree a fully set-up repo produces and which facet (and verify hook)
owns each line.
## Verify.project-layout → toolchain → docs (cmk:docs) → agent-instructions
→ mcp-config → local-stack → infra → cicd → agent-vendors. Layout
and toolchain come first because every later facet's files land inside the
layout they establish; docs and agent-instructions come before the facets
that point into docs/rules/; local-stack, infra, and cicd come near the
end because they're the most likely to be skipped entirely; agent-vendors
runs last because it vendors the finished skill set. sync isn't part of
this chain — it runs on demand thereafter, once a baseline is recorded at
vendor time.| Facet | Owns |
|---|---|
cmk:project-layout | Role-first top-level directories, one workspace per ecosystem, library promotion, private test packages, external/ vendoring, scripts/ grouping. |
cmk:toolchain | Explicit tool-role assignment, checked-in runtime version pins, single-root workspace config, gitignore baseline. |
cmk:docs | The docs/ taxonomy itself: per-directory navigation READMEs and baseline templates. |
cmk:agent-instructions | Thin CLAUDE.md (symlinked as AGENTS.md) plus the seeded docs/rules/common/ topic files it points into. |
cmk:mcp-config | Checked-in, per-vendor MCP server configuration with secrets kept out of the repo. |
cmk:local-stack | Worktree-isolated local dev stack(s): identity/coherence and the interactive/headless runners. |
cmk:infra | Isolated IaC packages under infra/, first-class environments. |
cmk:cicd | GitHub Actions structure: CI validation, deploy/release, policy and auth. |
cmk:agent-vendors | Canonical .agents/skills/ home, per-vendor adapters and bindings, the check-only adapter-sync CI. |
cmk:sync | Upstream baseline per vendored skill (.agents/skills.lock) and semantic reconciliation with the kit. |
Not every repo needs every facet. A library repo may need no local-stack
or infra; a repo with no deployable service needs no cicd deploy leg. The
assess step decides applicability from evidence (does anything in the repo
already deploy, run a service, or need a local topology) and the plan records,
per skipped facet, why it was skipped — never a silent omission.
If the general-purpose "superpowers" skill collection is installed in the target repo, hand work off to it at natural boundaries: spec writing to its brainstorming/planning skills, implementation to its test-driven-development skill, and completion to its verification skill. This setup never requires superpowers — when it isn't installed, run the same modes and workflow directly and skip the handoff; recommend installing it as a one-line note in the plan, not a precondition.
Report-only — never mutate:
## Verify section,
or — for cmk:docs — its Verify mode) over the parts of the repo that
facet applies to; report per-facet, not merged into one pass/fail.references/target-contract.md for every facet
judged applicable.CLAUDE.md exists but the
docs/rules/ files it points into don't, or an IaC package exists with no
paired deploy workflow.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (commandosslabs/ai-devkit) — no native marketplace selected
npx claudepluginhub p/commandosslabs-ai-devkit36 skills in this plugin
/cmk:adrUse when the user asks to "record this decision", "we decided to use X over Y", "document why we chose this approach", "record an ADR", "update ADR-0003", or needs to create or update architecture decision records for system-level technical choices like choosing a database, communication protocol, or infrastructure pattern./cmk:agent-instructionsUse when the user asks to "set up CLAUDE.md", "set up AGENTS.md", "agent instructions", "add engineering rules", "make the instructions thinner", or needs to establish or maintain a thin, multi-vendor root instruction file backed by on-demand engineering rules under docs/rules/./cmk:agent-vendorsUse when the user asks to "vendor the kit's skills into this repo", "set up agent adapters", "add a coding-agent vendor", "wire skills for Claude Code / Codex / OpenCode / Grok Build / Cursor", or whenever a repo needs one canonical skill set discoverable by multiple coding agents.