/arn-infra:arn-infra-envfrom arn-infra
Manages infrastructure environments (dev/staging/production) with isolation strategies, variable overrides, and promotion rules. Generates environment-specific IaC configurations.
Ships in arn-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.
Read when SKILL.md points to them.
Configure and manage infrastructure environments (dev, staging, production) with provider-specific isolation strategies, environment-specific variable overrides, resource sizing, and promotion rules. This skill generates environment-specific IaC configurations and updates the environment promotion pipeline.
This skill is expertise-adaptive: beginner users get simplified environment setups with opinionated defaults, while expert users have full control over isolation strategies and promotion configurations.
Read ## Arness from the project's CLAUDE.md. If no ## Arness section exists or Arness Infra fields are missing, inform the user: "Arness Infra is not configured for this project yet. Run /arn-infra-wizard to get started — it will set everything up automatically." Do not proceed without it.
Check the Deferred field. If Deferred: yes, inform the user: "Infrastructure is in deferred mode. Environment management is not available until infrastructure is fully configured. Run /arn-infra-assess to un-defer." Stop.
Extract:
~/.arness/user-profile.yaml (or .claude/arness-profile.local.md if it exists — project override takes precedence). Apply the experience derivation mapping from ${CLAUDE_PLUGIN_ROOT}/skills/arn-infra-ensure-config/references/experience-derivation.md. If no profile exists, check for legacy Experience level in ## Arness as fallback.providers.md for per-provider detailsenvironments.mdRead the environment configuration:
Read <environments-config-path>
Extract the current state:
Read the provider configuration:
Read <providers-config-path>
Extract per-provider scope and IaC tool for environment-specific config generation.
Present current state: "Your current environment pipeline: [env1] --> [env2] --> [env3]
| Environment | Auto-deploy | Approval | Last deployed |
|---|---|---|---|
| [table of environments]" |
Ask (using AskUserQuestion):
"What would you like to do?"
Options:
If Full environment setup: proceed through Steps 2-5 sequentially, pausing for user confirmation at each decision point.
If Specific task:
Ask (using AskUserQuestion):
"Which task?"
Options:
Route each specific task to its corresponding step: Add environment maps to Step 2, Configure environment maps to Step 3, Configure promotion maps to Step 5, Generate configs maps to Step 4.
Read the local override or plugin default for
environment-patterns.md.
For each provider, recommend an isolation strategy based on experience level:
Expert: Present all isolation options with trade-offs and let the user choose:
Ask (using AskUserQuestion):
"For [provider], choose your isolation strategy:"
Options:
Intermediate: Present the recommended option with a brief alternative: "For [provider], I recommend [strategy] because [rationale]. An alternative would be [other option] which trades [trade-off]."
Beginner: Make the recommendation directly: "For [provider], I'll use [simplest appropriate strategy]. This gives you separate environments without extra complexity."
For each environment, configure:
Variable overrides:
t3.micro for dev, t3.medium for staging, t3.large for prod)db.t3.micro for dev, db.r6g.large for prod)Resource sizing guidance per experience level:
Expert: Ask for specific resource specifications per environment.
Intermediate: Suggest a sizing matrix and ask for approval: "Here's a recommended sizing matrix:
| Resource | Dev | Staging | Prod |
|---|---|---|---|
| Compute | [small] | [medium] | [large] |
| Database | [small] | [medium] | [large] |
| Replicas | 1 | 2 | 3 |
| Adjust as needed." |
Beginner: Apply defaults automatically: "I'll use small resources for dev, medium for staging, and appropriately sized resources for production. This keeps costs low during development."
Based on the IaC tool, generate environment-specific configuration files:
| IaC Tool | Config Format | Example |
|---|---|---|
| OpenTofu / Terraform | environments/<env>.tfvars | instance_type = "t3.small" |
| Pulumi | Pulumi.<env>.yaml stack config | config: app:instanceType: t3.small |
| CDK | Environment props in cdk.json or separate env file | { "env": { "account": "...", "region": "..." } } |
| Bicep | environments/<env>.parameters.json | { "parameters": { "instanceType": { "value": "..." } } } |
| Kubernetes | environments/<env>/kustomization.yaml or values-<env>.yaml | Kustomize overlays or Helm value overrides |
| PaaS (none) | Platform-native env config | Environment-specific sections in fly.toml, vercel.json |
Invoke the arn-infra-specialist agent via the Task tool, passing the model from .arness/agent-models/infra.md as the model parameter (see plugins/arn-infra/skills/arn-infra-ensure-config/references/ensure-config.md "Dispatch convention" for fallback). Context:
--- ENVIRONMENT CONTEXT --- Environments: [list in promotion order] [For each environment:] Environment: [name] Isolation strategy: [strategy] Variable overrides: [key-value pairs] Resource sizing: [specifications] --- END ENVIRONMENT CONTEXT ---
--- PROVIDER CONFIGURATION --- [For each provider:] Provider: [name] IaC tool: [tool] Scope: [components] --- END PROVIDER CONFIGURATION ---
--- INFRASTRUCTURE CONFIG --- Experience level: [derived from user profile] --- END INFRASTRUCTURE CONFIG ---
--- INSTRUCTIONS --- Generate environment-specific configuration files for each environment and provider combination.
For each environment:
Follow these rules:
Read the local override or plugin default for
promotion-patterns.md.
Configure the promotion pipeline between environments:
Default promotion rules:
For each promotion step, configure:
Expert: Present all strategy options and let the user choose per transition.
Intermediate: Recommend rolling updates with manual approval for production: "I recommend auto-deploying to staging on merge, with manual approval and rolling updates for production. Would you like to adjust?"
Beginner: Apply safe defaults: "I'll set up auto-deploy to staging when you merge code, and manual approval before deploying to production. This gives you a safety net."
Update environments.md with the configured environments:
# Environments
## Promotion Pipeline
[env1] --> [env2] --> [env3]
## [environment-name]
- **Isolation:** [strategy]
- **Auto-deploy:** [yes | no]
- **Approval required:** [yes | no]
- **Deploy strategy:** [rolling | blue-green | canary]
- **Rollback policy:** [auto | manual]
- **Last deployed:** --
- **Pending changes:** none
Update ## Arness in CLAUDE.md with the finalized environment list if it has changed:
Environment Configuration Summary:
Recommended next steps:
"Environments are configured. Here is the recommended path:
/arn-infra-pipeline to generate environment-aware deployment pipelines/arn-infra-secrets to configure per-environment secrets/arn-infra-deploy to deploy to your first environmentOr run /arn-infra-wizard for the full guided pipeline."
## Arness config missing: Suggest running /arn-infra-wizard to get started. Stop./arn-infra-init to configure providers. Stop.none and no per-provider IaC tools are configured, skip IaC config generation. Inform the user that platform-native environment configurations will be used.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
25 skills in this plugin
/arn-infra-assessThis skill should be used when the user says "assess infrastructure", "infra assess", "arn infra assess", "infrastructure assessment", "analyze infrastructure needs", "what infrastructure do I need", "infrastructure audit", "app infrastructure assessment", "full infra assessment", "infrastructure review", "assess my app", "un-defer infrastructure", "infra backlog", or wants a comprehensive analysis of their application's infrastructure needs, including processing deferred infrastructure backlogs, to produce a prioritized infrastructure backlog published as issues./arn-infra-change-planThis skill should be used when the user says "plan infra change", "arn-infra-change-plan", "infra change plan", "plan this infrastructure change", "create infra plan", "arn infra plan", "plan the infra spec", "infrastructure implementation plan", "infra plan from spec", "generate infra plan", "plan infrastructure", or wants to generate a phased implementation plan from an infrastructure change specification, structured by provisioning order, blast radius, rollback checkpoints, and environment promotion gates./arn-infra-change-specThis skill should be used when the user says "infra change spec", "infrastructure change", "specify infrastructure change", "change spec", "arn infra spec", "describe infra change", "what infrastructure needs to change", "infra spec", "spec this infra change", "write infra spec", "infrastructure change specification", "create infra change spec", "upgrade to pipeline", "convert to pipeline", or wants to iteratively develop an infrastructure change idea into a well-formed specification through guided conversation, or wants to upgrade existing interactive IaC artifacts into the structured change pipeline.npx claudepluginhub appsvortex/arness --plugin arn-infraOther plugins' skills for the same job