Agent skill

Writing Infrastructure Code

by ancoleman in ancoleman/ai-design-components

Managing cloud infrastructure using declarative and imperative IaC tools.

MITAuto-check passedDevOps & Cloud

Install Writing Infrastructure Code

skills CLI
$ npx skills add ancoleman/ai-design-components --skill writing-infrastructure-code -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ancoleman/ai-design-components writing-infrastructure-code --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ancoleman/ai-design-components.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/writing-infrastructure-code .claude/skills/writing-infrastructure-code && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
writing-infrastructure-code
GitHub stars
526
Token cost
~3.9k tokens
SKILL.md length
1,331 words
Files
11 (incl. scripts, references)
Skills in repo
75
Repo updated
First seen
Licence
MIT

At a glance

Managing cloud infrastructure using declarative and imperative IaC tools.

  • Works in 5 steps: Declarative vs Imperative - Describe… → Idempotency - Same input produces same… → Version Control - Infrastructure changes… → …
  • Provisioning cloud resources (Terraform/OpenTofu for multi-cloud
  • SKILL.md covers When to Use, Core Concepts, Quick Reference and Detailed Documentation, plus 7 more sections
  • Runs Shell and TypeScript scripts from its folder; calls terraform, pulumi and aws

What it does

Writing Infrastructure Code is an agent skill from ancoleman/ai-design-components. Managing cloud infrastructure using declarative and imperative IaC tools. Use when provisioning cloud resources (Terraform/OpenTofu for multi-cloud, Pulumi for developer-centric workflows, AWS CDK for AWS-native infrastructure), designing reusable modules, implementing state management patterns, or establishing infrastructure deployment workflows.

Its SKILL.md is about 3.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 17 other files, including scripts and reference files (for example `examples/pulumi/typescript/index.ts`, `outputs.yaml` and `references/drift-detection.md`).

It sits in DevOps & Cloud, covering Infrastructure as code. It works with Terraform, Amazon Web Services and Pulumi. The repository describes itself as: Comprehensive UI/UX and Backend component design skills for AI-assisted development with Claude. The licence is MIT.

When your agent uses it

  • Provisioning cloud resources (Terraform/OpenTofu for multi-cloud
  • Pulumi for developer-centric workflows
  • AWS CDK for AWS-native infrastructure)
  • Designing reusable modules

Example prompts

  • “/writing-infrastructure-code”

Requirements

  • Python 3
  • Node.js
  • A Bash shell

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Declarative vs Imperative - Describe desired state (Terraform) or program infrastructure (Pulumi)
  2. Idempotency - Same input produces same output, safe to re-run
  3. Version Control - Infrastructure changes tracked in Git
  4. State Management - Track actual infrastructure state
  5. Module Composition - Reusable, versioned infrastructure components

What it can do on your machine

Read from SKILL.md and the folder at commit 76551b7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Shell and TypeScript), which the agent can run.

    Shell commands in SKILL.md call:

    • terraform
    • pulumi
    • aws

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use aws, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Writing Infrastructure Code loads about 3.9k tokens when it runs, and up to ~24k if it reads all its reference files. Until then it costs about 94 tokens; SKILL.md has 1,331 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~94
When it runs · the whole SKILL.md, loaded when a task matches
~3.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~24k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from ancoleman/ai-design-components at commit 76551b7, republished under its MIT licence (© ancoleman). 1,331 words, ~3,872 tokens.

Download SKILL.mdSave it as .claude/skills/writing-infrastructure-code/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.
name
writing-infrastructure-code
description
Managing cloud infrastructure using declarative and imperative IaC tools. Use when provisioning cloud resources (Terraform/OpenTofu for multi-cloud, Pulumi for developer-centric workflows, AWS CDK for AWS-native infrastructure), designing reusable modules, implementing state management patterns, or establishing infrastructure deployment workflows.

Infrastructure as Code

Provision and manage cloud infrastructure using code-based automation tools. This skill covers tool selection, state management, module design, and operational patterns across Terraform/OpenTofu, Pulumi, and AWS CDK.

When to Use

