CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

test-driven-development

This skill instructs agents to discover a repository’s test tooling, write a failing test before implementation, and use the red-green-refactor cycle to verify changes. It covers test design, test sizes and anti-patterns, bug reproduction, and browser runtime checks with Chrome DevTools MCP. It also sets verification expectations and security boundaries for browser-derived data.

Quality

80%

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 ./skills/test-driven-development/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

66%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 skill teaches its workflow exceptionally well — the TDD cycle and bug-fix pattern are sequenced with explicit validation gates and a completion checklist. Its weakness is token efficiency: many sections re-explain standard testing knowledge Claude already has, and one referenced document does not exist in the bundle.

Suggestions

Cut or compress the sections that restate standard knowledge (Test Pyramid, Arrange-Act-Assert, DAMP over DRY, One Assertion Per Concept, Name Tests Descriptively) into a few prescriptive bullets each, or move them into references/shared/testing-patterns.md — the novel guidance (Discover the Stack First, Prove-It, security boundaries, rationalizations) would then fit in well under half the current length.

Fix the dangling 'browser-testing-with-devtools' reference: either add the file to the bundle or reword the pointer so it is clearly a cross-skill mention rather than a resolvable path.

Keep the concrete TypeScript examples but trim them to the minimal illustrative fragment per step, since the skill itself notes they are for illustration and the workflow is language-independent.

DimensionReasoningScore

Conciseness

The ~400-line body spends roughly half its length restating concepts Claude already knows: the Test Pyramid with ASCII art and the 'Beyonce Rule', Arrange-Act-Assert, DAMP over DRY, one-assertion-per-concept, 'Name Tests Descriptively', state-not-interactions, and the mock-preference hierarchy are all standard testing knowledge re-explained at length. This matches 'noticeably verbose; several unnecessary explanations or padded sections' rather than the score-3 'some unnecessary explanation', because multiple full sections could be deleted with no loss of novel guidance. It is not a 1 because genuinely non-obvious material is interleaved throughout ('Discover the Stack First', the anti-re-run rule, browser-data security boundaries, the rationalizations table).

2 / 5

Actionability

Concrete, executable guidance dominates: numbered RED/GREEN/REFACTOR steps with TypeScript examples, a repro-test-first bug workflow, a specific file/command checklist for discovering the repo's test tooling (package.json, ./gradlew, pyproject.toml, make test), and a verifiable completion checklist. It falls short of 5 because the code samples reference undefined setup (taskService, db) so they are illustrative rather than copy-paste ready, and the 'browser-testing-with-devtools' pointer does not resolve to any file in the bundle.

4 / 5

Workflow Clarity

The core loop is clearly sequenced (diagram plus per-step sections) with explicit validation checkpoints: 'It must fail', 'Run tests after every refactor step', the Prove-It flow requiring the repro test to fail before the fix and pass after, full-suite runs before completion, and a final verification checklist. This matches the score-5 anchor (explicit validation, feedback loops, checklist); the operations are not destructive or batch, so no cap applies.

5 / 5

Progressive Disclosure

The body is well-sectioned and its one bundle reference is clearly signaled and exactly one level deep ('For JavaScript/TypeScript testing patterns... see references/shared/testing-patterns.md', and that file exists). It is not a 5 because 'browser-testing-with-devtools' is referenced as if it were a resolvable document but is absent from the bundle, and a substantial amount of detail (test-writing practices, the pyramid, browser testing) is inlined in SKILL.md rather than split into the reference layer.

4 / 5

Total

15

/

20

Passed

Description

86%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 with explicit, multi-clause trigger guidance and a clearly stated test-first behavioral contract. Its only flaws are second-person phrasing in the trigger clauses (penalized under the rubric's voice rule) and slight incompleteness in the 'what' (the refactor step is never mentioned).

DimensionReasoningScore

Specificity

The description names concrete actions — 'Drives development with tests using the red-green-refactor loop' and 'writes the failing test first and changes the function second, never the change alone' — which on their own merit a 4 (several specific actions, minor coverage gaps such as no mention of the refactor step or full-suite runs). However, the trigger clauses are written in second person ('Use when you need to prove that code works', 'you're about to modify existing functionality'), and the rubric mandates reducing specificity by 1 for second-person voice, bringing the score to 3. It is not a 2 because the 'what' statements are concrete and domain-specific, not generic.

3 / 5

Completeness

Explicitly answers both 'what' ('Drives development with tests using the red-green-refactor loop... writes the failing test first and changes the function second') and 'when' via multiple explicit 'Use when...' clauses with concrete trigger phrases. Matches the score-5 anchor directly; a 4 would require the 'when' to be less explicit, which it is not.

5 / 5

Trigger Term Quality

Comprehensive natural-language triggers with synonyms: 'implementing any logic', 'fixing any bug', 'when a bug report arrives', 'change its behavior', 'add tests to a function', 'prove that code works'. These are phrases users would genuinely say, covering the bug-report/fix, behavior-change, and add-tests variations. Not a 4 because no commonly used variation is missing.

5 / 5

Distinctiveness Conflict Risk

The test-first framing ('writes the failing test first and changes the function second, never the change alone') carves a clear niche distinct from general testing or code-review skills. Minor overlap risk remains with a debugging skill via 'when a bug report arrives', keeping it below 5; it is above 3 because the ordering mandate is a distinctive trigger no neighboring skill would claim.

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 deeper-than-1-level

Warning

Total

15

/

16

Passed

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.