用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/senad-d/terraform-skills --skill tf-root-module命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | tf-root-module |
| description | Use when creating Terraform root modules in this repo. |
| metadata | {"category":"terraform-skills","source":{"repository":"https://github.com/senad-d/terraform-skills","path":"aws-root-module"}} |
Provides a repeatable root-module workflow with enterprise-grade guardrails for planning, composition, and validation.
<module_directory>/.<module_directory>/ terraform state after testing../scripts/find.sh -d <directory> [-n <name-pattern>]
./scripts/read.sh -d <directory> [-n <name-pattern>]
./scripts/plan.sh -m <module_name> [-g <short_goal>]
./scripts/root-module.sh -m <module1,module2> -t <root-module-name[,another-name]> [-n <stack-name>] [-e <examples-root>] [-r <modules-root>] [-T <tf-required-version>] [-P <aws-provider-version>] [-f]
./scripts/test.sh -m <module_directory> [--plan <true|false>]
./scripts/cleanup.sh --quiet <module_directory>
User-scoped skills install under $CODEX_HOME/skills (default: skills).
Investigate first via read_script
Rules/ and ./references standards and review existing patterns before changing code.modules/ directory to locate appropriate child and wrapper modules for constructing the root module via find_script.Plan before code (hard gate)
Prepare files
.tftpl, .tfvars, and .json manually if they are missing from the create_script.Implement in small, focused steps
Validate
Cleanup
modules/ and keep module hierarchies shallow.required_providers.nullable = false unless null is intentional.examples/ and validate them with fmt, validate, lint, and security scans.moved blocks for refactors; document breaking changes.owner-environment-basename convention.assume_role for cross-account access.sensitive = true and avoid secrets in variables/outputs when possible.iam-role-github-oidc).snake_case; resource names follow provider conventions.required_providers but do not include provider blocks.Always read all references when planning.
terraform apply at any point!mkdir; use $CREATE.scripts/*.sh scripts.Close out.