Use this skill when:

  • Provisioning cloud infrastructure (compute, networking, databases, storage)
  • Migrating from manual infrastructure to code-based workflows
  • Designing reusable infrastructure modules
  • Implementing multi-cloud or hybrid-cloud deployments
  • Establishing state management and drift detection patterns
  • Integrating infrastructure provisioning into CI/CD pipelines
  • Evaluating IaC tools (Terraform vs Pulumi vs CDK)

Common requests:

  • "Create a Terraform module for VPC provisioning"
  • "Set up remote state with locking for team collaboration"
  • "Compare Pulumi vs Terraform for our use case"
  • "Design composable infrastructure modules"
  • "Implement drift detection for existing infrastructure"

Core Concepts

Infrastructure as Code Fundamentals

Key Principles:

  1. Declarative vs Imperative - Describe desired state (Terraform) or program infrastructure (Pulumi)
  2. Idempotency - Same input produces same output, safe to re-run
  3. Version Control - Infrastructure changes tracked in Git
  4. State Management - Track actual infrastructure state
  5. Module Composition - Reusable, versioned infrastructure components

Benefits:

  • Reproducibility (same code = same infrastructure)
  • Auditability (Git history shows all changes)
  • Collaboration (code reviews for infrastructure changes)
  • Automation (CI/CD deploys infrastructure)
  • Disaster recovery (rebuild from code)
Tool Selection Framework

Choose IaC tools based on team composition and cloud strategy:

Terraform/OpenTofu - Declarative, HCL-based

  • Multi-cloud and hybrid-cloud deployments
  • Operations/SRE teams prefer declarative approach
  • Largest provider ecosystem (AWS, GCP, Azure, 3000+ providers)
  • Mature module registry and community

Pulumi - Imperative, programming language-based

  • Developer-centric teams familiar with TypeScript/Python/Go
  • Complex logic requires programming constructs (loops, conditionals, functions)
  • Native unit testing using familiar test frameworks
  • Strong typing and IDE support

AWS CDK - AWS-native, programming language-based

  • AWS-only infrastructure
  • Tight integration with AWS services
  • L1/L2/L3 construct abstractions
  • CloudFormation under the hood

Decision Tree:

Multi-cloud required?
├─ YES → Team composition?
│  ├─ Ops/SRE focused → Terraform/OpenTofu
│  └─ Developer focused → Pulumi
└─ NO → AWS only?
   ├─ YES → Language preference?
   │  ├─ HCL/declarative → Terraform
   │  ├─ TypeScript/Python → AWS CDK
   │  └─ YAML/simple → CloudFormation
   └─ NO → GCP/Azure only?
      └─ Terraform or Pulumi
State Management Architecture

Remote state with locking enables team collaboration:

Backend Selection:

Cloud ProviderRecommended BackendLocking Mechanism
AWSS3 + DynamoDBDynamoDB table
GCPGoogle Cloud StorageNative
AzureAzure Blob StorageLease-based
Multi-cloudTerraform Cloud/EnterpriseBuilt-in
PulumiPulumi ServiceBuilt-in

State Isolation Strategies:

  1. Directory Separation (recommended for most teams)

    • Separate directories per environment (prod/, staging/, dev/)
    • Complete state file isolation
    • No risk of cross-environment contamination
  2. Workspaces

    • Single codebase, multiple environments
    • Shared state backend, environment namespacing
    • Risk: accidental cross-environment operations
  3. Layered Architecture

    • Separate state files for networking, compute, data layers
    • Blast radius reduction
    • Cross-layer references via remote state data sources

Critical State Management Rules:

  • Always use remote state for team environments
  • Enable state file encryption at rest
  • Enable versioning on state storage
  • Use state locking to prevent concurrent modifications
  • Never commit state files to Git
  • Mark sensitive outputs as sensitive = true
Module Design Patterns

Composable Module Structure:

modules/
├── vpc/              # Network foundation
├── security-group/   # Reusable security group patterns
├── rds/              # Database with backups, encryption
├── ecs-cluster/      # Container orchestration base
├── ecs-service/      # Individual microservice
└── alb/              # Application load balancer

Module Versioning:

  • Pin module versions in production (version = "5.1.0")
  • Use semantic versioning for internal modules
  • Test module updates in non-prod first
  • Maintain CHANGELOG for module releases

Module Design Principles:

  • Clear input contract (required vs optional variables)
  • Documented outputs (what consumers can reference)
  • Sane defaults where possible
  • Validation rules for inputs
  • Examples directory showing usage

