In short.
This is an instruction skill that tells an AI coding assistant how to do test-driven development, for developers who want tests that check behavior rather than internals, and its main catch is that it requires you to confirm test boundaries (called seams) before any test is written and refers to two other skills (codebase-design and code-review) that are not part of this folder. Technically it is four small files: a SKILL.md with the rules, tests.md and mocking.md with TypeScript-style examples, and an openai.yaml display-metadata file. It sets a strict one-test, one-implementation loop, bans mocking your own modules, and flags tautological tests. Nothing was run or tested for this report, so how well an agent follows it is unknown.
Researched and written by an AI model and checked by a second AI model. How it works
This report covers the four files in the tdd folder at commit 5863806dd4e15c63174bee4e7515a4256792ecfa: SKILL.md, tests.md, mocking.md and agents/openai.yaml. The repository's root LICENSE (MIT, Copyright (c) 2026 Matt Pocock) was also read as the related licence notice, although it lies outside the folder. Excluded: linked destinations outside the selected tdd folder, other folders in the repository, the separate codebase-design and code-review skills that SKILL.md refers to, and any GLOSSARY.md or ADR files in a user's project. Nothing was installed, run or tested with any assistant, so behavior in practice, token use and result quality are not assessed.
The overview
What this resource is
The resource is a skill named tdd, located at skills/engineering/tdd in the GitHub repository mattpocock/skills, at [https://github.com/mattpocock/skills/tree/main/skills/engineering/tdd]. A skill here is a folder of plain-text instructions that an AI coding assistant reads when a task matches the skill's description. The folder has four files: SKILL.md (the main instructions), tests.md (good and bad test examples), mocking.md (when and how to mock) and agents/openai.yaml (a display name and short description).
The SKILL.md front matter gives the name 'tdd' and the description 'Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.' The licence file shows the repository copyright holder as Matt Pocock. The files do not state a version number, a changelog or a separate author for this folder.
Overall assessment
On reading the text alone, this is a short, opinionated and coherent guide. Its strongest parts are the specific rules that an agent can visibly follow or break: confirm seams first, write the failing test before the code, do one slice at a time, and do not write tests whose expected value is computed the same way as the code. The examples in tests.md make the anti-patterns concrete instead of leaving them as slogans.
The main weaknesses are dependence on material outside the folder (the codebase-design and code-review skills, and optional GLOSSARY.md and ADR files in your project), examples only in TypeScript style, and a definition of the loop that leaves out refactoring. None of this was run, so the report cannot say whether an assistant actually obeys the rules or whether the resulting tests are better than those from an unguided agent.
Who it is for
It suits developers who already use an AI coding assistant that supports skill folders and who want it to work test-first on new features or bug fixes. It is most useful for people who are comfortable with the idea of tests that check behavior through public interfaces and who are willing to answer the assistant's question about which interfaces to test.
Beginners can learn from the two supporting files: tests.md contrasts good and bad tests, while mocking.md contrasts dependency and interface designs (a payment function that receives its client versus one that creates it internally, and per-endpoint SDK-style functions versus one generic fetcher). Experienced developers will mostly care about the opinionated rules: the seam confirmation step, no mocks of internal collaborators, and refactoring kept out of the loop. People who want fully autonomous runs without questions may find the confirmation step slows them down; the evidence does not describe any way to switch it off.
What it covers
SKILL.md covers four areas. First, what a good test is: it verifies behavior through public interfaces and reads like a specification, for example 'user can checkout with valid cart'. Second, seams: the public boundary where behavior is observed. The agent must write down the seams under test, give each a one-line note on what it catches and misses, and get the user's confirmation before writing any test. Third, three anti-patterns: implementation-coupled tests, tautological tests, and horizontal slicing (writing all tests first and all code afterwards). Fourth, the rules of the loop: red before green, one slice at a time, and no refactoring inside the loop.
tests.md adds examples of integration-style tests, red flags (mocking internal collaborators, testing private methods, asserting on call counts or order, verifying through a database query instead of the interface) and a tautological versus known-literal comparison for a calculateTotal function. mocking.md says to mock only at system boundaries such as external APIs, time and randomness, and sometimes databases or the file system, and shows dependency injection and SDK-style per-endpoint interfaces.
The skill does not itself run tests, generate code, configure a test runner or measure coverage. It is guidance for the assistant, not a tool.
Using it
What you need
You need an AI coding assistant that can load skill folders, plus a project where the assistant can create and run tests. The captured files name no required language, framework or test runner. The code examples are TypeScript or JavaScript style and use Jest-like calls (test, expect, jest.mock), but the principles are written in general terms.
SKILL.md tells the assistant to call a Skill tool with 'codebase-design' when the shape of an interface is in question, and refers to a 'code-review' skill for refactoring. Both are outside this folder, so the host needs a Skill tool for the first reference to work and you need those skills installed to get the behavior described. The skill also reads GLOSSARY.md and ADRs 'if' they exist, so they are optional. Minimum versions of any assistant are not stated.
How it works
It works by adding instructions to the assistant's context. The description line in SKILL.md tells the host when the skill is relevant (test-first work, red-green-refactor, integration tests). Once loaded, the body steers the assistant's workflow: explore the codebase (reading GLOSSARY.md if present so test names match the project's vocabulary), propose seams and wait for confirmation, then repeat a cycle of one failing test followed by the minimum code to pass it.
The supporting files are linked from SKILL.md as tests.md and mocking.md. Whether a given host loads them automatically or only when the assistant chooses to open them is not stated in the evidence and depends on the host. The agents/openai.yaml file holds an interface block with display_name 'TDD' and short_description 'Test-driven red-green-refactor'. Which products read that file is not established by the evidence.
One wording mismatch is worth noting: the short description says red-green-refactor, but SKILL.md says 'Refactoring is not part of the loop' and assigns it to a review stage using the code-review skill.
Setup
The captured files contain no installation instructions, so the exact steps are unknown from this evidence. In general terms, you would place the tdd folder (all four files, keeping the relative links between SKILL.md, tests.md and mocking.md) in the location your assistant uses for skills, then check your assistant's own documentation for how skills are discovered and triggered.
If you want the full behavior described in SKILL.md, also install or provide skills named codebase-design and code-review, or edit the two references. Optionally add a GLOSSARY.md and ADRs to your project so the assistant can match your domain language. None of these steps was tried for this report.
Worked example (illustrative, not run)
Suppose you ask your assistant: 'Add a discount code to checkout, test-first.' Based on the instructions, the assistant should first look at the codebase, then write down the seams it proposes to test, for example the checkout function that takes a cart and a payment method, with a one-line note on what testing there would catch and miss. It should wait for you to confirm. It should not write a test at a seam you have not confirmed.
Then it should write one failing test in the style of tests.md, such as a test named for a capability ('checkout applies a valid discount code') that uses only the public checkout interface and compares the result against a literal expected value rather than recomputing it. Only after seeing that test fail should it write just enough code to pass. It then repeats with the next single behavior, for example an expired code. If it needs to fake the payment provider, mocking.md says to inject the payment client as a parameter and mock only at that outside boundary.
This walk-through is a reading of the instructions, not an observed run.
Assessment & evidence
Limitations and risks
Nothing was executed, so there is no evidence that an assistant follows the loop faithfully, that the seam step works in a given host, or that the tests produced are better. Several opinions are stated as rules without justification or evidence of effect, such as 'one logical assertion per test' and keeping refactoring out of the loop. Teams that define TDD as red-green-refactor in one cycle may disagree.
Dependencies outside the folder are a real gap: the codebase-design skill and code-review skill are referenced but not included, so the interface-design and refactoring guidance is missing unless you add them. The call to a 'Skill tool' assumes a host that has one. The examples are TypeScript-style and Jest-like; the evidence gives no guidance for other languages, test runners, UI tests, async timing problems, or legacy code with no seams.
The mocking guidance leaves judgment calls open ('Databases (sometimes - prefer test DB)', 'File system (sometimes)') and does not say how to set up a test database. The seam rule that no test is written at an unconfirmed seam could stall unattended agent runs. Time costs and token use are not measured.
Why the guidance is sensible, and where to be careful
The skill gives its own rationale for its central rules, and those rules are internally consistent. It says testing through public interfaces lets tests survive refactors because they do not depend on internal structure. It says a tautological assertion, where the expected value is recomputed the way the code computes it, passes by construction and can never disagree with the code, so expected values should come from an independent source of truth. It says vertical slicing (one test, one implementation) avoids committing to a test structure before understanding the implementation and lets each test respond to what the last cycle taught. Whether these rules produce better tests in practice is unknown, because nothing was run.
Be careful with the seam rule. The skill says agreeing seams up front puts testing effort on critical paths and complex logic, but the rule depends on you knowing your system well enough to approve seams, and it adds an interactive step. The statement that tests 'survive refactors' is a design goal, not something the files show. The reasoning here is based on reading the text only.
Alternatives
An untested alternative is to write project instructions covering the same rules (test-first order, public-interface testing and boundary-only mocking); whether this produces comparable results is unknown. Writing your own gives you control over language and runner details that this skill leaves open, at the cost of writing and maintaining it yourself.
Other published TDD or testing skills and prompt collections may exist; none was assessed for this report, so no comparison is made. You can also rely on the assistant's default behavior with no skill, or follow a conventional TDD book or course and prompt the assistant step by step. Which of these gives better results is unknown from the evidence.
Evidence base
The report rests on five captured files from the repository at the pinned commit 5863806dd4e15c63174bee4e7515a4256792ecfa: the four resource files SKILL.md (3,629 bytes), tests.md (2,214 bytes), mocking.md (1,481 bytes) and agents/openai.yaml (87 bytes), plus the root LICENSE (1,068 bytes) as the related licence notice.
No independent evidence was used: no issue tracker, release notes, usage reports, third-party reviews or benchmarks, and no run of the skill with any assistant. Claims about behavior are therefore claims about what the instructions say, not about outcomes.
Access & freshness
Costs
The evidence states no price, subscription or usage fee for the skill itself; the licence is a free permissive licence. The cost of the AI assistant, model usage and any tokens consumed is unknown and depends on the tool you use. The folder is small: the manifest lists 3,629 bytes for SKILL.md, 2,214 for tests.md, 1,481 for mocking.md and 87 for openai.yaml, so the added instruction text is modest, but the actual token cost depends on how your host loads the files and was not measured.
The seam-confirmation step adds a conversation turn before testing begins, and one-test-at-a-time cycles may take more turns than writing many tests at once. That time cost is a reasoned expectation, not a measurement.
Licence and reuse rights
The repository's LICENSE file at the same revision is the MIT License with the notice 'Copyright (c) 2026 Matt Pocock'. MIT permits using, copying, modifying, merging, publishing, distributing, sublicensing and selling copies, provided the copyright notice and permission notice are included in all copies or substantial portions. The software is provided 'as is' without warranty.
The LICENSE sits at the repository root, outside the tdd folder, and no separate licence file or per-file header appears inside the folder. The root licence is therefore the only licence evidence. If you copy the skill into your own project or share it, keep the MIT notice with it. The files contain no separate trademark or third-party licence statements. The openai.yaml file carries no separate rights statement.
Freshness
The files were captured on 2026-11-12 at commit 5863806dd4e15c63174bee4e7515a4256792ecfa. The source address points to the main branch, which can change after that commit, so the live folder may differ from what this report describes. The licence shows a 2026 copyright year. The evidence includes no commit dates, release tags or changelog for this folder, so how often it is updated and whether it is still actively maintained cannot be judged from these files.
Because the skill refers to other skills by name, changes to those skills or to your assistant's skill system could affect how well the instructions work. Check the repository for newer commits before relying on this report.
Suggested next steps
Read SKILL.md first; it is short and tells you quickly whether the seam-confirmation and no-refactoring-in-loop rules fit how you work. Decide whether you also want codebase-design and code-review skills, or whether to edit those references out of your copy.
Check your assistant's documentation for how to install and trigger skill folders. Try it on a small, low-risk feature or bug fix in a project that already has a working test runner, and check whether the tests it writes are named for behavior, use expected outcomes from an independent source of truth, such as a known-good literal, a worked example or the specification, and avoid mocking your own modules. If you copy or adapt the files, keep the MIT licence text and copyright notice with them. If you need guidance for languages other than TypeScript or for specific test runners, plan to add your own notes.
