Xspoonai official terraform plan risk auditor

From jiayaoqijia/cryptoskill · View interactive version

Xspoonai official terraform plan risk auditor is an AI agent skill from the GitHub repository jiayaoqijia/cryptoskill. Analyze Terraform plan JSON for risky changes and blast radius.

How to use this skill

Skill file

Description

Analyze Terraform plan JSON (from terraform show -json plan.out) for risky changes like destroys, replaces, IAM changes, and potential public exposure.

Inputs

{
  "plan_json": {"resource_changes": []},
  "plan_json_text": "{...}",
  "plan_path": "path/to/plan.json",
  "max_findings": 50,
  "focus": "security|cost|all"
}

Notes:

Outputs

Success:

{
  "ok": true,
  "data": {
    "demo": false,
    "summary": {"create": 0, "update": 0, "delete": 0, "replace": 0, "total_changes": 0},
    "risk_score": 0,
    "risk_level": "LOW|MEDIUM|HIGH|CRITICAL",
    "findings": [],
    "top_resources": []
  }
}

Error:

{
  "ok": false,
  "error": "...",
  "details": {"message": "..."}
}

Usage

Demo mode:

python3 scripts/main.py --demo

With parameters:

python3 scripts/main.py --params '{"plan_path": "./plan.json"}'

Via stdin:

echo '{"plan_path": "./plan.json"}' | python3 scripts/main.py

Examples

python3 scripts/main.py --params '{"plan_json": {"resource_changes": []}}'

Error Handling

All errors return JSON with ok:false and exit with a non-zero code.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.