When to Create a Module:

  • Resource group is reused 3+ times
  • Clear boundaries and responsibilities
  • Stable interface contract
  • Team has module maintenance capacity

When to Keep Monolithic:

  • One-off infrastructure
  • Rapid prototyping phase
  • High coupling between resources
  • Small team, simple infrastructure

Quick Reference

Terraform/OpenTofu Commands
bash
# Initialize providers and backend
terraform init

# Plan changes (preview)
terraform plan

# Apply changes
terraform apply

# Destroy infrastructure
terraform destroy

# Format HCL files
terraform fmt

# Validate syntax
terraform validate

# Show state
terraform state list
terraform state show <resource>

# Import existing resources
terraform import <resource.name> <id>

# Workspace management
terraform workspace list
terraform workspace new staging
terraform workspace select prod
Pulumi Commands
bash
# Initialize new project
pulumi new aws-typescript

# Preview changes
pulumi preview

# Apply changes
pulumi up

# Destroy infrastructure
pulumi destroy

# Show stack outputs
pulumi stack output

# Manage stacks
pulumi stack ls
pulumi stack select prod

# Import existing resources
pulumi import <type> <name> <id>

# Export/import state
pulumi stack export > state.json
pulumi stack import < state.json
AWS CDK Commands
bash
# Initialize new app
cdk init app --language typescript

# Synthesize CloudFormation
cdk synth

# Preview changes
cdk diff

# Deploy stack
cdk deploy

# Destroy stack
cdk destroy

# Bootstrap account/region
cdk bootstrap

# List stacks
cdk list
Common Patterns Checklist

Infrastructure Provisioning:

  • Remote state configured with locking
  • State file encryption enabled
  • Provider versions pinned
  • Module versions pinned (production)
  • Variables have descriptions and types
  • Sensitive outputs marked as sensitive
  • Tagging strategy implemented
  • Cost allocation tags applied

Module Development:

  • Clear README with usage examples
  • Required vs optional variables documented
  • Outputs documented with descriptions
  • Validation rules for critical inputs
  • Examples directory with working code
  • Tests for module behavior (Terratest/CDK assertions)
  • CHANGELOG for version tracking
  • Semantic versioning followed

Operational Readiness:

  • Drift detection scheduled
  • CI/CD pipeline for plan/apply
  • State backup strategy
  • Disaster recovery documented
  • Team access controls configured (IAM/RBAC)
  • Cost estimation integrated (Infracost)
  • Security scanning integrated (Checkov/tfsec)
  • Documentation kept current

Detailed Documentation

For comprehensive patterns and implementation details:

Tool-Specific Patterns:

  • references/terraform-patterns.md - Terraform/OpenTofu best practices, HCL patterns
  • references/pulumi-patterns.md - Pulumi across TypeScript/Python/Go

Architecture and Design:

  • references/state-management.md - Remote state, locking, isolation strategies
  • references/module-design.md - Composable modules, versioning, registries

Operations:

  • references/drift-detection.md - Detecting and remediating infrastructure drift

Working Examples

Practical implementations demonstrating IaC patterns:

Terraform Examples:

  • examples/terraform/vpc-module/ - Multi-AZ VPC with public/private subnets
  • examples/terraform/ecs-service/ - ECS service with ALB, autoscaling
  • examples/terraform/rds-cluster/ - Aurora cluster with backups, encryption
  • examples/terraform/state-backend/ - S3 + DynamoDB backend setup

Pulumi Examples:

  • examples/pulumi/typescript/vpc/ - TypeScript VPC component
  • examples/pulumi/python/ecs-service/ - Python ECS service
  • examples/pulumi/go/rds-cluster/ - Go RDS cluster
  • examples/pulumi/testing/ - Unit tests for Pulumi programs

AWS CDK Examples:

  • examples/cdk/typescript/vpc-stack/ - VPC using L2 constructs
  • examples/cdk/typescript/ecs-fargate/ - Fargate service with ALB
  • examples/cdk/typescript/pipeline-stack/ - Self-mutating CDK pipeline
  • examples/cdk/testing/ - CDK assertions and snapshot tests

Utility Scripts

