[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JPAP8PCT19W9YYZDNS6D9Q":3,"skill-same:01M6JPAP8PCT19W9YYZDNS6D9Q":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6JPAP8PCT19W9YYZDNS6D9Q","infrastructure-as-code",null,"Write and review IaC with Terraform, CloudFormation, Pulumi, or CDK — modularity, security, state management. Triggers: Terraform, CloudFormation, Pulumi, infrastructure as code, IaC, provision, cloud resources, terraform module, state management, terraform plan, CDK, drift, remote state.","SWEStash\u002Fswe-workflow-skills","SWEStash","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F272895713?v=4","01M6JNRQ84JN5WFK9S1V5H4G46","SWE Stash","01M6JNRQCM45X8WPNHY30TSAB0",1,"MIT","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdevops\u002Fskills\u002Finfrastructure-as-code\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"infrastructure","code","infrastructure as code","as","drift","modularity","pulumi","with","remote","cloudformation","resources","module","triggers","review","iac","write","plan","state","state management","security","2026-11-10 10:12:30",false,"---\nname: infrastructure-as-code\ndescription: \"Write and review IaC with Terraform, CloudFormation, Pulumi, or CDK — modularity, security, state management. Triggers: Terraform, CloudFormation, Pulumi, infrastructure as code, IaC, provision, cloud resources, terraform module, state management, terraform plan, CDK, drift, remote state.\"\n---\n\n# Infrastructure as Code\n\nWrite and review IaC that is modular, secure, and maintainable. Infrastructure should be treated with the same rigor as application code — versioned, tested, reviewed, and deployed through pipelines.\n\n## Workflow\n\n### Step 1: Understand the Infrastructure Need\n\nBefore writing any IaC:\n\n- **What resources are needed?** Compute, storage, networking, databases, queues, CDN?\n- **Which cloud provider?** AWS, GCP, Azure, or multi-cloud?\n- **Which IaC tool?** Terraform (cloud-agnostic, declarative), CloudFormation (AWS-native), Pulumi (imperative, multi-language), CDK (AWS, TypeScript\u002FPython)?\n- **What environments?** Dev, staging, production? How do they differ (instance sizes, replicas)?\n- **What exists already?** Importing existing resources? Greenfield?\n\n### Step 2: Design the Module Structure\n\nOrganize IaC for reusability and clarity:\n\n```\ninfrastructure\u002F\n├── modules\u002F                 # Reusable modules\n│   ├── networking\u002F          # VPC, subnets, security groups\n│   ├── database\u002F            # RDS, ElastiCache\n│   ├── compute\u002F             # ECS, EKS, Lambda\n│   └── monitoring\u002F          # CloudWatch, alerting\n├── environments\u002F\n│   ├── dev\u002F\n│   │   ├── main.tf          # Compose modules with dev params\n│   │   └── terraform.tfvars\n│   ├── staging\u002F\n│   └── production\u002F\n├── backend.tf               # State backend configuration\n└── versions.tf              # Provider version constraints\n```\n\nEach module should be independently usable with well-defined inputs (variables) and outputs.\n\n### Step 3: Write the Configuration\n\nFollow these principles. Use [templates\u002Fterraform-module.md](templates\u002Fterraform-module.md) as a starting point for module structure, variables, outputs, and README format.\n\n**Modularity**: Each module does one thing (networking, database, compute). Modules compose through outputs → inputs.\n\n**Parameterization**: Use variables for anything that differs between environments. Never hardcode region, instance size, replica count, or credentials.\n\n**State management**: Use remote state backends (S3 + DynamoDB for Terraform, etc.). Enable state locking. Never commit state files to git.\n\n**Security by default**: Encrypt at rest, restrict security groups to minimum required ports, use IAM roles (not keys), enable logging.\n\n**Tagging**: Every resource gets tags for cost allocation, ownership, and environment identification.\n\n### Step 4: Review and Validate\n\nBefore applying:\n\n- [ ] `terraform plan` shows only expected changes\n- [ ] No hardcoded secrets or credentials\n- [ ] Security groups follow least-privilege (no 0.0.0.0\u002F0 ingress on sensitive ports)\n- [ ] Encryption enabled for storage and databases\n- [ ] State backend is remote with locking enabled\n- [ ] All resources are tagged (environment, team, project)\n- [ ] Modules have input validation (variable constraints)\n- [ ] Outputs are defined for values downstream modules need\n\n### Step 5: Plan Deployment\n\n- IaC changes should go through the same PR review process as application code\n- Use `plan` output as the PR artifact — reviewers should see what will change\n- Apply through CI\u002FCD pipeline, never from a developer's laptop\n- Use workspace or directory-per-environment patterns to prevent accidental cross-environment changes\n\n## Principles Applied\n\n- **DRY**: Modules eliminate repeated resource definitions across environments.\n- **KISS**: Start with simple resources, refactor into modules when patterns repeat.\n- **YAGNI**: Don't create a module for a resource you define once. Modules earn their existence through reuse.\n- **Functional Independence**: Each module manages its own resources with clean interfaces. No module reaches into another's state.\n","# Infrastructure as Code\n\nWrite and review IaC that is modular, secure, and maintainable. Infrastructure should be treated with the same rigor as application code — versioned, tested, reviewed, and deployed through pipelines.\n\n## Workflow\n\n### Step 1: Understand the Infrastructure Need\n\nBefore writing any IaC:\n\n- **What resources are needed?** Compute, storage, networking, databases, queues, CDN?\n- **Which cloud provider?** AWS, GCP, Azure, or multi-cloud?\n- **Which IaC tool?** Terraform (cloud-agnostic, declarative), CloudFormation (AWS-native), Pulumi (imperative, multi-language), CDK (AWS, TypeScript\u002FPython)?\n- **What environments?** Dev, staging, production? How do they differ (instance sizes, replicas)?\n- **What exists already?** Importing existing resources? Greenfield?\n\n### Step 2: Design the Module Structure\n\nOrganize IaC for reusability and clarity:\n\n```\ninfrastructure\u002F\n├── modules\u002F                 # Reusable modules\n│   ├── networking\u002F          # VPC, subnets, security groups\n│   ├── database\u002F            # RDS, ElastiCache\n│   ├── compute\u002F             # ECS, EKS, Lambda\n│   └── monitoring\u002F          # CloudWatch, alerting\n├── environments\u002F\n│   ├── dev\u002F\n│   │   ├── main.tf          # Compose modules with dev params\n│   │   └── terraform.tfvars\n│   ├── staging\u002F\n│   └── production\u002F\n├── backend.tf               # State backend configuration\n└── versions.tf              # Provider version constraints\n```\n\nEach module should be independently usable with well-defined inputs (variables) and outputs.\n\n### Step 3: Write the Configuration\n\nFollow these principles. Use [templates\u002Fterraform-module.md](templates\u002Fterraform-module.md) as a starting point for module structure, variables, outputs, and README format.\n\n**Modularity**: Each module does one thing (networking, database, compute). Modules compose through outputs → inputs.\n\n**Parameterization**: Use variables for anything that differs between environments. Never hardcode region, instance size, replica count, or credentials.\n\n**State management**: Use remote state backends (S3 + DynamoDB for Terraform, etc.). Enable state locking. Never commit state files to git.\n\n**Security by default**: Encrypt at rest, restrict security groups to minimum required ports, use IAM roles (not keys), enable logging.\n\n**Tagging**: Every resource gets tags for cost allocation, ownership, and environment identification.\n\n### Step 4: Review and Validate\n\nBefore applying:\n\n- [ ] `terraform plan` shows only expected changes\n- [ ] No hardcoded secrets or credentials\n- [ ] Security groups follow least-privilege (no 0.0.0.0\u002F0 ingress on sensitive ports)\n- [ ] Encryption enabled for storage and databases\n- [ ] State backend is remote with locking enabled\n- [ ] All resources are tagged (environment, team, project)\n- [ ] Modules have input validation (variable constraints)\n- [ ] Outputs are defined for values downstream modules need\n\n### Step 5: Plan Deployment\n\n- IaC changes should go through the same PR review process as application code\n- Use `plan` output as the PR artifact — reviewers should see what will change\n- Apply through CI\u002FCD pipeline, never from a developer's laptop\n- Use workspace or directory-per-environment patterns to prevent accidental cross-environment changes\n\n## Principles Applied\n\n- **DRY**: Modules eliminate repeated resource definitions across environments.\n- **KISS**: Start with simple resources, refactor into modules when patterns repeat.\n- **YAGNI**: Don't create a module for a resource you define once. Modules earn their existence through reuse.\n- **Functional Independence**: Each module manages its own resources with clean interfaces. No module reaches into another's state.\n",{"name":5,"description":7},"main","800dc9ad0ca2914d6ad15b8c5159d9b57bb104c2","plugins\u002Fdevops\u002Fskills\u002Finfrastructure-as-code","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills","https:\u002F\u002Fgithub.com\u002FSWEStash","A stash of things we felt like building","2026-11-12 00:14:33",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add SWEStash\u002Fswe-workflow-skills --skill infrastructure-as-code",{"tool":57,"command":58},"bunx","bunx skills add SWEStash\u002Fswe-workflow-skills --skill infrastructure-as-code",{"tool":60,"command":61},"pnpm","pnpm dlx skills add SWEStash\u002Fswe-workflow-skills --skill infrastructure-as-code","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdevops\u002Fskills\u002Finfrastructure-as-code\u002FSKILL.md",true,[65,71,75],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"evals\u002Fevals.json","REFERENCE","参考文档",2930,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdevops\u002Fskills\u002Finfrastructure-as-code\u002Fevals\u002Fevals.json",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fiac-patterns.md",4959,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdevops\u002Fskills\u002Finfrastructure-as-code\u002Freferences\u002Fiac-patterns.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"templates\u002Fterraform-module.md",3405,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdevops\u002Fskills\u002Finfrastructure-as-code\u002Ftemplates\u002Fterraform-module.md",[80,105,131,154,180,203],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":39},"01M6JQFADV3T1MS9V1BNZS1232","writing-skills","Use when authoring, editing, or reviewing a skill in this library — a new SKILL.md, one that under-triggers, or hardening an existing one. Covers description and listing-budget rules, frontmatter, progressive disclosure, the 3-eval rule, and pressure-testing against rationalizations.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[87,88,89,90,34,91,92,93,94,95,96,97,31,98,99,100,101,102,103,104],"writing","writing skills","testing","eval","edit","Budget","authoring","new skill","library","frontmatter","editing","use","Existing","Rules","write a skill","when","listing","progressive disclosure",{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":39},"01M6JQF5DGMXPMQQVZBP8DH9SY","working-agreement","Define and validate how a multi-session project is run — where plans, status and decisions live, session routines, new work, milestone close. README\u002FCONTRIBUTING → project-documentation.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fworking-agreement\u002FSKILL.md",[],[112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,31,130],"working agreement","project","definition of done","done","milestone","documentation","work","progress","how","contributing","close","run","sync","status","live","do","README","session","routines",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":39},"01M6JQF0SMRHN82RBSWMABC4J0","verification-before-completion","Evidence gate before any claim that work is done, fixed, passing, or deployed. Route here when a message declares the work finished or asks to commit, push, merge, ship, or close it out, including a brief sign-off, and before git-workflow or release-management act on it. Writing the commit message or PR text itself → git-workflow.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[138,139,140,141,142,143,87,144,115,145,146,147,118,148,122,149,150,151,152,153],"verification","verification before completion","brief","ready","fix","claim","workflow","commit","text","route","message","merge","release","git","act","ship",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":39},"01M6JQEVGE9NJZ11DV60AE6VWC","ui-ux-design","Design user experiences from an engineer's perspective — user flows, wireframes, interaction patterns, responsive strategy, navigation, loading\u002Ferror\u002Fempty states. Triggers: design the UI, user flow, wireframe, how should this screen look, loading state, error state, empty state, responsive design, navigation, page layout, form design, mockup.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-ux-design\u002FSKILL.md",[],[161,162,163,164,165,166,167,168,169,170,171,172,120,173,174,175,176,177,178,179],"design","ux","ui","ui ux design","error","states","loading","flows","engineer","interaction","layout","responsive design","screen","flow","patterns","mockup","responsive","form","page",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":39},"01M6JQEN4HVFTZWQYWGTDS76K9","threat-modeling","Design-time security analysis of a system or feature before it's built — trust boundaries, attack surface, STRIDE per element, abuse cases, prioritized mitigations that become security requirements. Triggers: threat model, STRIDE, trust boundary, attack surface, what could go wrong security-wise, security design review, abuse case, secure this design, security requirements. Reviewing EXISTING code\u002Fconfig for vulnerabilities → security-audit; use this skill while the design is still on the whiteboard.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthreat-modeling\u002FSKILL.md",[],[187,188,189,190,191,192,161,193,194,195,20,32,196,197,198,199,200,201,38,202],"modeling","threat modeling","threat","model","time","element","whiteboard","security analysis","analysis","threat model","audit","security-audit","secure","config","go","trust",{"skillNo":204,"name":205,"nameZh":6,"description":206,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":207,"categories":208,"keywords":209,"publishedAt":39},"01M6JQEFT7VT3FQM16170EG9FW","test-suite-design","Design comprehensive test suites for existing code — strategy across unit\u002Fintegration\u002Fe2e, fixtures, factories, helpers. Triggers: add tests, write tests for, increase coverage, test this module, testing strategy, test plan, what tests do I need, test infrastructure, test helpers, this has no tests. Not for TDD — use tdd-workflow.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftest-suite-design\u002FSKILL.md",[],[161,210,211,212,213,214,89,215,216,144,20,217,35,34,218,19,127,219,220,31],"test suite","test","test suite design","coverage","unit","write tests","testing strategy","across","add","test plan","for"]