| name | tf-plan |
| description | Use when the user asks for a Terraform plan, planning workflow, or architecture plan without changing code, including requests to create a new module plan, edit an existing module plan, or draft AWS architecture planning based on goals. |
| metadata | {"category":"terraform-skills","source":{"repository":"https://github.com/senad-d/terraform-skills","path":"tf-plan"}} |
Terraform Planning
Use this Terraform Planning skill to produce a structured plan for Terraform module work or AWS architecture planning based on the user's goals, without changing code.
Planning options
- Create a new module with
new-module when user mentiones new.
- Update existing module with
edit-module when user mentiones edit.
- Architecture ideas with
architecture when user mentiones architecture and designe.
Scripts
Examples:
./scripts/find.sh -d <directory> [-n <name-pattern>]
./scripts/read.sh -d <directory> [-n <name-pattern>]
./scripts/plan.sh -t <type> [-m <module_name>] [-g <short_goal>]
User-goald skills install under $CODEX_HOME/skills (default: skills).
Terraform Planning Workflow
-
Prepare context.
-
Type and goal confirmation (hard gate).
- Validate inputs first: confirm from the original user prompt that you can deduce the plan type (new, edit, architecture), a short goal, and the module name when the type is new or edit; if any are missing or unclear, stop and request clarification.
- Stop-gate: if goal is ambiguous, halt and ask to clarify using the template.
-
Create the plan based on the type.
- Generate the plan file using plan_script based on the user request.
-
Follow one of the sub-workflows based on the type (select one file to read and follow):
- Follow the New-module sub-workflows to update a plan for creating a new module based on the user requirements.
- Follow the Edit-module sub-workflows to update a plan to modify the existing module according to user requirements.
- Follow the Architecture sub-workflows to update AWS architecture designe plan based on user requirements.
References and guides
Always read all guides.
- 01-overview-and-lifecycle.md for overview, lifecycle, and map of the planning guides.
- 02-plan-methodology.md planning phases, evidence rules, severity rubric, and checklists.
- 03-composition-and-patterns for composition patterns, root module design, flat hierarchy rules, dependency inversion, and data-only/remote-state wiring.
- 04-investigation-procedure.md for file discovery, automation scripts, and MCP reference gathering.
- 05-pillar-mapping.md for mapping findings to AWS Well-Architected pillars.
- 06-arhitecture.md for architecture planning guidelines, core rules, security/IAM, and validation checklist.
DO NOT DO
- DO NOT proceed without confirming the plan type, a short goal, and the module name when required.
- DO NOT give vague or subjective feedback.
- DO NOT create and modify Terraform code.
- DO NOT run Terraform commands in this skill.
- DO NOT use any fluff to increase the word count.
- YOU DO NOT NEED to read
./scripts/*.sh scripts.
- DO NOT infer intent without evidence; halt if goal is ambiguous.