aztfmod/terraform-provider-azurecaf/test-failure-diagnosis
Claude Code and agent skill by aztfmod/terraform-provider-azurecaf
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install aztfmod/terraform-provider-azurecaf/test-failure-diagnosisSKILL.md
Test Failure Diagnosis
Procedure
1. Classify failure type
Read the failure output and classify:
| Failure type | Indicators | Common cause | |
|---|---|---|---|
| Compilation error | cannot compile, undefined:, syntax error | Bad JSON in resourceDefinition.json, invalid Go syntax | |
| JSON parse error | json: cannot unmarshal, unexpected end of JSON | Missing comma, unmatched quotes, bad escapes in resourceDefinition.json | |
| Duplicate slug | duplicate key, ambiguity errors | Two resources share the same slug | |
| Test assertion failure | FAIL, expected X got Y | Naming logic bug, regex mismatch | |
| Regex error | error parsing regexp | Invalid regex pattern in validation_regex or regex field | |
| Import error | cannot find package, module not found | Missing dependency, go.mod issue |
2. Extract failure details
From the output, extract:
- Failed test name(s): The specific
Test*function(s) that failed - Error message: The assertion or error text
- File and line: Where the failure occurred
- Expected vs actual: What was expected and what was produced
3. Identify root cause
Based on the classification, check the most likely source:
For JSON errors:
For duplicate slugs:
For regex issues:
4. Suggest fix
Provide a specific, actionable fix:
- For JSON formatting: show the exact line and the correction
- For duplicate slugs: identify which resources conflict
- For regex: show the invalid pattern and the corrected version
- For test failures: show what the test expects and how to satisfy it
5. Verify fix
After applying the suggested fix, re-run the failed test:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/test-failure-diagnosis/SKILL.md
Popularity
- Repository stars
- 185
- Repository forks
- 99
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aztfmod/terraform-provider-azurecaf/test-failure-diagnosis)