Automated validation and operational tools:

  • scripts/validate-terraform.sh - Terraform fmt, validate, tflint
  • scripts/cost-estimate.sh - Infracost wrapper for cost analysis
  • scripts/drift-check.sh - Scheduled drift detection
  • scripts/security-scan.sh - Checkov/tfsec security scanning
  • scripts/state-backup.sh - State file backup automation
  • scripts/module-release.sh - Module versioning and publishing
Show full SKILL.md (534 more words)Show less

Integration with Other Skills

Deployment Pipeline:

  • building-ci-pipelines - Automate terraform plan/apply in CI/CD
  • gitops-workflows - GitOps-based infrastructure deployment

Platform Engineering:

  • kubernetes-operations - Provision EKS, GKE, AKS clusters
  • platform-engineering - Internal developer platform infrastructure

Security:

  • secret-management - Provision Vault, External Secrets Operator
  • security-hardening - Implement infrastructure security controls
  • compliance-frameworks - Policy-as-code for compliance

Operations:

  • observability - Provision monitoring infrastructure (Prometheus, Grafana)
  • disaster-recovery - Infrastructure rebuild procedures
  • cost-optimization - Implement cost controls via IaC

Data Platform:

  • data-architecture - Provision data lakes, warehouses
  • streaming-data - Provision Kafka, Kinesis infrastructure

Best Practices

Development Workflow:

  1. Write infrastructure code in feature branches
  2. Run terraform plan / pulumi preview locally
  3. Submit pull request with plan output
  4. Code review focuses on security, cost, blast radius
  5. CI runs automated tests and security scans
  6. Apply only after approval and CI passes
  7. Monitor for drift post-deployment

State Management:

  • Use remote state from day one (never local state for teams)
  • Separate state files per environment
  • Enable state locking to prevent concurrent modifications
  • Version state storage for rollback capability
  • Encrypt state at rest (contains sensitive data)
  • Regular state backups to separate location

Module Development:

  • Start with monolithic code, extract modules when patterns emerge
  • Design for reusability but avoid premature abstraction
  • Document all inputs and outputs
  • Provide working examples in examples/ directory
  • Pin provider versions in modules
  • Test modules before publishing
  • Use semantic versioning for releases

Security:

  • Scan IaC for security issues before apply (Checkov, tfsec)
  • Never commit secrets to code (use secret references)
  • Mark sensitive outputs as sensitive = true
  • Implement least-privilege IAM policies
  • Enable resource encryption by default
  • Use private module registries for internal modules

Cost Management:

  • Estimate costs before applying changes (Infracost)
  • Tag all resources for cost allocation
  • Review cost impact in pull requests
  • Set up cost alerts for drift
  • Rightsize resources based on usage

Operational Excellence:

  • Schedule regular drift detection
  • Document disaster recovery procedures
  • Maintain runbooks for common operations
  • Monitor state file access logs
  • Practice infrastructure rebuilds periodically
  • Keep provider versions current with testing

Common Pitfalls

State File Issues:

  • Manual state editing - Use terraform state commands, not direct edits
  • No state locking - Race conditions corrupt state
  • Local state for teams - State divergence across team members
  • Large state files - Break into multiple state files by layer

Module Design:

  • Over-abstraction - Too generic, hard to understand
  • Under-abstraction - Copy-paste code everywhere
  • No version pinning - Unexpected breaking changes
  • No examples - Users don't know how to consume module

Operations:

  • No drift detection - Manual changes go unnoticed
  • Direct resource modification - Bypassing IaC creates drift
  • No rollback plan - Can't recover from failed apply
  • Ignoring plan output - Surprises during apply

Security:

  • Secrets in code - Hard-coded credentials
  • No security scanning - Vulnerabilities in production
  • Overly permissive IAM - Excessive privileges
  • No state encryption - Sensitive data exposed

Troubleshooting Guide

State Lock Issues:

bash
terraform force-unlock <lock-id>  # Use only if certain no other process running

Import Existing Resources:

bash
terraform import aws_vpc.main vpc-12345678
pulumi import aws:ec2/vpc:Vpc main vpc-12345678

Drift Detection:

bash
terraform plan -detailed-exitcode  # Exit 2 = drift detected
pulumi preview --diff

For detailed drift remediation, see references/drift-detection.md.

