agentleFS
yoonationyoonation/ai-grounded/.claude/skills/terraform/SKILL.md

terraform

Skill4 starsChanged 4 months agoApache-2.0View on GitHub

Terraform conventions and patterns. Use when writing, reviewing, or debugging Terraform code, HCL files, or infrastructure-as-code.

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ansible, kubernetes and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • KubementatSkill

    ansible

    Ansible automation reference for playbooks, roles, inventory, variables, and modules. Includes Proxmox VE and Docker integration via community.general and community.docker collections. Use when writing playbooks, troubleshooting Ansible runs, or designing automation workflows. Triggers: ansible, playbook, inventory, role, task, handler, vars, jinja2, galaxy, proxmox_kvm, proxmox_lxc, docker_container, docker_compose.

    Also in 3 projects that use this

  • mjunaidcaSkill

    kubernetes

    Production-grade Kubernetes manifests and debugging for containerized applications. This skill should be used when users ask to deploy to Kubernetes, create K8s manifests, containerize for K8s, set up Deployments/Services/Jobs/StatefulSets/CronJobs, create namespaces with resource quotas, set up multi-team isolation, configure ResourceQuota/ LimitRange, secure with RBAC (ServiceAccount, Role, RoleBinding), configure init containers (model download, db wait, migrations), set up sidecars (logging, metrics), or debug pods (CrashLoopBackOff, logs, exec, describe, events). Auto-detects from Dockerfile/code, generates hardened manifests with educational comments. CKAD-aligned.

    Also in 3 projects that use this

  • thomashartmSkill

    github-actions

    Manage GitHub Actions workflows. Use when the user wants to list workflows, view run history, check running workflows, trigger workflow_dispatch, view logs, or cancel runs. Auto-detects repository from git remote. Triggers on phrases like "list workflows", "workflow runs", "trigger workflow", "start deploy", "github actions", "view logs", "cancel run", "running workflows".

    Also in 4 projects that use this

  • VercelSkill

    react

    React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.

    Also in 4 projects that use this

  • OpenAISkill

    nextjs

    Next.js App Router expert guidance. Use when building, debugging, or architecting Next.js applications — routing, Server Components, Server Actions, Cache Components, layouts, middleware/proxy, data fetching, rendering strategies, and deployment on Vercel.

    Also in 3 projects that use this

  • akornmeierSkill

    docker

    Guide for using Docker - a containerization platform for building, running, and deploying applications in isolated containers. Use when containerizing applications, creating Dockerfiles, working with Docker Compose, managing images/containers, configuring networking and storage, optimizing builds, deploying to production, or implementing CI/CD pipelines with Docker.

    Also in 4 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 6 are distinctive, and 11 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 11

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use terraform.tfvars for environment-specific values, never commit it

    line 12
  2. Very specific:

    Prefer for_each over count — avoids index shift problems on removal

    line 20
  3. Very specific:

    Use locals for computed values and repeated expressions

    line 21
  4. Distinctive:

    Use data sources to reference existing resources, never hardcode ARNs

    line 22
  5. Very specific:

    Use sensitive = true for any output containing secrets

    line 24
  6. Very specific:

    Never use "*" in IAM policy resources or actions unless explicitly justified

    line 27
  7. Distinctive:

    Prefer IAM roles with OIDC over long-lived access keys

    line 28
  8. Distinctive:

    Use security groups with least-privilege ingress/egress rules

    line 31
  9. Very specific:

    Run terraform fmt after every change

    line 34
  10. Very specific:

    Run terraform validate before plan

    line 35
  11. Very specific:

    Run tflint for linter checks

    line 36
  12. Very specific:

    Run checkov or tfsec for security scanning

    line 37
  13. Very specific:

    Always show terraform plan output before any apply

    line 38
  14. Very specific:

    Never use terraform apply -auto-approve in any environment

    line 41
  15. Distinctive:

    Never hardcode AWS account IDs — use data sources or variables

    line 42
  16. Distinctive:

    Never store state locally — always use remote backend

    line 43
  17. Distinctive:

    Never use default VPC or default security groups

    line 44

“Common” is measured: kept by at least 6 in 10 of the 16 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Terraform Conventions

Structure

  • One resource per file when files exceed 200 lines
  • Group related resources in the same file when small
  • Variables in variables.tf, outputs in outputs.tf
  • Use terraform.tfvars for environment-specific values, never commit it

Naming

  • Resources: snake_case, descriptive (aws_iam_role.lambda_execution)
  • Variables: snake_case with clear purpose (vpc_cidr_block, not cidr)
  • Outputs: snake_case matching the resource attribute they expose

Patterns

  • Prefer for_each over count — avoids index shift problems on removal
  • Use locals for computed values and repeated expressions
  • Use data sources to reference existing resources, never hardcode ARNs
  • Remote state in S3 with DynamoDB lock table
  • Use sensitive = true for any output containing secrets

Security

  • Never use "*" in IAM policy resources or actions unless explicitly justified
  • Prefer IAM roles with OIDC over long-lived access keys
  • Tag all resources: environment, team, project, managed_by = "terraform"
  • Enable encryption at rest and in transit by default
  • Use security groups with least-privilege ingress/egress rules

Validation

  • Run terraform fmt after every change
  • Run terraform validate before plan
  • Run tflint for linter checks
  • Run checkov or tfsec for security scanning
  • Always show terraform plan output before any apply

Anti-Patterns

  • Never use terraform apply -auto-approve in any environment
  • Never hardcode AWS account IDs — use data sources or variables
  • Never store state locally — always use remote backend
  • Never use default VPC or default security groups

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.