infrastructure-as-code
Skill4 starsChanged 4 months agoMITView on GitHub
Defines and changes cloud infrastructure through version-controlled configuration — Terraform, Pulumi, CloudFormation, Kubernetes manifests. Use this whenever the user is writing infrastructure config, mentions Terraform or IaC, needs to provision cloud resources, is dealing with state drift, or is about to click something into existence in a cloud console. For linting existing config, use code-linting.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- robisson/build-like-amazon-agent-skillstheir own version, first seen Sep 23, 2026
- novatic-cu/nova-skillstheir own version, first seen Sep 20, 2026
- mmccalla/coding-agent-skill-librarytheir own version, first seen Jul 6, 2026
- sohaibdevv/AI-AGENT-SKILLStheir own version, first seen Jun 14, 2026
- compufreq/claude-skillstheir own version, first seen May 24, 2026
- drewid74/ai_skillstheir own version, first seen May 20, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- acedergren/oci-agent-skills★ 21same name
- robisson/build-like-amazon-agent-skills★ 15same name
- drewid74/ai_skills★ 8same name
- mmccalla/coding-agent-skill-library★ 4same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- sohaibdevv/AI-AGENT-SKILLS★ 2same name
- compufreq/claude-skills★ 1same name
- jasoncrawford/claude-skills★ 1same name
- mmondora/claude-skills★ 1same name
- novatic-cu/nova-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-deploymentSkill
- agent-designSkill
- agent-evaluationSkill
- agent-hardeningSkill
- agent-implementationSkill
- agent-observabilitySkill
- agent-scopingSkill
- api-designSkill
- code-templatingSkill
- dependency-upgradeSkill
- error-handlingSkill
- feature-implementationSkill
- project-scaffoldingSkill
- refactoringSkill
- data-analysisSkill
- data-migrationSkill
- data-modelingSkill
- sql-queriesSkill
- ci-pipelinesSkill
- containerizationSkill
- deployment-strategiesSkill
- debuggingSkill
- issue-investigationSkill
- issue-triageSkill
- log-analysisSkill
- network-troubleshootingSkill
- performance-profilingSkill
- api-documentationSkill
- commit-messagesSkill
- diagrammingSkill
- markdown-docsSkill
- plain-languageSkill
- pr-descriptionsSkill
- release-notesSkill
- browser-testingSkill
- integration-testingSkill
- load-testingSkill
- test-dataSkill
- test-driven-developmentSkill
- unit-testingSkill
- deep-researchSkill
- feed-digestSkill
- summarizationSkill
- accessibility-reviewSkill
- code-analysisSkill
- code-lintingSkill
- code-reviewSkill
- auth-designSkill
- dependency-auditSkill
- secrets-managementSkill
- security-analysisSkill
- threat-modelingSkill
- capacity-planningSkill
- disaster-recoverySkill
- incident-responseSkill
- monitoring-setupSkill
- root-cause-analysisSkill
- runbooksSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Every change goes through the code: No exceptions for "just this once" or "it's urgent" — the urgent manual fix is precisely how state …
- Distinctive: line 44
Never edit state by hand: Use the tool's import, move, and remove commands
- Distinctive: line 57
Use one module with per-environment variable files, or workspaces where they fit.
- Distinctive: line 70
Backups verified: before any change touching stateful resources
- Distinctive: line 74
Done when: no plan can destroy data without an explicit, deliberate override.
- Distinctive: line 89
Run a plan on a schedule against every environment.
- Distinctive: line 92
When drift is found, decide deliberately: adopt it into code, or revert it.
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Infrastructure as code
The value of IaC is that the configuration is the truth: reviewable, reproducible, and revertible. That value evaporates the moment someone changes something in the console, because now the code describes a system that does not exist.
Every change goes through the code. No exceptions for "just this once" or "it's urgent" — the urgent manual fix is precisely how state drifts and how the next change destroys something.
For Terraform specifics — state layout, plan symbols, the operations that force replacement,
drift detection, and imports — read references/terraform.md.
1. Read the plan, every time
The plan is the review. Never apply without reading it, and never let a pipeline apply without a human having read it for anything stateful.
terraform plan -out=tfplan
terraform apply tfplan # apply exactly what was reviewedRead specifically for:
- Destroy and replace.
-/+means the resource is destroyed and recreated. On a database, a load balancer, or anything with an address other systems know, that is an outage - Changes you did not expect: usually drift, or a provider version that changed a default
- Count changes: a resource count that moved can renumber everything after it
Done when: you can account for every line of the plan.
2. Protect state
State is the most dangerous file in the repository. It maps code to real resources, it usually contains secrets, and losing it means your infrastructure exists with nothing managing it.
- Remote backend, with versioning and encryption. Never local, never committed
- Locking enabled, so two applies cannot run concurrently
- Never edit state by hand. Use the tool's import, move, and remove commands
- Treat state as sensitive: it contains generated passwords and connection strings in plaintext
- Separate state per environment. One state file for production and staging means a mistake in one can destroy the other
Done when: state is remote, locked, versioned, and access-controlled.
3. Separate environments properly
Environments should differ in values, not in code. Copy-pasted directories per environment diverge, and the divergence is discovered during an incident.
Use one module with per-environment variable files, or workspaces where they fit. Keep production values in a file that is reviewed more carefully than the others.
Never point a non-production run at production credentials. The classic disaster is a staging apply with production state.
Done when: the only difference between environments is a values file.
4. Guard the irreversible
prevent_destroyon databases, storage buckets, and anything holding data- Deletion protection at the provider level as well — belt and braces, since the lifecycle rule only protects against this tool
- Backups verified before any change touching stateful resources
- Know what forces replacement. Many attributes are immutable, and changing one silently means destroy-and-recreate
Done when: no plan can destroy data without an explicit, deliberate override.
5. Modularise, but not too early
- Start flat. A single configuration is easier to read than three layers of module indirection
- Extract a module on the third repetition, not the first
- Pin module and provider versions. An unpinned provider means
initcan pull a new major and change behaviour with no code change - Keep blast radius small: separate state per system, so a mistake in one cannot cascade
Done when: each abstraction removes real duplication.
6. Detect drift before it bites
Run a plan on a schedule against every environment. An empty plan means the code and reality agree; anything else is drift to investigate.
When drift is found, decide deliberately: adopt it into code, or revert it. Leaving it is how you get an apply that unexpectedly deletes something someone needed.
Done when: drift is detected automatically rather than discovered during a change.
Report
State what changed, what the plan showed, what was replaced rather than updated, and what remains manual. Anything still created by hand is a gap in the model, and naming it is more useful than pretending the code is complete.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

