Designs multi-cloud, four-environment infrastructure configurations from requirements, producing design documents, environment matrices, and ADRs. Grounded in the OKF k8s/tf bundle; writes no implementation code.
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.
A configuration a team can build from, in which:
No implementation code is written here.
| Situation | Do this |
|---|---|
| A requirement is qualitative ("highly available", "fast") | It is not a requirement yet. Ask for a number, or record a provisional value with the reason it is provisional |
| The bundle covers the topic | Cite it [document.md] and state it at the right tier (fact / guidance / open question) |
The bundle does not cover it (all of local; anything production-specific) | Say "outside the bundle's scope", ground it in official documentation or in @rules/infra/environments.md §5, and never speak with the bundle's authority |
| Three or more differences cannot be expressed in common across clouds | Choose separation, not abstraction (@rules/infra/multi-cloud.md §1) |
| More than three differences between two environments | It is becoming a different system. Question the differences before adding another overlay |
| File | Required/Recommended | Source |
|---|---|---|
knowledge/okf-k8s-tf/ | Required | Vendored bundle (@rules/okf-k8s-tf-bundle.md) |
| reports/03_design/target-architecture.md | Recommended | /architect:design-microservices |
| reports/08_infrastructure/infrastructure-design.md | Recommended | /architect:design-infrastructure — the logical design this makes concrete |
| reports/08_infrastructure/{security,observability,disaster-recovery}-design.md | Recommended | The corresponding /architect:design-* skills — policy this design implements |
| The target repository | Recommended | Read it when it exists; the code is the fact and the bundle is the standard |
When invoked from /infra:start, environment, cloud, target path and $OKF arrive already
settled. Do not re-ask them — confirm only what is missing. When invoked directly, run
@rules/okf-k8s-tf-bundle.md §1–2 first (resolve, freshness, environment, cloud).
Use the "requirements and boundaries" section of architecture/design-build-checklist.md as the
question list. Do not leave a blank and continue: record a provisional value with its grounds.
A requirement without a number cannot ground a design decision.
Fill in the four items of @rules/infra/multi-cloud.md §0. A design that proceeds with these vague will break later — that is the single most reliable failure in this area.
Then fill the environment matrix (@rules/infra/environments.md §1). At minimum:
Start from the bundle's ownership table and produce this system's version [architecture/platform-architecture.md].
| Resource | Where the declaration lives | Applied by | State / history |
|---|
Verify one-resource-one-owner immediately after writing the table — that Terraform, Argo CD, CI and manual operation do not overlap. For reference, the observed implementation splits as:
terraform/environments/*/infra, the Terraform job in GitLab CIterraform/environments/*/kubernetes + terraform/modules/kubernetesterraform/charts, Terraform helm_releasekubernetes/staging, Argo CD app-of-appskubernetes/test or the app's k8s/, applied by procedure or CI kubectl applyWork L1 → L4 (@rules/infra/multi-cloud.md §1), reading the bundle document for each. State for every layer what stays identical across environments and what may differ (@rules/infra/environments.md §2).
| Layer | What to decide | Bundle |
|---|---|---|
| L1 cloud foundation | Network, cluster, database, IAM, storage, state boundaries | foundation/terraform.md |
| L2 Kubernetes | Namespace design, RBAC, NetworkPolicy, Pod Security, workload availability | foundation/kubernetes.md |
| L3 shared components | Which charts, common vs. differing values, CRD lifecycle | foundation/helm.md, architecture/supporting-stack.md |
| L4 delivery | The GitOps boundary, CI stages, environment protection, image identity | delivery/*.md |
| Cross-cutting | Secrets, observability, policy | secrets/*.md, operations/*.md, security/*.md |
Any version named here is looked up, not recalled, and must be stable and non-EOL
(@rules/dependency-versions.md). State the version and its support horizon so
/infra:implement pins the same set.
Numbered: who applies what, on what trigger, in what order — within a single environment [architecture/platform-architecture.md]. Make explicit:
Flow between environments (digest promotion, approval, rollback) belongs in Step 8.
Make the bundle's change-impact table concrete for this system [architecture/platform-architecture.md]. These six rows are the minimum:
| Change | What must be checked at the same time |
|---|---|
| Kubernetes version | kubectl, provider, Helm chart/CRD, managed-service add-ons |
| Provider version | .terraform.lock.hcl, plan diff, deprecated attributes, state migration |
| Helm chart version | CRDs, values schema, hooks, rollback method, orphaned resources |
| ServiceAccount / namespace | IAM workload identity, Vault role/policy, RBAC, NetworkPolicy |
| Image repository / tag | CI matrix, scanner, Cosign identity, Kyverno rule, Kustomize image |
| Secret path | Vault policy, SecretStore, ExternalSecret, application references, rotation |
Fill templates/infra/env-matrix.md. It becomes the most-referenced table in the design.
The flow between environments (@rules/infra/environments.md §3).
Every judgement that had two or more options goes into templates/infra/adr.md. In multi-cloud
work the "unify or not" calls are the ones argued about later — record those without exception.
Use templates/infra/design-doc.md. The closing open-questions section is never empty: walk
every item of architecture/design-build-checklist.md and drop what is unmet into it. Follow
@rules/open-questions.md — ask the user what the user owns, and record as TBD only what is
deferred, unanswerable in session, or never asked (--auto).
| Flag | Effect |
|---|---|
--env=<env> | Target environment: local / test / staging / production. Repeatable |
--cloud=<cloud> | Target cloud: aws / azure / gcp. Repeatable |
--auto | Do not ask. Every unresolved item becomes an open question with status unasked, carrying the question and the options that would have been offered |
Written in the project's options.output_language. Location per /infra:start § Output Location.
| File | Content |
|---|---|
$OUT/infra-design-<system>.md | The design document (templates/infra/design-doc.md) |
$OUT/env-matrix-<system>.md | The environment matrix (templates/infra/env-matrix.md) |
$OUT/adr/adr-<NNN>-<slug>.md | One per decision (templates/infra/adr.md) |
Reminders drawn from the bundle. Each of these has been got wrong before.
| Skill | Relationship |
|---|---|
| /infra:start | Router — settles environment, cloud and bundle before this runs |
| /infra:implement | Next step, after the design is agreed |
| /infra:review | Reviews what this produced |
| /architect:design-infrastructure | Upstream — the logical design this makes concrete |
| /architect:estimate-cost | Consumer — costs the configuration decided here |
What SKILL.md sets; muted values are Claude Code's defaults
opusThree short reads, in order
/infra:designfrom infra
npx claudepluginhub ryuking1228/ai-dev-codex-version --plugin infra4 skills in this plugin
/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.
/startInfrastructure Triage and RoutingTriage 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).
Other plugins' skills for the same job