triage-flaky-test

triage-flaky-test is a skill for Claude Code from datadog-labs/agent-skills. It costs 32 tokens per session (5,507 once invoked), scanned A, original, MIT.

A tool for investigating a flaky test, meaning a test that sometimes passes and sometimes fails without a relevant code change.

In plain words
What is it for?
Use it to review a specific test’s history and failure pattern, classify the problem, and recommend fixing, quarantining, or escalating it.
Why use it?
It helps separate recurring test instability from real product failures and supports a reasoned decision about what to do next.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agent-skills plugin — 82 skills shipped together

Good fit Use it to review a specific test’s history and failure pattern, classify the problem, and recommend fixing, quarantining, or escalating it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/datadog-labs/agent-skills/triage-flaky-test
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add datadog-labs/agent-skills --skill triage-flaky-test
Clone the repo
git clone --depth 1 https://github.com/datadog-labs/agent-skills

Made for: Claude Code.

Or install agent-skills, the plugin that ships this one along with the rest of its 82 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for triage-flaky-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/datadog-labs/agent-skills/triage-flaky-test/github.svg)](https://agentmods.dev/skills/datadog-labs/agent-skills/triage-flaky-test)
Your own site
<a href="https://agentmods.dev/skills/datadog-labs/agent-skills/triage-flaky-test"><img src="https://agentmods.dev/badge/skills/datadog-labs/agent-skills/triage-flaky-test/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for triage-flaky-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/datadog-labs/agent-skills/triage-flaky-test"><img src="https://agentmods.dev/badge/skills/datadog-labs/agent-skills/triage-flaky-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,507 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.05507
Opus 5.5 $0.00013 $0.02203
Sonnet 5.5 $0.00006 $0.01101
Haiku 4.5 $0.00003 $0.00551

Measured 6d ago against content hash fd1ee456da50, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

triage-flaky-test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

dd-software-delivery/triage-flaky-test/SKILL.md · 328 lines

How it starts

The opening of the file, as written. The whole thing — 328 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Triage Flaky Test

One-line summary: Investigate a specific flaky test — get history, failure pattern, and category, then recommend fix, quarantine, or escalate.

Requires: Datadog MCP tools, or the dd-pup skill with pup installed and authenticated.


Backend

Detection — At the start of every invocation, before taking any action, determine which backend to use:

  1. If the user passed --backend pup anywhere → use pup mode immediately. Skip steps 2–4.
  2. Check whether get_datadog_flaky_tests appears in your available tools.
  3. If present → use MCP mode throughout. Call tools exactly as named in this skill's workflow sections.
  4. If absent → check whether pup is executable: run pup --version via Bash. If the command exits successfully (exit code 0), pup is available.
  5. If pup responds → use pup mode throughout. Translate every tool call using the Tool Reference appendix at the bottom of this file.
  6. If neither is available → stop and tell the user:

    "Neither the Datadog MCP server nor the pup CLI is available. Connect the MCP server or install pup (brew install datadog-labs/pack/pup)."

pup invocation rules:

  • Invoke via Bash with JSON output (pup --output json ...) and parse the response.
  • Repository IDs passed to pup must be fully lowercase (the API rejects mixed-case).
  • Sort values starting with - require = syntax: --sort="-last_flaked" (not --sort "-last_flaked").
  • If pup returns a 401/403, tell the user to run pup auth refresh or pup auth login.

Input

Parameter Description
Test name Fully qualified test name (e.g. TestMyFunc or com.example.MyTest)
Repository Lowercase, no-schema URL (e.g. github.com/org/repo). Derive from git remote get-url origin if not provided.

Workflow

STEP 0 — Parse Input

Derive repository ID from git if not provided:

git remote get-url origin
# Strip protocol and trailing .git, normalize SSH git@host:org/repo to host/org/repo, then lowercase
# e.g. https://github.com/DataDog/my-repo.git → github.com/datadog/my-repo

Read the full file on GitHub · 328 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed fd1ee456da50
  2. 27d ago Changed · +71 lines 15c607a9fd1c
  3. 3mo ago First seen · 257 lines · 32 tokens per session scan A 224a9f648b9d

Subscribe to this mod's changes

triage-flaky-test is a skill published in the GitHub repository datadog-labs/agent-skills (188 stars, last pushed 6d ago), licensed MIT. It adds 32 tokens to every session and 5,507 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

triage-flaky-test compared with skills from other repositories

triage-flaky-test next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
triage-flaky-testdatadog-labs/agent-skillsSkill1886d agoMITA32Claude Code
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7k4d agoMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9k2d agoApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill339todayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex
triaging-web-analytics-supportPostHog/posthogSkill41ktodaynoneA151Claude Code, Codex