What it does
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Instructions the AI follows
This is the skill's own instruction file. It's written for the AI, so it can read like a list of orders. You don't need to read it to use the skill.
TDD is the red → green loop. This skill is the reference that makes that loop produce tests worth keeping: what a good test is, where tests go, the anti-patterns, and the rules of the loop. Every section applies on every cycle: consult them before and during the loop, not after.
When exploring the codebase, read GLOSSARY.md (if it exists) so test names and interface vocabulary match the project's domain language, and respect ADRs in the area you're touching.
Tests verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't. A good test reads like a specification: "user can checkout with valid cart" tells you exactly what capability exists, and it survives refactors because it doesn't care about internal structure.
See tests.md for examples and mocking.md for mocking guidelines.
A seam is the public boundary you test at: the interface where you observe behavior without reaching inside. Tests live at seams, never against internals.
From skills/engineering/tdd/SKILL.md in mattpocock/skills · read from GitHub at commit 5beb35b
Try it
- 1Add tdd to your AI
- 2Ask for something like this
Add a 'pause subscription' feature test-first: write the failing test, make it pass, then clean up.
There's a bug where dates near midnight show the wrong day. Reproduce it in a test first, then fix it.
Write integration tests for the signup flow before I refactor it, so I know nothing broke.
Example prompts written from the skill's instructions.
Safety
SafeDetails
All three scanners ran and found nothing that could steal your data or hijack your AI.
What it can do- Runs commands on your computer
- Goes online
- Reads keys or settings
- Scanners
- SkillSpector 2.12.0 · HoneyBadger 0.8.1 · agentscan 1.2.2
- Version scanned
5beb35bmattpocock/skills/skills/engineering/tdd- Scanned on
- Nov 9, 2026
- Raw reports
- full report skillspector honeybadger agentscan
- Secret scanNoticed
HoneyBadger: ss-sensitive-paths HIGH References to sensitive paths: [.env]Mentions secret files and also web addresses. (LLM02 Sensitive Information Disclosure) - Dangerous commandsNoticed
SkillSpector: Report recommendation is CAUTION. SkillSpector analysis was partial (reference_missing). - Network callsNoticed
agentscan: network medium mocking.md:44 Network primitive: fetch()Mentions web addresses. (LLM02 Sensitive Information Disclosure)agentscan: network medium mocking.md:45 Network primitive: fetch()Mentions web addresses. (LLM02 Sensitive Information Disclosure)agentscan: network medium mocking.md:46 Network primitive: fetch()Mentions web addresses. (LLM02 Sensitive Information Disclosure) - PermissionsPassed
- Prompt injectionPassed
- LicensePassed
- MaintenancePassed
No person has signed this one off yet.
nothing found (markdown only; runs the project's own tests, which is the job).
An AI reviewer read the files and wrote this. It is not a scan, nobody approved it yet, and it never sets the label above.
Three open-source scanners (SkillSpector, HoneyBadger, agentscan) check this exact version. Heads up means it could steal your data or hijack your AI. What it can do is listed, not warned about. Scanners miss things.
How we check: only harm earns a Heads up, meaning prompt injection (OWASP LLM01) or data leaks (LLM02), in files the skill ships. Abilities like running commands (LLM06) are listed, not warned about. No AI is used for this step. OWASP
Details
- Stars
- 332kwhole repo
- Installs
- 1.3Mon skills.sh
- Last updated
- Nov 24, 2026on GitHub
GitHub and skills.sh numbers are a snapshot from Nov 24, 2026, not live.
Compared with
Picked from reading the skills, not yet tested head to head.
Our best pick for prove it works
It keeps the agent in a strict write-the-failing-test-first loop, and agrees with you up front on what to test.
Alternativewebapp-testingCommunity
Comments
How to add tdd to Claude
Press Add to your AI at the top of this page and pick Claude, or do it yourself:
- Download the skill. Keep the .zip as it is.
- On Claude's skills page, click +, then Create skill, then Upload a skill.
- Pick the file you downloaded and switch the skill on.
Works on every Claude plan, Free included. Code execution and file creation need to be on in Claude's settings. How to add a skill to Claude, step by step.
In ChatGPT
Skills are on ChatGPT Business, Enterprise, Healthcare and Edu plans. Download the skill. Keep the .zip as it is. In ChatGPT, open Plugins in the sidebar, then the Skills tab, then Create, then Upload from your computer. Pick the file you downloaded. ChatGPT checks it, then it's ready. More on ChatGPT.
For AI apps and agents: the skill's instructions as plain text, at the version we scanned.