Triage entry point for multi-cloud (AWS / Azure / GCP) x four-environment (local / test / staging / production) infrastructure work: resolves the OKF k8s/tf knowledge bundle, checks its freshness, fixes the target environment and cloud, then routes to the design, implement or review skill. /infra:start [target] [--env=<env>] [--cloud=<cloud>] to invoke. Use for "design the infrastructure", "write the Terraform", "review this IaC" and anything that does not yet name a mode. Not for application domain design (/architect:*), ScalarDB data modeling (/scalardb:*), or GitLab MR review write-ups (gitlab-review).
Ships in infra. 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.
None: SKILL.md is the whole skill.
Ground every infrastructure decision in the OKF okf-k8s-tf bundle
(@rules/okf-k8s-tf-bundle.md) rather than in model memory, and hand the real work to the skill
that is sized for it.
Four things are settled and passed downstream, so the mode skill never re-asks them:
$OKF, and which of its documents are past stale_afterlocal / test / staging / production| The user wants | Mode | Route to |
|---|---|---|
| A configuration decided from requirements; technology selection; an approach | design | /infra:design |
| Terraform / manifests / values / CI written or fixed | implement | /infra:implement |
| Existing code or a design document assessed, with findings | review | /infra:review |
Ambiguous? Ask one question with AskUserQuestion. A compound request ("design it and then build it") splits into design → user confirmation → implement; never proceed to implementation without agreement on the design.
Route by invoking the mode skill with the Skill tool, passing the four settled facts as
arguments. Under Codex, use python3 <AI_DEV_LOOP_ROOT>/tools/codex-model-router.py run infra:<mode> --target <TARGET_ROOT> -- <mode arguments> per
@rules/codex-model-routing.md. This skill does triage only — design and review carry a higher
reasoning tier (see Model Policy).
The exception is a single factual lookup ("what does the bundle say about Vault HA?") or a request whose whole point is the triage itself. Answer those here.
| Input | Required/Recommended | Source |
|---|---|---|
knowledge/okf-k8s-tf/ (the bundle) | Required | Vendored; tools/update-okf-bundle.sh status --bundle=k8s-tf |
| The target repository or design document | Recommended | The user |
| reports/03_design/target-architecture.md | Recommended | /architect:design-microservices |
| reports/08_infrastructure/infrastructure-design.md | Recommended | /architect:design-infrastructure |
Run ${CLAUDE_PLUGIN_ROOT}/tools/update-okf-bundle.sh status --bundle=k8s-tf and take the
resolved path as $OKF. The resolution order, the reason there is no remote, and what to do when
it cannot be found are all in @rules/okf-k8s-tf-bundle.md §1.
If the bundle cannot be resolved, do not answer from memory. It is the primary source for this skill, not a convenience.
Each document carries stale_after. When quoting one whose date has passed, say so and re-verify
against official documentation (@rules/okf-k8s-tf-bundle.md §6). security/kyverno.md expires
earlier than the rest, because Kyverno v1.20 plans to remove kyverno.io/v1 ClusterPolicy.
Infrastructure has four environments and no output is produced before the environment is
settled. Use --env=<env>; when absent, ask with AskUserQuestion. When several are in scope,
the deliverable gets one section per environment.
Coverage differs sharply per environment, and the difference is not cosmetic:
| Environment | Bundle | Posture in the output |
|---|---|---|
local | Absent | Say "outside the bundle's scope". Do not assert |
test | Observed implementation (a procedure or CI kubectl apply, direct apply) | Citable as fact |
staging | Observed implementation (Argo CD app-of-apps, GitOps) | Citable as fact |
production | No observed implementation — guidance only | Say the investigated repositories contain no production implementation, and present production as staging plus approval/protection/sync windows |
Full matrix and promotion path: @rules/infra/environments.md.
Multi-cloud is the default premise; never answer as if one cloud were assumed. Use
--cloud=<cloud>; when absent, ask. Settle the four items in @rules/infra/multi-cloud.md §0 and
fill the cloud × environment grid before routing — an empty cell means "not deployed here", and
must not be left implicit.
Pick the mode from Decision Criteria and invoke the corresponding skill, passing environment,
cloud, target path and $OKF. Keep this turn as the router/orchestrator; do not execute the mode
skill inline under Codex.
These bind the mode skills too.
[foundation/terraform.md]-style sources to each claim (@rules/okf-k8s-tf-bundle.md §7).if env == "production" into a base (@rules/infra/environments.md §2).main, latest, a floating tag). Resolve the version rather than recalling it
(@rules/dependency-versions.md).options.output_language; code identifiers stay English.The user's choice wins. Otherwise resolve $OUT in this order:
reports/08_infrastructure/ — when work/pipeline-progress.json exists (pipeline context)docs/infra/ at the target repository root (git rev-parse --show-toplevel), or in the
working directory when there is no repository context| Deliverable | Path | File name |
|---|---|---|
| Design document | $OUT/ | infra-design-<system>.md |
| Environment matrix | $OUT/ | env-matrix-<system>.md |
| ADR | $OUT/adr/ | adr-<NNN>-<slug>.md |
| Review report | $OUT/reviews/ | review-<target>-r<round>.md |
reports/ must carry YAML frontmatter and valid Mermaid — the
repository's hooks enforce both (@rules/output-conventions.md).${CLAUDE_PLUGIN_ROOT}. The plugin is replaced on update and
the deliverable would be lost.| Skill | Model | Why |
|---|---|---|
/infra:start | sonnet | Triage: resolution, freshness, environment/mode. The heavy work is delegated |
/infra:design | opus | Design judgement, trade-offs, ADRs. A wrong structural call propagates to everything downstream |
/infra:implement | sonnet | The conventions are written down and verification commands back them. Highest output volume, so the largest cost saving |
/infra:review | opus | Multi-step reasoning and finding what is absent. A missed finding stays as risk |
The criterion is "how hard the error is to undo" times "how many tokens it generates". When
implementation hits genuinely hard ground — a complex migration, state surgery, a CRD upgrade —
do not push through on sonnet; suggest the user switch with /model opus.
| Skill | Relationship |
|---|---|
| /infra:design, /infra:implement, /infra:review | The three modes this skill routes to |
| /architect:design-infrastructure | Upstream — the logical infrastructure design this refines into a concrete multi-cloud configuration |
| /architect:generate-infra-code | Sibling — emits IaC into generated/ as a pipeline codegen step; /infra:implement writes into a real infrastructure repository |
| /architect:design-security, /architect:design-observability, /architect:design-disaster-recovery | Upstream — policy (authorization model, SLI/SLO, RTO/RPO); this plugin decides the implementation means |
| /scalardb:* | ScalarDB schema and transaction design. This plugin treats ScalarDB only as something that runs on Kubernetes |
| /architect:update-knowledge | Reports the bundle's state (--bundle=k8s-tf) |
What SKILL.md sets; muted values are Claude Code's defaults
sonnet/infra:startfrom infra
npx claudepluginhub ryuking1228/ai-dev-codex-version --plugin infra4 skills in this plugin
/designInfrastructure DesignDesign a multi-cloud, four-environment infrastructure configuration from requirements and emit
the design document, environment matrix and ADRs. Grounded in the OKF k8s/tf bundle; writes no
implementation code.
/infra:design [target] [--env=<env>] [--cloud=<cloud>] [--auto] to invoke.
Use for "design the infrastructure", "decide the configuration", "select the technology",
"compare the approaches". Implementation follows separately via /infra:implement, after the
design is agreed.
/implementInfrastructure ImplementationWrite Terraform, Kubernetes manifests, Helm values, Kustomize overlays and CI definitions from
an agreed infrastructure design, into a real infrastructure repository. Enforces pinned
versions, single ownership, digest continuity and no secret exposure.
/infra:implement [target] [--env=<env>] [--cloud=<cloud>] [--auto] to invoke.
Use for "write the Terraform", "create the manifests", "implement the CI". For IaC scaffolding
emitted into generated/ as a pipeline codegen step, use /architect:generate-infra-code instead.
/reviewInfrastructure ReviewReview existing infrastructure code or a design document against the OKF k8s/tf bundle and
return severity-ranked findings. Checks ownership overlap, image digest continuity and secret
exposure first, and always includes a multi-cloud and an environment-parity section.
/infra:review [target] [--env=<env>] [--cloud=<cloud>] [--round=<n>] to invoke.
Use for "review this infrastructure", "IaC review", "look at this Terraform". For reviewing a
GitLab MR as a review write-up, use gitlab-review.
Other plugins' skills for the same job