tdd-red-green-refactor
A test-driven development skill kept in Google Labs' design.md repository and written for TypeScript and Node.js.
What the skill teaches
A test-driven development skill kept in Google Labs' design.md repository and written for TypeScript and Node.js. The agent writes one test, for example in Vitest or Jest, runs it and checks that it fails because the logic is missing rather than because of a setup error, writes the simplest code that passes, then refactors while rerunning the suite and undoing any change that turns it red. It forbids writing a batch of tests at once and editing an existing test to make failing code pass unless the requirement changed, and uses strict typing as a check against guessed solutions. A worked Vitest example is included.
Capabilities
- Write one failing test at a time
- Check that failures come from missing logic, not setup
- Refactor while keeping the suite green
- Forbid weakening tests to pass failing code
About
- Publisher
- Google Labs
- Tool
- Testing
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Testing | |
| Publisher | Google Labs | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | Apache-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 6, 202628,818 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
Also listed under: Testing
Sources
- Skill file (SKILL.md)github.com/google-labs-code/design.mdNov 10, 2026
- Licence file (LICENSE)github.com/google-labs-code/design.md · Backs: LicenceNov 12, 2026
- GitHub repositorygithub.com/google-labs-code/design.md · Backs: Publisher, Activity, LicenceNov 11, 2026
- Folder in the repository (tdd)github.com/google-labs-code/design.md · Backs: Includes scriptsNov 10, 2026