docker/skills-cache/tf-judge-criteria/SKILL.md
Scoring rubrics, severity classification, evaluation methodology, and iterative refinement protocol for Terraform code quality assessment.
npx skillsauth add agentdevsl/agentpane tf-judge-criteriaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Score | Level | Action | | -------- | -------------- | ------------------------------------- | | 9.0-10.0 | Exceptional | None — use as reference | | 8.0-8.9 | Excellent | Optional refinement | | 7.0-7.9 | Good | Address high-priority issues | | 6.0-6.9 | Adequate | Fix critical issues before production | | 5.0-5.9 | Below Standard | Rework required | | 4.0-4.9 | Poor | Substantial redesign needed | | 1.0-3.9 | Unacceptable | Complete rework required |
| # | Dimension | Weight | Key Criteria |
| --- | ---------------------- | ------ | -------------------------------------------------------------------------------------------- |
| 1 | Resource Design | 25% | Raw resources with secure defaults, conditional creation, proper dependencies |
| 2 | Security & Compliance | 30% | Encryption, IAM least privilege, no credentials, audit logs. <5.0 = Not Production Ready |
| 3 | Code Quality | 15% | terraform fmt, naming conventions, validation, DRY, file organization |
| 4 | Variables & Outputs | 10% | Type constraints, validation rules, secure defaults, descriptions |
| 5 | Testing | 10% | .tftest.hcl coverage, mock providers, scenario groups, assertion quality |
| 6 | Constitution Alignment | 10% | Matches design.md, constitution MUST compliance |
Module score formula: (D1 x 0.25) + (D2 x 0.30) + (D3 x 0.15) + (D4 x 0.10) + (D5 x 0.10) + (D6 x 0.10)
| # | Dimension | Weight | Key Criteria |
| --- | ---------------------- | ------ | ---------------------------------------------------------------------------------------------------------- |
| 1 | Module Usage | 25% | Private registry modules, semantic versioning, minimal raw resources (glue only) |
| 2 | Security & Compliance | 30% | Module secure defaults honoured, no credentials, dynamic auth, audit logs. <5.0 = Not Production Ready |
| 3 | Code Quality | 15% | terraform fmt, naming, wiring clarity, file organization |
| 4 | Variables & Outputs | 10% | Type constraints, validation rules, defaults, descriptions |
| 5 | Wiring & Integration | 10% | Module output-to-input connections, type compatibility, no circular deps |
| 6 | Constitution Alignment | 10% | Matches consumer-design.md, constitution MUST compliance |
Consumer score formula: (D1 x 0.25) + (D2 x 0.30) + (D3 x 0.15) + (D4 x 0.10) + (D5 x 0.10) + (D6 x 0.10)
| # | Dimension | Weight | Key Criteria | | --- | ---------------------- | ------ | -------------------------------------------------------------------------------------------------- | | 1 | Schema Design | 25% | Typed attributes, validators, plan modifiers, computed fields | | 2 | Security & Compliance | 30% | Sensitive marking, no secrets in errors/logs, credential handling. <5.0 = Not Production Ready | | 3 | Code Quality | 15% | Go conventions, error handling, Plugin Framework patterns | | 4 | CRUD Operations | 10% | Create, Read, Update, Delete, Import implemented correctly | | 5 | Testing | 10% | Acceptance test coverage, scenario groups, check functions | | 6 | Constitution Alignment | 10% | Matches provider-design.md, constitution MUST compliance |
Provider score formula: (D1 x 0.25) + (D2 x 0.30) + (D3 x 0.15) + (D4 x 0.10) + (D5 x 0.10) + (D6 x 0.10)
Applies to all workflows: If D2 (Security & Compliance) < 5.0, force "Not Production Ready" regardless of overall score.
terraform validate issues## Quality Score: {FEATURE}
### Overall: {X.X}/10.0 — {Level}
| # | Dimension | Score | Issues |
| --- | --------------------- | ----- | ---------------------------------- |
| 1 | {name} | {X.X} | {count} P0, {count} P1, {count} P2 |
| 2 | Security & Compliance | {X.X} | {count} P0, {count} P1, {count} P2 |
| ... | ... | ... | ... |
### Production Readiness: {Ready / Not Ready}
{If Not Ready, list blocking issues}
### Top Issues
| # | Severity | Dimension | File:Line | Issue | Remediation |
| --- | -------- | --------- | ----------- | ------------- | ----------- |
| 1 | {P0-P3} | {dim} | {file:line} | {description} | {fix} |
| ... | ... | ... | ... | ... | ... |
development
AWS security assessment domains, risk rating framework, CIS/NIST reference baselines, and evidence-based finding format. Use when reviewing AWS security posture, assessing risk, or applying CIS/NIST baselines to Terraform configurations.
testing
--- name: "tf-runtask" description: "Retrieve and display Terraform Cloud/Enterprise run task results for a given run. Use this skill whenever the user asks about run task results, run task checks, task stage statuses, or wants to inspect what run tasks reported for a Terraform Cloud/Enterprise run. Triggers on phrases like "check the run tasks", "what did the run tasks say", "show run task results", "get task results for run-xxx", or any reference to run task outcomes on a specific run." source
devops
Research strategies for AWS documentation, provider docs, and public registry patterns. Use when researching AWS services, investigating provider resources, or studying public registry modules for design patterns.
development
Validation results summary template for Phase 4 output. Provides the format for reporting terraform test, validate, fmt, tflint, pre-commit, trivy, and security checklist results.