State Recovery:

bash
# Terraform: Restore from S3 versioning
aws s3 cp s3://bucket/backup/terraform.tfstate terraform.tfstate

# Pulumi: Restore from checkpoint
pulumi stack export --version <timestamp> | pulumi stack import

For cloud-specific implementations:

  • aws-patterns - AWS-specific resource patterns
  • gcp-patterns - GCP-specific resource patterns
  • azure-patterns - Azure-specific resource patterns

For infrastructure operations:

  • kubernetes-operations - Manage Kubernetes clusters provisioned via IaC
  • gitops-workflows - GitOps-based infrastructure deployment
  • platform-engineering - Internal developer platforms

For security and compliance:

  • security-hardening - Infrastructure security controls
  • secret-management - Secret injection and rotation
  • compliance-frameworks - Policy-as-code for compliance

For deployment automation:

  • building-ci-pipelines - CI/CD for infrastructure code
  • deploying-applications - Application deployment to provisioned infrastructure

For cost and observability:

  • cost-optimization - FinOps practices for infrastructure
  • observability - Monitoring infrastructure health

© ancoleman, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 10 other files (scripts, references) in skills/writing-infrastructure-code of ancoleman/ai-design-components.

  • SKILL.md
  • examples/pulumi/typescript/index.ts
  • examples/terraform/vpc-module/main.tf
  • outputs.yaml
  • references/drift-detection.md
  • references/module-design.md
  • references/pulumi-patterns.md
  • references/state-management.md
  • references/terraform-patterns.md
  • scripts/drift-check.sh
  • scripts/validate-terraform.sh

Open the folder on GitHubat commit 76551b7

Compare with similar skills

Writing Infrastructure Code next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Writing Infrastructure Code compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Writing Infrastructure Code this skillancoleman/ai-design-components526—~3.9kAutomated safety check: PassMIT
AWS Sst Developmentzxkane/aws-skills367—~2.7kAutomated safety check: WarnMIT
Infrastructure As Codeseb1n/awesome-ai-agent-skills206—~3.3kAutomated safety check: PassMIT
Senior DevOps Toolkitmaslennikov-ig/claude-code-orchestrator-kit2596 repos~1.1kAutomated safety check: NotesCustom licence
Cloudflarehodgef/apiker1277 repos~2.2kAutomated safety check: PassMIT
Terravision Cloud Diagramspatrickchugh/terravision1.6k—~5.6kAutomated safety check: NotesAGPL-3.0-only

Similar skills

  • AWS Sst Development

    zxkane/aws-skills

    SST v4 (Ion) expert for managing AWS resources as code with the Pulumi-backed framework.

    367 GitHub stars~2.7k tokensUpdated 3 mo ago
    DevOps & CloudAuto-check: warnings
  • Infrastructure As Code

    seb1n/awesome-ai-agent-skills

    Define, deploy, and manage cloud infrastructure as code using tools like Terraform, Pulumi, CloudFormation, and CDK, ensuring consistency, repeatability, and version control.

    206 GitHub stars~3.3k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Senior DevOps Toolkit

    maslennikov-ig/claude-code-orchestrator-kit

    Comprehensive DevOps skill for CI/CD, infrastructure automation, containerization, and cloud platforms (AWS, GCP, Azure). Includes pipeline setup…

    259 GitHub starsUsed in 6 repos~1.1k tokens
    DevOps & CloudAuto-check: notes
  • Cloudflare

    hodgef/apiker

    Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship), networking (Tunnel, Spectrum), security (WAF…

    127 GitHub starsUsed in 7 repos~2.2k tokens
    DevOps & CloudAuto-check passed
  • Terravision Cloud Diagrams

    patrickchugh/terravision

    Draw cloud architecture diagrams for AWS, Azure or GCP with the official provider icon sets, using TerraVision.

    1.6k GitHub stars~5.6k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Cloudflare

    dmmulroy/cloudflare-skill

    Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), networking (Tunnel, Spectrum), security (WAF, DDoS), and…

    728 GitHub stars~1.6k tokensUpdated 8 mo ago
    DevOps & CloudAuto-check passed

More from ancoleman/ai-design-components

