/ai-devkit:cmk:infrafrom ai-devkit
Establishes or audits a repo's infrastructure-as-code layout: isolates IaC packages per deployment concern, defines environment boundaries (production, staging, dev, canary, ephemeral), and enforces code-and-pipeline isolation between stacks.
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.
Establish or audit a repo's infrastructure-as-code layout: how IaC packages are isolated from each other, how environments are named and bounded, and where cloud-provider specifics live versus what stays in the shared pattern.
Init (default) — create isolated IaC packages per deployment concern and declare each package's environments.
Update — add an environment or package; preserve code-and-pipeline isolation between stacks.
Verify — report-only audit against the checks under ## Verify;
never mutates.
infra/ holds isolated IaC packagesInfrastructure-as-code lives under infra/, organized as separate packages
rather than one shared program. Each independently deployable stack — a
different product generation, a different deployment target, a rewrite living
alongside what it replaces — gets its own package with code-and-pipeline
isolation: no shared code paths between them, and no shared pipeline
wiring. A change to one package's modules, config, or workflow must not be
able to ripple into another's deploy. When two packages look similar, resist
merging them on that basis alone — isolation is the point, not deduplication.
A package owns one deployment concern end to end, not a slice of several.
Within a package, environments are explicit, named entities — not ad-hoc
variable overrides. The standard vocabulary: production, staging, dev,
canary, plus ephemeral per-effort stacks spun up for a single unit of
work (a feature branch, a review, a bounded experiment) and torn down when it
closes. A repo may not need every tier, but whatever tiers exist are declared,
not inferred from whichever config happens to get passed at deploy time.
A package's environments describe remote, deployed infrastructure. A stack
that mirrors that same topology locally (e.g. a local object store standing
in for the cloud one) so it can run on a developer machine or in CI is
cmk:local-stack's facet, not this one — it must stay worktree-safe there
regardless of what it mirrors. Read cmk:local-stack when the task is making
a local topology worktree-safe rather than shaping the deployed packages
themselves.
Named environments (and the local stack) adapt composition and
materialization; they do not fork the path. The no-shortcut rule is
cmk:delivery-pipeline's engineering principles; cmk:cicd owns
the host-runnable script contract. This skill owns the environment
vocabulary the composer adapts.
cmk:cicd's contractThe contract is 1:1:1: every IaC stack pairs with exactly one GitHub
Environment of the same name and exactly one deploy workflow that targets it.
This skill names that pairing and requires it to exist; the workflow
triggers, branch/tag rules, and approval gates that implement it are
cmk:cicd's facet. Read cmk:cicd when wiring the deploy path itself.
cmk:enclaveWhen a stack has a measured image, a host/parent, and an attested
principal, cmk:enclave owns that boundary and the sealed package.
This skill only names the composition surface (which environment,
which IaC package). Do not restate the three planes here.
This skill does not pick a cloud provider or bake in provider-specific
resources — that choice, and the resources, quotas, and account structure
that follow from it, accumulates per-repo. Record provider-specific decisions
in a docs/rules/ entry (or the repo's equivalent) and adapt this skill's
guidance to them; do not push provider specifics back into the shared
pattern.
The principles above are tool-neutral: they hold regardless of which IaC
tool renders them. Using Pulumi? Read references/pulumi.md for the
stack-per-environment file layout, program structure, and state/secrets
trade-offs. An alternative IaC tool joins as a sibling binding alongside it,
not a replacement for the tool-neutral core above.
Report-only — never mutate:
infra/ is isolated: no cross-package imports or
shared modules between independently deployable stacks.production, staging, dev,
canary, or a documented ephemeral pattern) has a corresponding deploy
path — no environment exists in config with no way to ship to it.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.