.github/skills/coverage-analysis/SKILL.md
Run test coverage analysis (make test_coverage), parse coverage percentage, compare against the 95% threshold, and flag regressions. Triggers on: PR checks, post-build validation, release prep.
npx skillsauth add aztfmod/terraform-provider-azurecaf coverage-analysisInstall 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.
make test_coverage 2>&1 | tee /tmp/coverage-output.txt
grep "coverage:" /tmp/coverage-output.txt | tail -1
Parse the percentage value (e.g., 99.3%).
The minimum coverage threshold is 95%.
If above threshold:
✅ Coverage: <percentage>% (threshold: 95%)
If below threshold:
⚠️ Coverage: <percentage>% — BELOW THRESHOLD (95%)
Consider adding tests for uncovered code paths.
If requested, generate HTML coverage report:
make test_coverage_html
This creates a coverage report that can be opened in a browser for line-by-line analysis.
rm -f /tmp/coverage-output.txt
development
Analyze test failure output to identify root cause and suggest fixes. Use when build or test failures occur. Triggers on: test failures, build errors, CI failures.
development
Validate a resource definition end-to-end using terraform test with mock_provider azurerm. Proves the CAF-generated name is accepted by the azurerm provider schema without Azure credentials. Use after provider-build-test succeeds to run the mocked azurerm integration test.
documentation
Analyze changes since the last release tag and determine the appropriate semantic version bump (patch/minor/major) based on CHANGELOG entries and commit types. Triggers on: release preparation, version planning.
testing
Compare two versions of resourceDefinition.json (e.g., branch vs main) and produce a structured change summary. Triggers on: PR review, audit, before/after comparison.