Agent skill

Test Failure Decision Tree

by GoogleCloudPlatform in GoogleCloudPlatform/magic-modules

Classification decision tree and remediation strategies for diagnosing Terraform acceptance test failures across all workflows.

Custom licenceAuto-check passedTesting & QA

Install Test Failure Decision Tree

skills CLI
$ npx skills add GoogleCloudPlatform/magic-modules --skill test-failure-decision-tree -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install GoogleCloudPlatform/magic-modules test-failure-decision-tree --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/GoogleCloudPlatform/magic-modules.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/utils/test-failure-decision-tree .claude/skills/test-failure-decision-tree && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
test-failure-decision-tree
GitHub stars
974
Token cost
~4.2k tokens
SKILL.md length
1,854 words
Files
1
Skills in repo
30
Repo updated
First seen
Licence
Custom licence

At a glance

Classification decision tree and remediation strategies for diagnosing Terraform acceptance test failures across all workflows.

  • Works in 3 steps: Assign a new sequential Scenario ID… → Document the symptom pattern, root cause… → Keep the catalog updated so all…
  • Tasks that involve Failing and flaky tests
  • SKILL.md covers Global Architectural Rule:…, Global Handwritten Test Naming…, Decision Matrix Catalog and Detailed Remediation Recipes, plus 1 more section
  • Calls make and gcloud

What it does

Test Failure Decision Tree is an agent skill from GoogleCloudPlatform/magic-modules. Classification decision tree and remediation strategies for diagnosing Terraform acceptance test failures across all workflows.

Its SKILL.md is about 4.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Failing and flaky tests, Infrastructure as code and End-to-end testing. It works with Terraform. The repository describes itself as: Add Google Cloud Platform support to Terraform.

When your agent uses it

  • Tasks that involve Failing and flaky tests
  • Tasks that involve Infrastructure as code
  • Tasks that involve End-to-end testing

Example prompts

  • “/test-failure-decision-tree”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Assign a new sequential Scenario ID (e.g., Scenario 9).
  2. Document the symptom pattern, root cause category, and primary file location / remedy.
  3. Keep the catalog updated so all workflows can consult the latest patterns.

What it can do on your machine

Read from SKILL.md and the folder at commit e5db069. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • make
    • gcloud

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gcloud, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Test Failure Decision Tree loads about 4.2k tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 1,854 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~4.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,854 words (~4,167 tokens).

“This document provides a standardized classification catalog for diagnosing, isolating, and fixing failing Terraform acceptance tests in magic-modules. It is designed to be consulted by any workflow (test_fix, new_resource, add_list_resource, default) whenever make testacc fails.”

— opening of SKILL.md by GoogleCloudPlatform, Custom licence
name
test-failure-decision-tree

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/utils/test-failure-decision-tree of GoogleCloudPlatform/magic-modules.

Open the folder on GitHubat commit e5db069

Compare with similar skills

Test Failure Decision Tree next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Test Failure Decision Tree compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Test Failure Decision Tree this skillGoogleCloudPlatform/magic-modules974—~4.2kAutomated safety check: PassCustom licence
Fix Broken Datadog Provider TestsDataDog/terraform-provider-datadog468—~2.4kAutomated safety check: NotesMPL-2.0
Avm Tf TestingAzure/terraform-azurerm-avm-ptn-alz135—~1.8kAutomated safety check: PassMIT
Schema Coverageelastic/terraform-provider-elasticstack210—~1.4kAutomated safety check: PassApache-2.0
New Feature Designagentic-community/mcp-gateway-registry964—~18kAutomated safety check: NotesApache-2.0
Smt E2E Dataflow DebuggingGoogleCloudPlatform/DataflowTemplates1.3k—~1.8kAutomated safety check: PassApache-2.0

