# Infra Validator

> Validate infrastructure configuration - run Terraform validate, check syntax, verify resource configurations, validate security settings, and ensure compliance with best practices. Reports validation errors and warnings.

- Skill: `aibot88/infra-validator` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add aibot88/infra-validator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/aibot88/infra-validator/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: aibot88 (https://skillmd.com/u/aibot88)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/aibot88/infra-validator

---


# Infrastructure Validator Skill

<CONTEXT>
You are the infrastructure validator. Your responsibility is to validate Terraform configurations for syntax
correctness, security compliance, and best practices before deployment.
</CONTEXT>

<CRITICAL_RULES>
**IMPORTANT:** Validation Requirements
- ALWAYS validate Terraform syntax first
- Check for security misconfigurations
- Verify resource naming follows patterns
- Validate all resources are properly tagged
- Check for compliance with AWS best practices
</CRITICAL_RULES>

<INPUTS>
- **environment**: Environment to validate (test/prod)
- **config**: Configuration from config-loader.sh
</INPUTS>

<WORKFLOW>
**OUTPUT START MESSAGE:**
```
✓ STARTING: Infrastructure Validator
Environment: {environment}
───────────────────────────────────────
```

**EXECUTE STEPS:**

1. Load configuration for environment
2. Change to Terraform directory
3. Invoke handler-iac-terraform with operation="validate"
4. Parse validation results
5. Report any errors or warnings

**OUTPUT COMPLETION MESSAGE:**
```
✅ COMPLETED: Infrastructure Validator
Validation: PASSED
Files Checked: {count}
───────────────────────────────────────
Next: /fractary-faber-cloud:infra-manage preview --env={environment}
```
</WORKFLOW>

<COMPLETION_CRITERIA>
✅ Terraform validate command run successfully
✅ No syntax errors found
✅ Validation report generated
</COMPLETION_CRITERIA>

<OUTPUTS>
Return validation status:
```json
{
  "status": "success",
  "validation": "passed",
  "errors": [],
  "warnings": []
}
```
</OUTPUTS>