All 75 skills in this repo
  • Building AI Chat

    ancoleman/ai-design-components

    Builds AI chat interfaces and conversational UI with streaming responses, context management, and multi-modal support.

    526 GitHub starsUsed in 1 repo~3.4k tokens
    Auto-check passed
  • Building Forms

    ancoleman/ai-design-components

    Builds form components and data collection interfaces including contact forms, registration flows, checkout processes, surveys, and settings pages.

    526 GitHub stars~3.7k tokensUpdated 10 mo ago
    Auto-check passed
  • Building Tables

    ancoleman/ai-design-components

    Builds tables and data grids for displaying tabular information, from simple HTML tables to complex enterprise data grids.

    526 GitHub stars~1.8k tokensUpdated 10 mo ago
    Auto-check passed
  • Creating Dashboards

    ancoleman/ai-design-components

    Creates comprehensive dashboard and analytics interfaces that combine data visualization, KPI cards, real-time updates, and interactive layouts.

    526 GitHub stars~3.5k tokensUpdated 10 mo ago
    Auto-check passed
  • Designing Layouts

    ancoleman/ai-design-components

    Designs layout systems and responsive interfaces including grid systems, flexbox patterns, sidebar layouts, and responsive breakpoints.

    526 GitHub stars~1.7k tokensUpdated 10 mo ago
    Auto-check passed
  • Displaying Timelines

    ancoleman/ai-design-components

    Displays chronological events and activity through timelines, activity feeds, Gantt charts, and calendar interfaces.

    526 GitHub stars~2.7k tokensUpdated 10 mo ago
    Auto-check passed

Categories

Questions about Writing Infrastructure Code

What does Writing Infrastructure Code do?

Managing cloud infrastructure using declarative and imperative IaC tools. Writing Infrastructure Code is an agent skill from ancoleman/ai-design-components. Managing cloud infrastructure using declarative and imperative IaC tools.

When should I use Writing Infrastructure Code?

Writing Infrastructure Code fits situations like: provisioning cloud resources (Terraform/OpenTofu for multi-cloud; pulumi for developer-centric workflows; AWS CDK for AWS-native infrastructure); designing reusable modules.

How do I install Writing Infrastructure Code in Claude Code?

Run `npx skills add ancoleman/ai-design-components --skill writing-infrastructure-code -a claude-code`. Or copy the skill folder (skills/writing-infrastructure-code in ancoleman/ai-design-components) into .claude/skills/writing-infrastructure-code in your project. Claude Code loads it when a task matches its description.

How do I install Writing Infrastructure Code in Codex?

Run `npx skills add ancoleman/ai-design-components --skill writing-infrastructure-code -a codex`. Or copy the skill folder (skills/writing-infrastructure-code in ancoleman/ai-design-components) into .agents/skills/writing-infrastructure-code in your project. Codex loads it when a task matches its description.

Can I use Writing Infrastructure Code in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ancoleman/ai-design-components --skill writing-infrastructure-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/writing-infrastructure-code, .gemini/skills/writing-infrastructure-code, .github/skills/writing-infrastructure-code and .opencode/skills/writing-infrastructure-code in your project.

What does Writing Infrastructure Code need to run?

Going by SKILL.md and its folder, Writing Infrastructure Code needs a shell and TypeScript for the scripts in its folder and the command-line tools its instructions call (terraform, pulumi and aws). Our summary lists: Python 3; Node.js; A Bash shell.

Does Writing Infrastructure Code access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Writing Infrastructure Code safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Writing Infrastructure Code use?

Writing Infrastructure Code is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Writing Infrastructure Code use?

About 3.9k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 20k tokens, read only when the agent opens those files.

What are the alternatives to Writing Infrastructure Code?

Skills that share tags, products or a category with Writing Infrastructure Code: AWS Sst Development (zxkane/aws-skills, 367 stars), Infrastructure As Code (seb1n/awesome-ai-agent-skills, 206 stars), Senior DevOps Toolkit (maslennikov-ig/claude-code-orchestrator-kit, 259 stars) and Cloudflare (hodgef/apiker, 127 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Writing Infrastructure Code?

ancoleman (a GitHub user) maintains it in ancoleman/ai-design-components, which has 526 GitHub stars. The repository holds 75 skills in this directory. The repository was last updated on December 11, 2025.

Source: ancoleman/ai-design-components on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.