aztfmod/terraform-provider-azurecaf/test-failure-diagnosis

Claude Code and agent skill by aztfmod/terraform-provider-azurecaf

Trust tier 2
  • community
LLM review pending
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-diagnosis

SKILL.md

Test Failure Diagnosis

Procedure

1. Classify failure type

Read the failure output and classify:

Failure typeIndicatorsCommon cause
Compilation errorcannot compile, undefined:, syntax errorBad JSON in resourceDefinition.json, invalid Go syntax
JSON parse errorjson: cannot unmarshal, unexpected end of JSONMissing comma, unmatched quotes, bad escapes in resourceDefinition.json
Duplicate slugduplicate key, ambiguity errorsTwo resources share the same slug
Test assertion failureFAIL, expected X got YNaming logic bug, regex mismatch
Regex errorerror parsing regexpInvalid regex pattern in validation_regex or regex field
Import errorcannot find package, module not foundMissing 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:

bash
python3 -c "import json; json.load(open('resourceDefinition.json'))"

For duplicate slugs:

bash
grep '"slug":' resourceDefinition.json | sort | uniq -d

For regex issues:

bash
grep -n 'validation_regex\|"regex"' resourceDefinition.json | grep -v '"\"'
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:

bash
go test ./azurecaf/ -run "<failed_test_name>" -v

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aztfmod/terraform-provider-azurecaf/test-failure-diagnosis/badge)](https://verified-skill.com/skills/aztfmod/terraform-provider-azurecaf/test-failure-diagnosis)

Something wrong with this skill or its page? Tell us.