opentofu-reviewer
Review OpenTofu modules, providers, plans, state, drift, lifecycle, tests, and safe apply or destroy boundaries.
- License 许可
- MIT
- 所属仓库
- domehahn/skcr
- 最近更新
- 2026-09-11
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- opentofu-reviewer
- since
- 2026-09-09
- authors
- [ "platform-engineering" ]
- version
- 1.0.0
- replaces
- null
- changelog
- [ { "date": "2026-09-09", "change": "Initial generated production-ready SDLC / DevSecOps skill", "version": "1.0.0" } ]
- stability
- stable
- supersedes
- []
- description
- Review OpenTofu modules, providers, plans, state, drift, lifecycle, tests, and safe apply or destroy boundaries.
- last_modified
- 2026-09-09
- deprecated_since
- null
- min_platform_version
- { "pi": "unknown", "bob": "unknown", "kimi": "unknown", "kiro": "unknown", "qwen": "unknown", "cline": "unknown", "codex": "unknown", "crush": "unknown", "iflow": "unknown", "junie": "unknown", "qoder": "unknown", "auggie": "unknown", "cursor": "unknown", "lingma": "unknown", "ollama": "unknown", "factory": "unknown", "amazon-q": "unknown", "continue": "unknown", "costrict": "unknown", "kilocode": "unknown", "opencode": "unknown", "roo-code": "unknown", "windsurf": "unknown", "codebuddy": "unknown", "forgecode": "unknown", "openhands": "unknown", "gemini-cli": "unknown", "gitlab-duo": "unknown", "antigravity": "unknown", "claude-code": "unknown", "github-copilot": "unknown" }
02 资源文件 16
- 资产文件assets/README.md138 B
- 参考文档assurance.yaml393 B
- 参考文档CHANGELOG.md133 B
- 参考文档contract.yaml3.7 KB
- 参考文档dependencies.yaml85 B
- 参考文档descriptor.yaml662 B
- 参考文档evals/baseline.yaml2.2 KB
- 参考文档evals/README.md723 B
- 参考文档integrations/a2a.yaml283 B
- 参考文档integrations/mcp.yaml32 B
- 许可证LICENSE214 B
- 参考文档README.md1.3 KB
- 参考文档references/README.md171 B
- 脚本scripts/README.md206 B
- 参考文档tests/README.md170 B
- 其他VERSION6 B
03 SKILL.md 正文
Opentofu Reviewer
Purpose
Review OpenTofu modules, providers, plans, state, drift, lifecycle, tests, and safe apply or destroy boundaries.
Goal and behavioral contract
The authoritative Goal and artifact references are defined in descriptor.yaml. Capability boundaries, identity and delegation requirements, tool permissions, data boundaries, invariants, approval requirements, output contract, and operational limits are defined in contract.yaml. MCP/A2A trust boundaries and the reviewed execution closure live in integrations/ and dependencies.yaml; ASPS and assurance requirements live in assurance.yaml.
Treat those declarations as mandatory execution constraints. skcr validates requirements but does not claim verification or enforce them at runtime.
When to use
- Source code, configuration, dependencies, tests, deployment artifacts, or runtime behavior in OpenTofu infrastructure as code change.
- A design, migration, upgrade, security, reliability, or performance decision requires technology-specific review.
Operating model
- Inspect the repository version, dependency lockfiles, build configuration, runtime target, and deployment environment before applying version-sensitive guidance.
- Use current official documentation for the pinned version and distinguish verified behavior from assumptions.
- Review correctness first, then security, reliability, maintainability, testability, performance, and operational impact.
Spec-Driven Change Context
- Treat repository specs, ADRs, runbooks, change proposals, design notes, and task files as durable context that outlives a chat session.
- For non-trivial changes, prefer a checked-in change artifact or equivalent proposal/design/tasks record before implementation begins.
- Capture requirement deltas explicitly: added, modified, removed, deprecated, or unchanged behavior.
- Keep implementation tasks traceable to acceptance criteria, affected specs, validation commands, and owners.
- During verification, compare the implementation against the proposal, design decisions, task checklist, and spec deltas.
- After completion, sync or archive completed change artifacts so the repository's source of truth reflects the final behavior.
- If the repository has no spec workflow yet, report the missing artifact and provide a minimal proposal/spec/tasks outline instead of relying on chat-only intent.
Skill-Specific Review Scope
- modules, providers, plan changes, state encryption, lifecycle, tests
- dependency and supply-chain boundaries
- configuration, secrets, identity, networking, data, observability, deployment, upgrade, and rollback behavior
Skill-Specific Checklist
- [ ] Identify concrete versions, supported runtimes, dependency managers, build tools, and deployment targets.
- [ ] Check idiomatic API use, lifecycle boundaries, error handling, concurrency or asynchronous behavior, resource cleanup, and data consistency.
- [ ] Check input validation, authorization, secret handling, dependency provenance, insecure defaults, and sensitive logging.
- [ ] Check unit, integration, failure-path, upgrade, rollback, and operational test evidence.
- [ ] Check observability, capacity, performance, compatibility, deprecations, and migration impact.
- [ ] Trace OpenTofu infrastructure as code inputs, outputs, identities, trust boundaries, external dependencies, and persistent state.
- [ ] Check OpenTofu infrastructure as code defaults, configuration precedence, environment separation, and drift from reviewed source.
- [ ] Check OpenTofu infrastructure as code least privilege, credential rotation, audit events, policy enforcement, and break-glass behavior.
- [ ] Check OpenTofu infrastructure as code resource ownership, cleanup, quotas, rate limits, timeouts, retries, and backpressure.
- [ ] Check OpenTofu infrastructure as code release notes, supported upgrade paths, schema or API compatibility, and rollback constraints.
Decision Rules
- Do not recommend an API, option, or migration from memory when behavior is version-sensitive; verify it against official documentation for the detected version.
- Do not run deployments, applies, destroys, migrations, or production mutations without explicit authorization for the exact target.
- Treat unsupported versions, ambiguous state changes, missing rollback, broad credentials, and untested destructive transitions as release blockers by impact.
- If OpenTofu infrastructure as code identity, version, edition, or deployment model cannot be established, report the uncertainty before recommending a change.
- If a OpenTofu infrastructure as code change can affect availability, security boundaries, persistent data, or external consumers, require staged validation and explicit rollback criteria.
Finding Categories
- Correctness or lifecycle defect.
- Security, identity, secret, dependency, or isolation weakness.
- Reliability, data integrity, upgrade, rollback, or operational gap.
- Testing, observability, maintainability, compatibility, or performance gap.
- OpenTofu infrastructure as code documentation, ownership, maintenance, licensing, provenance, or evidence gap.
Severity Guidance
- Critical: enables remote compromise, unrestricted privilege, secret disclosure, destructive production change, or material data loss.
- High: causes exploitable authorization or isolation failure, sustained outage, corrupt state, or unsafe upgrade and rollback behavior.
- Medium: creates a bounded correctness, reliability, compatibility, test, observability, or performance risk.
- Low: improves clarity, idiomatic usage, maintainability, or evidence without changing material behavior.
DevSecOps Guardrails
- Do not read secrets,
.envfiles, private keys, production credentials, masked CI/CD variables, database dumps, or sensitive logs unless explicitly required. - Do not push, deploy, publish, merge, or create releases unless explicitly asked.
- Prefer merge requests, reviewable diffs, and auditable validation evidence.
- Prefer least privilege, minimal changes, and explicit rollback notes.
- Do not fabricate test results, repository state, commands, security findings, or validation outcomes.
- Report assumptions, uncertainty, residual risk, and validation gaps clearly.
Output Requirements
- List detected versions and evidence sources.
- Return prioritized findings with affected files or resources, impact, evidence, and concrete remediation.
- Include validation commands, migration and rollback notes, and unresolved version-sensitive assumptions.
- Include a OpenTofu infrastructure as code architecture and dependency summary with trust boundaries and persistent state.
- Include OpenTofu infrastructure as code validation commands or tests that are safe for the stated environment.
Acceptance Criteria
- Guidance matches the detected technology version and official documentation.
- Material correctness, security, reliability, test, upgrade, and rollback risks have evidence-backed disposition.
- No production mutation or destructive action is performed without exact-scope approval.
- OpenTofu infrastructure as code identity, version, configuration, dependencies, and deployment assumptions are explicit.
- OpenTofu infrastructure as code failure, upgrade, rollback, observability, and recovery paths have proportionate evidence.
Anti-Patterns
- Giving generic advice without inspecting versions or artifacts.
- Inventing configuration keys, APIs, defaults, test results, or compatibility claims.
- Treating a successful build as proof of security, runtime correctness, upgrade safety, or operability.
- Assuming Landscape inclusion or popularity proves that OpenTofu infrastructure as code is secure, supported, compatible, or suitable.
- Using an unpinned latest version of OpenTofu infrastructure as code as the basis for migration or production guidance.
Changelog
1.0.0 - 2026-09-09
- Initial generated production-ready SDLC / DevSecOps skill.
04 同仓库更多 Skills
vulnerability-management-coordinator
Assess CVE triage, prioritization, SLAs, exploitability, asset criticality, exceptions, risk acceptance, and remediation tracking.
verification-reviewer
Review diffs, validate acceptance criteria, inspect test results, and find missed requirements.
universal-skill-creator
Create, adapt, validate, and optimize reusable agent skills across agentic platforms.
threat-modeler
Identify assets, trust boundaries, abuse cases, attack paths, threats, and required security controls.
test-strategy-engineer
Design and generate unit, integration, regression, security, and end-to-end test strategies.
sre-reliability-reviewer
Assess SLOs, SLIs, error budgets, capacity, degradation, timeouts, retries, circuit breakers, load shedding, and operational risks.