一键导入
tf-judge-criteria
Scoring rubrics, severity classification, evaluation methodology, and iterative refinement protocol for Terraform code quality assessment.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scoring rubrics, severity classification, evaluation methodology, and iterative refinement protocol for Terraform code quality assessment.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Internal helper contract for calling the codex-companion runtime from Claude Code
Comprehensive guide for Terraform code style, formatting, and best practices based on HashiCorp's official standards and Azure Verified Modules (AVM) requirements. Use when writing or reviewing Terraform configurations, formatting code, organizing files and modules, establishing team conventions, managing version control, ensuring code quality and consistency across infrastructure projects, or developing Azure Verified Modules.
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
Design engineering for Codex. Build interfaces with craft, memory, and enforcement. Maintains consistent design decisions across sessions - make choices once, enforce them automatically.
Implement plan using concurrent opus agents and verify completion
Deterministic integration test coverage analysis using off-the-shelf tooling. Use this skill whenever the user asks about test coverage, coverage gaps, untested code, what needs testing, or wants to improve integration test coverage. Also trigger when the user says 'run coverage', 'check coverage', 'coverage report', 'what's untested', 'find gaps', or has just implemented a feature and wants to know what integration tests are missing. This skill runs real tools and produces data-driven reports — not guesswork.
| name | tf-judge-criteria |
| description | Scoring rubrics, severity classification, evaluation methodology, and iterative refinement protocol for Terraform code quality assessment. |
| source | image |
| 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} |
| ... | ... | ... | ... | ... | ... |