Content
57%Weight 40%Scale 1-5Reviews 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).
| Dimension | Reasoning | Score |
|---|---|---|
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 |