Designs multi-cloud, four-environment infrastructure with design documents, environment matrices, and ADRs. No code output.
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.
Shared files: a path written @rules/…, @skills/…, @templates/… or @docs/… is relative to the
plugin root, ${CLAUDE_PLUGIN_ROOT} — not to the project being worked on. Read it from there.
Usage: /infra:design [target] [--env=<env>] [--cloud=<cloud>] [--auto]
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, $OKF and the freshness list
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).
The freshness list names the bundle documents past stale_after or awaiting re-verification
(from tools/update-okf-bundle.sh status --bundle=k8s-tf when invoked directly). A design claim
resting on a listed document says the document awaits re-verification and why, and a decision
that depends on such a claim is also listed in the design's open questions — it may move when
the document is revised.
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.
The design document opens with the ## ELI5 section of @rules/eli5-summary.md (the template
carries the placeholder) — also on a standalone run, which has no work/pipeline-progress.json
and so no options.eli5: the default technical applies and the hook is not there to remind you.
The environment matrix and the ADRs are exempt (eli5: false in their templates).
| 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
Terraform, Kubernetes, AWS, GCP, Azure
/infra:design [target] [--env=<env>] [--cloud=<cloud>] [--auto]from infra
npx claudepluginhub wfukatsu/nexus-architect --plugin infra4 skills in this plugin
/implementInfrastructure ImplementationWrite Terraform, Kubernetes, Helm, Kustomize and CI definitions from an agreed design into a real
infrastructure repository. For a scaffold under generated/, use architect:generate-infra-code.
/reviewInfrastructure ReviewReview infrastructure code or a design against the platform bundle: ownership overlap, image
digest continuity, secret exposure, cloud and environment parity. Use for "review this Terraform".
/startInfrastructure Triage and RoutingEntry point for infrastructure work on AWS, Azure or GCP across local, test, staging and
production: fixes the environment and cloud, then routes to design, implement or review.
Other plugins' skills for the same job