In short.
Test-Driven Development is a skill for developers using AI coding assistants to add features and fix bugs through tests, but passing those tests only establishes the behavior they cover. It directs the assistant to discover the project's testing tools, demonstrate a failure, make the smallest passing change and refactor while preserving passing tests. Browser changes receive additional runtime inspection guidance. Assistant compatibility, defect reduction and time savings are not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers skills/test-driven-development at commit 39b723ceebf81474d0557c1fecd01eddab585563, whose supplied complete folder manifest contains SKILL.md, together with the root LICENSE notice above that folder. Other repository skills, ../../references/testing-patterns.md, browser-testing-with-devtools and external tooling are excluded. No installation, assistant activation, test execution or browser behavior was assessed.
The overview
Identity
The resource is the test-driven-development skill in addyosmani/agent-skills. Its SKILL.md contains descriptive metadata, instructions and illustrative TypeScript examples for an AI coding assistant. The original folder is [https://github.com/addyosmani/agent-skills/tree/main/skills/test-driven-development].
The supplied folder contains one Markdown instruction file. It does not supply an application, test runner or complete runnable example project.
Assessment
The clearest use case is a coding assistant that might otherwise change code without first demonstrating the requested behavior or reported bug. This skill makes the expected failure, focused test command and full-suite verification explicit parts of the work.
Its practical strength is specificity: discover the repository's tooling, reproduce bugs before fixing them, assert observable outcomes and avoid repeating unchanged test runs. Whether an assistant consistently follows these instructions is unknown.
Users
The skill targets developers delegating new logic, bug fixes, behavior changes or edge-case handling to coding assistants. Beginners receive an explicit testing sequence and readable examples; experienced developers receive guidance on test boundaries, doubles, repository conventions and regression checks.
Its stated scope excludes documentation, static content and configuration changes that have no behavioral impact. The TypeScript examples illustrate principles intended to transfer to other languages.
Capabilities
The instructions cover failing tests before implementation, minimum passing changes, refactoring, bug reproduction and full-suite checks. They require discovering language manifests, checked-in wrappers, test frameworks, neighboring test conventions and commands documented in README, CONTRIBUTING or CI files.
Test-design guidance favors assertions about outcomes, independently understandable tests, deterministic assertions and test state isolated per test, and real implementations where practical. It ranks real implementations above fakes, stubs and interaction mocks, and warns that simulated exceptions or mocked transactions do not establish real crash or rollback behavior.
For browser work, the skill describes reproduction, DOM and style inspection, console and network checks, screenshots and performance inspection through Chrome DevTools MCP. These are requested activities; successful execution is not established.
Using it
Requirements
Following the workflow requires an assistant that can read the skill, inspect and edit the project, and execute its testing tools. The project needs a usable way to run focused tests and the relevant full suite. No supported assistant list, model requirement or dependency versions are specified.
The browser workflow calls for Chrome DevTools MCP access. Its installation and configuration are not documented in this file. Language runtimes, databases and other test dependencies depend on the target repository.
Mechanism
The red-green-refactor loop starts with a test that fails, continues with the minimum implementation needed to pass it, and then improves the implementation while keeping tests passing. For a bug fix, the first test must demonstrate the reported defect before the fix is attempted.
The skill calls for the repository's focused-test command during the loop and its full-suite command before completion. It recommends rerunning tests after changes that can affect the result, while avoiding consecutive identical runs on unchanged code.
Setup
The file provides no installation command, assistant-specific destination or automatic activation procedure. Obtain the original SKILL.md and use the chosen assistant's documented skill-loading mechanism; compatibility with a particular host remains unassessed.
Before applying the workflow, identify the project's manifests, test configuration, existing tests and documented commands. The skill prefers checked-in wrappers or repository scripts over assumed global commands, so npm test is not a universal starting point.
The file refers to browser-testing-with-devtools and ../../references/testing-patterns.md for additional guidance. Their contents are outside the supplied folder evidence.
Example
The bug-fix example concerns completing a task without setting its completedAt timestamp. The proposed reproduction test creates a task, completes it and checks both the completed status and a Date value for completedAt. The illustrated fix adds that timestamp to the database update.
The intended sequence is a failing reproduction before the change, a passing reproduction afterward and a full-suite run to check covered regressions. This is an instructional example with incomplete application scaffolding; nothing was executed and no observed results are supplied.
Assessment & evidence
Limitations
The skill supplies instructions without an enforcement mechanism. It cannot establish that an assistant actually observed the initial failure, used meaningful assertions or ran the required commands.
A passing test suite can miss requirements, untested paths and integration failures. Although the source describes tests as proof, passing tests do not establish complete application correctness.
No runtime evidence, assistant compatibility results or measured productivity outcomes are supplied. The related browser setup and JavaScript/TypeScript reference material are not included in the available scope.
Reasoning
The workflow's rationale is that specifying a failure before changing code makes the intended behavior inspectable and gives a bug fix a reproducible regression case. Outcome-based assertions should also tolerate internal refactoring better than assertions tied to method-call sequences. These are design rationales, not measured benefits for this skill.
The source distinguishes test levels from resource consumption: small tests avoid I/O and external processes, medium tests permit multiple processes and localhost dependencies, and large tests may use external services. Its approximate 80% unit, 15% integration and 5% end-to-end pyramid is guidance, not an experimentally established allocation for every project.
Alternatives
Developers can follow the same red-green-refactor process directly using their repository's test tools. If existing project instructions already require reproduction tests and regression checks, the additional value of loading this skill depends on whether it improves the assistant's adherence; that benefit is unmeasured.
The source points to browser-testing-with-devtools for browser-specific guidance and testing-patterns.md for JavaScript/TypeScript examples. These are related resources whose contents are not supplied. No comparison with competing TDD skills is available.
Evidence
The available primary sources are the skill's complete SKILL.md and the repository's root MIT License. The immutable skill source is [https://raw.githubusercontent.com/addyosmani/agent-skills/39b723ceebf81474d0557c1fecd01eddab585563/skills/test-driven-development/SKILL.md].
The skill text supports descriptions of its instructions, examples and intended workflow. It provides no execution logs, benchmark results or independently observed outcomes. The licence establishes redistribution terms.
Access & freshness
Costs
No pricing, subscription or usage charges are specified for the skill. Assistant or API fees, test infrastructure, CI compute and execution time depend on the chosen environment; their amounts are unknown.
The source provides no measurements of testing overhead, token consumption or savings from prevented defects.
Rights
The repository's supplied MIT License names Addy Osmani as the 2025 copyright holder. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.
The licence supplies the material without warranty and disclaims liability. An unchanged copy of the skill can be redistributed with the required notices. The pinned notice is available at [https://raw.githubusercontent.com/addyosmani/agent-skills/39b723ceebf81474d0557c1fecd01eddab585563/LICENSE].
Freshness
The supplied source is pinned to commit 39b723ceebf81474d0557c1fecd01eddab585563 and was captured on 15 November 2026 at 20:44:16.699 UTC. This identifies a source snapshot, not a numbered release or the date the skill was last changed.
Whether the upstream main branch now differs, how frequently the skill is maintained and whether specific assistant versions support it are unknown.
Actions
Before relying on the skill, confirm that the chosen assistant can load it and that the repository's focused and full-suite commands are usable. Start with a bounded behavior change or reproducible bug, and check that the initial failure demonstrates the intended problem.
For browser changes, arrange the separate DevTools setup and inspect the actual browser behavior alongside automated tests. When copying or sharing the skill, retain the MIT copyright and permission notices.
