dotnet-flaky-test-diagnosis

dotnet-flaky-test-diagnosis is a skill for Claude Code, Codex from Arasz/ai-raccoon. It costs 87 tokens per session (1,930 once invoked), scanned A, original, MIT.

A diagnosis process for .NET tests that fail in the full test suite but pass when run alone, or fail only sometimes. It checks whether the cause is a race between tests, shared resources, or the test environment.

In plain words
What is it for?
Use it to reproduce flaky tests, compare isolated and full-suite runs, test a clean base revision, and classify the likely cause.
Why use it?
It separates a parallel-running test problem from a real code regression and checks whether the failure already existed on the main branch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to reproduce flaky tests, compare isolated and full-suite runs, test a clean base revision, and classify the likely cause.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arasz/ai-raccoon/dotnet-flaky-test-diagnosis
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 Arasz/ai-raccoon --skill dotnet-flaky-test-diagnosis
Clone the repo
git clone --depth 1 https://github.com/Arasz/ai-raccoon

Made for: Claude Code, Codex.

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 dotnet-flaky-test-diagnosis

README.md
[![agentmods](https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-flaky-test-diagnosis/github.svg)](https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-flaky-test-diagnosis)
Your own site
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-flaky-test-diagnosis"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-flaky-test-diagnosis/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 dotnet-flaky-test-diagnosis

Your own site · 80×15
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-flaky-test-diagnosis"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-flaky-test-diagnosis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,930 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.
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.00087 $0.01930
Opus 5.5 $0.00035 $0.00772
Sonnet 5.5 $0.00017 $0.00386
Haiku 4.5 $0.00009 $0.00193

Measured yesterday against content hash 1dc9964f684c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dotnet-flaky-test-diagnosis 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 yesterday.

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.

.ai-badger/skills/dotnet-workload/references/dotnet-flaky-test-diagnosis/SKILL.md · 136 lines

How it starts

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

.NET flaky-test diagnosis

A test that fails in the full suite but passes in isolation is a PARALLELISM flake, not a regression — unless it fails isolated too, in which case it is a real bug and this skill does not apply.

Classification ladder (run in this order)

  1. Reproduce in the full suite — note the exact test names (grep "FAIL\]" log).
  2. Isolated re-run (dotnet test --filter "FullyQualifiedName~X"): passes 1/1 → flake candidate; fails → real bug, stop.
  3. Clean-main baseline: run the same test on pristine origin/main (no branch changes). Fails there too → pre-existing flake, NOT caused by your branch — do not chase it as your regression. Cleanest method in a multi-session repo: a THROWAWAY WORKTREE at the base commit — git worktree add /tmp/base-check-<sha> <base-sha> (plus any gitignored runtime assets the suite needs, e.g. an ONNX model), run the failing test there, then git worktree remove --force. This never touches the shared main checkout (which other sessions may be using) and survives stash-less. Evidence: the same test name failing at base = pre-existing; passing at base but failing on your branch = yours.
  4. Classify the root cause (the two classes below). The discriminator: does the test itself fan out concurrent work (intra-test), or does it use real I/O with wall-clock deadlines (inter-test)?

Class A — INTRA-test race: concurrent work writes shared test state

The code under test runs jobs concurrently (Task.Run, parallel batches, async fan-out) and the TEST FAKE records results into a plain List<> / Dictionary / counter. Concurrent Add() on an unsynchronized List loses entries under load.

  • Symptom: count assertions fail (e.g. Ingested.Count 1 vs expected 3); passes ~2/3 isolated; fails consistently under full-suite load.
  • FIX: lock-guard the fake's collections — never serialize the production scheduler (the concurrency is by design; the fake must tolerate it):
private readonly object _sync = new();
public List<(string ProjectId, string Path, string Content)> Ingested { get; } = [];
// in the fake method:
lock (_sync) { Ingested.Add((projectId, path, content)); }

Read the full file on GitHub · 136 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. yesterday First seen · 136 lines · 87 tokens per session scan A 1dc9964f684c

Subscribe to this mod's changes

dotnet-flaky-test-diagnosis is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 87 tokens to every session and 1,930 once invoked, about $0.0003 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-12-05.

Related

dotnet-flaky-test-diagnosis compared with skills from other repositories

dotnet-flaky-test-diagnosis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dotnet-flaky-test-diagnosisArasz/ai-raccoonSkill7todayMITA87Claude Code, Codex
debugariaxhan/kernel-claudeSkill16yesterdayMITA64Claude Code
agentsight-bugfixalibaba/anolisaSkill68813d agoApache-2.0A67Claude Code, Codex
ascend-moe-optimizer-auto-traceXiaoLuoLYG/GODSkill1.3k11d agoApache-2.0A170Claude Code, Codex
observabilityPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA67Claude Code
compiler-cb1e8e4bFuRongJun-1999/dsh-memorySkill778todayMITA110Claude Code
code-reviewShy2593666979/AgentChatSkill9433d agoMITA41Claude Code, Codex