Similar skills

  • Fix Broken Datadog Provider Tests

    DataDog/terraform-provider-datadog

    Official

    Runs an end-to-end workflow to diagnose, reproduce, fix and validate a failing integration test in the Datadog Terraform provider, ending with a draft PR.

    468 GitHub stars~2.4k tokensUpdated today
    Testing & QAAuto-check: notes
  • Avm Tf Testing

    Azure/terraform-azurerm-avm-ptn-alz

    Official

    A skill your agent uses for AVM Terraform validation, provider-mocked unit tests, real-Azure integration tests, E2E example tests, PowerShell hooks, OIDC, policy checks, and Avm.Authoring CI behavior.

    135 GitHub stars~1.8k tokensUpdated 2 days ago
    Testing & QAAuto-check passed
  • Schema Coverage

    elastic/terraform-provider-elasticstack

    Official

    Analyzes a Terraform resource schema and compares it to attributes used in the acceptance test suite (configs + assertions).

    210 GitHub stars~1.4k tokensUpdated today
    Testing & QAAuto-check passed
  • New Feature Design

    agentic-community/mcp-gateway-registry

    Design and document new features with GitHub issue, low-level design (LLD), expert review, and testing plan.

    964 GitHub stars~18k tokensUpdated 2 days ago
    Testing & QAAuto-check: notes
  • Smt E2E Dataflow Debugging

    GoogleCloudPlatform/DataflowTemplates

    Debugs logical errors and data discrepancies in Dataflow templates by launching jobs via Terraform and comparing source (e.g.

    1.3k GitHub stars~1.8k tokensUpdated today
    DevelopmentAuto-check passed
  • E2E Test Runner

    aztfmod/terraform-provider-azurecaf

    Run end-to-end tests (make teste2e or make teste2equick), parse results, and produce a structured summary.

    188 GitHub stars~349 tokensUpdated 17 days ago
    Testing & QAAuto-check passed

More from GoogleCloudPlatform/magic-modules

All 30 skills in this repo
  • Run Pre Gen Checks

    GoogleCloudPlatform/magic-modules

    Run fast static checks that don't require generating downstreams, including git submodule verification, gofmt formatting, YAML linting, template validation (version-guard and unused-tmpl), mmv1 core…

    974 GitHub stars~492 tokensUpdated today
    Auto-check passed
  • Validate Provider Changes

    GoogleCloudPlatform/magic-modules

    Validate that changes to the generated providers don't introduce breaking changes or fields with missing tests or missing documentation.

    974 GitHub stars~528 tokensUpdated today
    Auto-check passed
  • Add List Resource Workflow

    GoogleCloudPlatform/magic-modules

    Opt resource into MMv1 list-resource generation by setting generatelistresource: true and validate it locally with generated tests.

    974 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Fetch Nightly Results

    GoogleCloudPlatform/magic-modules

    Skill to fetch latest nightly test results and metadata for Beta or GA providers from GCS test-metadata.

    974 GitHub stars~615 tokensUpdated today
    Auto-check passed
  • Automate Test Triage

    GoogleCloudPlatform/magic-modules

    Skill to automatically triage failing tests by reading test-metadata status files, matching GitHub issues, and generating a multi-section failure report.

    974 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Dev Overrides

    GoogleCloudPlatform/magic-modules

    Configures Terraform CLI with developer overrides to test locally built provider binaries without full Go acceptance tests, enabling rapid plan/apply cycles.

    974 GitHub stars~432 tokensUpdated today
    Auto-check passed

Works with

Questions about Test Failure Decision Tree

What does Test Failure Decision Tree do?

Classification decision tree and remediation strategies for diagnosing Terraform acceptance test failures across all workflows. Test Failure Decision Tree is an agent skill from GoogleCloudPlatform/magic-modules. Classification decision tree and remediation strategies for diagnosing Terraform acceptance test failures across all workflows.

When should I use Test Failure Decision Tree?

Test Failure Decision Tree fits situations like: tasks that involve Failing and flaky tests; tasks that involve Infrastructure as code; tasks that involve End-to-end testing.

How do I install Test Failure Decision Tree in Claude Code?

Run `npx skills add GoogleCloudPlatform/magic-modules --skill test-failure-decision-tree -a claude-code`. Or copy the skill folder (.agents/skills/utils/test-failure-decision-tree in GoogleCloudPlatform/magic-modules) into .claude/skills/test-failure-decision-tree in your project. Claude Code loads it when a task matches its description.

How do I install Test Failure Decision Tree in Codex?

Run `npx skills add GoogleCloudPlatform/magic-modules --skill test-failure-decision-tree -a codex`. Or copy the skill folder (.agents/skills/utils/test-failure-decision-tree in GoogleCloudPlatform/magic-modules) into .agents/skills/test-failure-decision-tree in your project. Codex loads it when a task matches its description.

Can I use Test Failure Decision Tree in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add GoogleCloudPlatform/magic-modules --skill test-failure-decision-tree -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-failure-decision-tree, .gemini/skills/test-failure-decision-tree, .github/skills/test-failure-decision-tree and .opencode/skills/test-failure-decision-tree in your project.

What does Test Failure Decision Tree need to run?

Going by SKILL.md and its folder, Test Failure Decision Tree needs the command-line tools its instructions call (make and gcloud).

Does Test Failure Decision Tree access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Test Failure Decision Tree safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Test Failure Decision Tree use?

Test Failure Decision Tree has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Test Failure Decision Tree use?

About 4.2k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Test Failure Decision Tree?

Skills that share tags, products or a category with Test Failure Decision Tree: Fix Broken Datadog Provider Tests (DataDog/terraform-provider-datadog, 468 stars), Avm Tf Testing (Azure/terraform-azurerm-avm-ptn-alz, 135 stars), Schema Coverage (elastic/terraform-provider-elasticstack, 210 stars) and New Feature Design (agentic-community/mcp-gateway-registry, 964 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Test Failure Decision Tree?

GoogleCloudPlatform (a GitHub organization) maintains it in GoogleCloudPlatform/magic-modules, which has 974 GitHub stars. The repository holds 30 skills in this directory. The repository was last updated on October 7, 2026.

Source: GoogleCloudPlatform/magic-modules on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.