CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

test-driven-development

Drives development with tests using the red-green-refactor loop. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality. Use when asked to add tests to a function, fix a bug in it or change its behavior, even when the code is pasted inline and the request does not mention tests.

Quality

84%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

70%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 excels at actionability and workflow clarity — executable examples, explicit RED/GREEN/REFACTOR sequencing, validation checkpoints, and a closing checklist — but it is noticeably verbose, devoting most of its length to testing fundamentals Claude already knows. It is also monolithic: everything is inlined in one ~400-line file while its two external references are either unresolvable or buried.

Suggestions

Cut the sections restating standard testing knowledge (Test Pyramid, Test Sizes, Arrange-Act-Assert, DAMP over DRY, naming, anti-patterns) to one-line reminders, keeping only the agent-specific guidance — discover the repo's own commands first, the Prove-It pattern, no re-runs on unchanged code, and the DevTools workflow.

Move the detailed good/bad code example pairs and JS/TS-specific patterns into the referenced testing-patterns file and keep a concise pointer plus one canonical example inline, so SKILL.md works as an overview.

Fix the references: replace the bundle-escaping "../../references/testing-patterns.md" with a bundle-relative path like "references/testing-patterns.md" (and actually ship that file), and link "browser-testing-with-devtools" as a clearly signaled reference.

DimensionReasoningScore

Conciseness

The ~395-line body spends large sections restating standard testing knowledge Claude already has — the Test Pyramid with 80/15/5 percentages, Arrange-Act-Assert, DRY vs. DAMP, descriptive test naming, mock/stub/fake hierarchy, and anti-pattern tables — each with multiple full good/bad code example pairs. Not 1 because genuinely agent-specific guidance is interwoven (discover the repo's own test commands, Prove-It pattern, don't re-run unchanged suites, untrusted browser data); not 3 because the volume of known-concept explanation and example padding is substantial rather than incidental.

2 / 5

Actionability

Fully executable TypeScript examples for RED, GREEN, and bug reproduction, concrete commands ("npm test, ./gradlew test, pytest, go test ./..."), a binary decision guide for test level, and a copy-paste-ready 5-step DevTools workflow. Not 4 because the examples are complete and cover the common cases (new behavior, bug fix, listing/sorting) with specific commands and tables rather than hints.

5 / 5

Workflow Clarity

The RED→GREEN→REFACTOR cycle and Prove-It flow are explicitly sequenced with diagrams, and validation checkpoints are explicit throughout: "It must fail", "Test FAILS (confirming the bug exists)", "Run tests after every refactor step", full-suite run before completion, plus a final verification checklist with feedback-loop notes on when re-running adds no confidence. Not 4 because checkpoints and error-recovery guidance are present at every stage rather than having minor gaps.

5 / 5

Progressive Disclosure

The bundle contains no references/ directory, yet the body cites "`../../references/testing-patterns.md`" — a path escaping the skill directory that does not exist here — and "`browser-testing-with-devtools`" as a bare backticked name rather than a clear link. Section headers are good, but ~200 lines (test pyramid, writing-good-tests lore, browser testing) that belong in separate reference files are inlined. Not 4 because the references are neither clearly signaled nor resolvable in the bundle; not 2 because the header structure keeps the single file navigable.

3 / 5

Total

15

/

20

Passed

Description

91%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: third-person, concise, with a clear 'what' and multiple explicit, natural 'use when' triggers that even cover the pasted-inline-code case. The only minor risks are the absence of enumerated discrete actions and trigger breadth that overlaps adjacent development skills.

DimensionReasoningScore

Specificity

"Drives development with tests using the red-green-refactor loop" names the domain and a concrete, specific methodology that fully defines the skill's action. Not 5 because it does not enumerate multiple discrete concrete actions (e.g., write a failing test first, minimal implementation, refactor), and not 3 because the named loop plus the enumerated task verbs (implement, fix, change behavior, add tests) leave only minor gaps in coverage.

4 / 5

Completeness

Explicitly answers both questions: "Drives development with tests using the red-green-refactor loop" (what) and three explicit "Use when..." clauses with concrete trigger phrases (when). Matches the anchor-5 pattern of the PDF example exactly; a missing or weak 'when' clause would cap it at 3, which is clearly not the case here.

5 / 5

Trigger Term Quality

Covers the natural phrases users actually say — "fixing any bug", "add tests to a function", "when a bug report arrives", "prove that code works", "modify existing functionality" — and even anticipates the unstated-tests case ("even when the code is pasted inline and the request does not mention tests"). Coverage is comprehensive with synonyms; not below 5 since no meaningful natural variant (bug, fix, tests, behavior change, implementation) is missing.

5 / 5

Distinctiveness Conflict Risk

"red-green-refactor loop" carves out a clear niche with distinct triggers, but the very broad triggers ("implementing any logic, ... or changing any behavior") overlap with general coding, debugging, and code-review skills that also fire on bug reports. Not 5 because of that overlap risk with closely related skills; not 3 because every trigger is coherent with the TDD niche rather than generic.

4 / 5

Total

18

/

20

Passed

Validation

100%

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

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

addyosmani/agent-skills

Path

skills/test-driven-development/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.