CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

flaky-test-detective

The guide covers common causes of flaky tests, including timing, shared state, randomness, and network dependencies, and shows ways to address them. It also provides a detection script, stabilization guidance, and a scheduled CI example for monitoring test reliability.

Quality

75%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Fix and improve this skill with Tessl

tessl review fix ./.agents/skills/flaky-test-detective/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

57%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body delivers strong, concrete TypeScript/YAML examples for each flaky-test pattern and is refreshingly free of conceptual explanation, but it is a monolithic ~410-line file with redundant sections (root-cause analysis framework, regex auto-fixes) and no explicit step-by-step diagnostic workflow or fix-verification loop. The detection script and CI configuration belong in bundle files rather than inline, and the script has an execSync error-handling bug that prevents it from recording failed runs.

Suggestions

Move the detection script into an actual scripts/detect-flaky-tests.ts file and the CI workflow into a references/ file, keeping SKILL.md as a concise overview that links to them (progressive_disclosure).

Add an explicit numbered diagnostic workflow with a validation loop, e.g. 1. Run detection script 2. Match failures to root-cause patterns 3. Apply the fix 4. Re-run N times to verify the failure rate drops to zero (workflow_clarity).

Trim or remove the Root Cause Analysis framework and regex Auto-Fix Patterns sections, which duplicate the pattern examples and stabilization checklist, and fix the detection script so failed test runs are parsed instead of swallowed by the execSync catch block (conciseness, actionability).

DimensionReasoningScore

Conciseness

The ~410-line body is mostly code with little prose padding, but whole sections are unnecessary: the "Root Cause Analysis" analyzeTest framework and the regex-based "Auto-Fix Patterns" largely duplicate the pattern examples and stabilization checklist, so the skill could be tightened considerably. Not 4 because these are padded sections rather than minor trims; not 2 because it avoids explaining concepts Claude already knows.

3 / 5

Actionability

Concrete, largely copy-paste-ready guidance throughout: flaky/fixed waitFor pairs, MSW mocking, a full detection script, and CI YAML. Not 5 because the CI workflow invokes `npm run detect-flaky-tests` without any setup instruction, and the detection script's execSync call throws on non-zero exit so failed runs are caught and never parsed, undermining executability. Not 3 because the code is real and executable, not pseudocode.

4 / 5

Workflow Clarity

Section order (patterns, detection, analysis, stabilization, CI) and the closing Output Checklist imply a diagnostic sequence, but there is no explicit ordered workflow with a fix-then-re-run-to-verify feedback loop for what is a batch operation (running tests 20 times). This fits 'sequence present but checkpoints missing or implicit'; not 4 since validation-after-fix is never stated as a step.

3 / 5

Progressive Disclosure

Clear section headers make the single ~410-line file navigable, but content that clearly belongs in separate bundle files is inlined: a script literally labeled "// scripts/detect-flaky-tests.ts", a CI workflow, and an auto-fix code library, with no references/ or scripts/ files existing at all. Not 4 because no content is split out; not 2 because the in-file structure is good, not minimal.

3 / 5

Total

13

/

20

Passed

Description

83%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: it states concrete capabilities with an enumerated root-cause taxonomy and pairs them with an explicit 'Use for' clause containing natural trigger phrases and synonyms. The only weaknesses are the slightly generic "provides stabilization strategies" phrase, a few missing trigger variations, and the broadly-scoped "test debugging" trigger that invites minor overlap with general debugging skills.

DimensionReasoningScore

Specificity

"Diagnoses and fixes flaky tests by identifying root causes (timing issues, shared state, randomness, network dependencies) and provides stabilization strategies" lists several concrete actions plus an enumerated cause taxonomy, matching the 'several specific actions; minor gaps' anchor. It is not 5 because "provides stabilization strategies" is generic and the strategies themselves are not enumerated; it exceeds 3 because it goes well beyond 1-2 actions.

4 / 5

Completeness

It clearly answers what ("Diagnoses and fixes flaky tests by identifying root causes...") and when ("Use for 'flaky tests', 'test stability', 'intermittent failures', or 'test debugging'") with concrete trigger phrases, exactly matching the top anchor's structure. Not 4 because the 'when' clause is already explicit and specific rather than merely adequate.

5 / 5

Trigger Term Quality

Triggers "flaky tests", "test stability", "intermittent failures", and "test debugging" are natural phrases users would say, with good synonym coverage. It falls short of 5 because common variations like "flakiness", "tests failing randomly", or "rerun failures" are missing, but it is well above the 3 anchor's single-domain-keyword level.

4 / 5

Distinctiveness Conflict Risk

The flaky-test stabilization niche is distinct with clear triggers, but "test debugging" is broad and could overlap with general debugging or testing skills, fitting 'mostly distinct; minor overlap risk'. Not 5 due to that overlap; not 3 since the core triggers are unambiguous for this domain.

4 / 5

Total

17

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

referenced_paths_exist

Referenced path issues: 1 possibly missing (scripts/detect-flaky-tests.ts)

Warning

Total

15

/

16

Passed

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/flaky-test-detective/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.