1---2name: y-miyazaki-config-terraform-validation3description: Input4---56## Input78- Terraform path or directory (required)9- Validation script: `scripts/validate.sh` (required, run from the terraform-validation skill directory)10- Optional flags: `--fix`, `--verbose`1112## Output Specification1314Return structured Markdown in accordance with [references/common-output-format.md](references/common-output-format.md).1516Structured results in fixed order: terraform fmt, terraform validate, tflint, trivy config.1718## Execution Scope1920- **Always use `scripts/validate.sh`** for comprehensive validation. Do not run individual commands.21- Script runs all checks in deterministic order.22- Individual commands are for debugging only (see [references/common-individual-commands.md](references/common-individual-commands.md)).23- **Do not review code design decisions** (use terraform-review for that)2425### USE FOR:2627- run Terraform syntax/lint/security checks before commit28- reproduce CI validation failures locally29- validate a scoped Terraform directory during iterative changes3031### DO NOT USE FOR:3233- perform design and architecture review (use terraform-review)34- implement Terraform resource changes as a primary task35- validate non-Terraform files3637## Reference Files Guide3839- [common-checklist.md](references/common-checklist.md) (always read)40- [common-output-format.md](references/common-output-format.md) (always read)41- [common-troubleshooting.md](references/common-troubleshooting.md) - Read when checks fail unexpectedly.42- [common-individual-commands.md](references/common-individual-commands.md) - Read when debugging one tool directly.43- [category-security.md](references/category-security.md) - Read when trivy reports security findings.4445## Workflow46471. Run `bash scripts/validate.sh`.482. For scoped runs, pass a target directory: `bash scripts/validate.sh ./terraform/<target>/`.493. Use `--fix` for formatting corrections and `--verbose` for diagnostics.504. Retry at most 2 times after fixes; if checks still fail, return blocking findings and stop.5152### Examples5354```bash55bash scripts/validate.sh56bash scripts/validate.sh ./terraform/base/57bash scripts/validate.sh --fix --verbose58```5960---61> Source: [y-miyazaki/config](https://github.com/y-miyazaki/config) — distributed by [TomeVault](https://tomevault.io).62<!-- tomevault:4.0:skill_md:2026-06-15 -->
Run npx skillmds@latest add tomevault-io/y-miyazaki-config-terraform-validation in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Input It is listed under DevOps & Infra on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.