administering-linux
Manage Linux systems covering systemd services, process management, filesystems, networking, performance tuning, and…
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
Claude Code
$ npx -y skills add ancoleman/ai-design-components --skill writing-infrastructure-code --agent claude-code
Codex
$ npx skills add ancoleman/ai-design-components --skill writing-infrastructure-code -a codex -y
Cursor
$ npx skills add ancoleman/ai-design-components --skill writing-infrastructure-code -a cursor -y
Gemini CLI
$ npx skills add ancoleman/ai-design-components --skill writing-infrastructure-code -a gemini-cli -y
GitHub Copilot
$ npx skills add ancoleman/ai-design-components --skill writing-infrastructure-code -a github-copilot -y
OpenCode
$ npx skills add ancoleman/ai-design-components --skill writing-infrastructure-code -a opencode -y
Windsurf
$ npx skills add ancoleman/ai-design-components --skill writing-infrastructure-code -a windsurf -y
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.
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.
Use this skill when:
Common requests:
**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:**
Choose IaC tools based on team composition and cloud strategy:
**Terraform/OpenTofu** - Declarative, HCL-based
**Pulumi** - Imperative, programming language-based
**AWS CDK** - AWS-native, programming language-based
**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 PulumiRemote state with locking enables team collaboration:
**Backend Selection:**
| Cloud Provider | Recommended Backend | Locking Mechanism | |----------------|---------------------|-------------------| | AWS | S3 + DynamoDB | DynamoDB table | | GCP | Google Cloud Storage | Native | | Azure | Azure Blob Storage | Lease-based | | Multi-cloud | Terraform Cloud/Enterprise | Built-in | | Pulumi | Pulumi Service | Built-in |
**State Isolation Strategies:**
1. **Directory Separation** (recommended for most teams)
2. **Workspaces**
3. **Layered Architecture**
**Critical State Management Rules:**
**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:**
**Module Design Principles:**
**When to Create a Module:**
**When to Keep Monolithic:**
# Initialize providers and backend terraform init # Plan changes (preview) terraform plan # Apply changes terraform apply # Destroy infrastructure terraform destroy
Comprehensive UI/UX and Backend component design skills for AI-assisted development with Claude
Manage Linux systems covering systemd services, process management, filesystems, networking, performance tuning, and…
Data pipelines, feature stores, and embedding generation for AI/ML systems. Use when building RAG pipelines, ML feature serving,…
Strategic guidance for designing modern data platforms, covering storage paradigms (data lake, warehouse, lakehouse), modeling…
Design cloud network architectures with VPC patterns, subnet strategies, zero trust principles, and hybrid connectivity. Use when…
Design comprehensive security architectures using defense-in-depth, zero trust principles, threat modeling (STRIDE, PASTA), and…
Assembles component outputs from AI Design Components skills into unified, production-ready component systems with validated…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.