docker/skills-cache/tf-module-implement/SKILL.md
SDD Phases 3-4. TDD implementation and validation from an existing design.md. Writes tests first, builds module, validates, creates PR.
npx skillsauth add agentdevsl/agentpane tf-module-implementInstall 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.
Builds and validates a Terraform module from specs/{FEATURE}/design.md using TDD.
Post progress at key steps: bash .foundations/scripts/bash/post-issue-progress.sh $ISSUE_NUMBER "<step>" "<status>" "<summary>". Valid status values: started, in-progress, complete, failed.
Checkpoint after each phase: bash .foundations/scripts/bash/checkpoint-commit.sh --dir . --prefix feat "<step_name>". The <step_name> must be a short hyphenated identifier (e.g., "scaffolding", "checklist-item-1", "validation") — NOT a sentence or file path.
$FEATURE from $ARGUMENTS or current git branch name.bash .foundations/scripts/bash/validate-env.sh --json. Stop if gate_passed=false.specs/{FEATURE}/design.md exists via Glob. Stop if missing — tell user to run /tf-module-plan first.$ISSUE_NUMBER from $ARGUMENTS or gh issue list --search "$FEATURE".tf-module-test-writer agent with FEATURE path. Verify versions.tf, variables.tf, and tests/*.tftest.hcl exist via Glob.terraform init -backend=false.terraform validate to confirm test files and scaffolding are valid HCL. This is the red TDD baseline — tests parse but resources don't exist yet, so terraform test will report errors on missing resource references. That is expected. Do NOT run terraform test here — it will fail with reference errors, not meaningful assertion failures. Checkpoint commit.tf-module-developer agent with FEATURE path and item description.terraform validate and terraform test.terraform test. If failures remain, re-launch tf-module-test-writer agent with the error output and any data sources reported by task executors as context.[x] via Grep. If any remain [ ], either mark them (if the work was done by a prior item) or flag the gap before proceeding.tf-module-validator agent with FEATURE path. The validator runs the full pipeline (fmt, validate, test, tflint, trivy, terraform-docs), scores quality, auto-fixes unambiguous issues, and writes the validation report to specs/{FEATURE}/reports/.$ISSUE_NUMBER.Report: test pass/fail, validation status, PR link.
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.