tdd-red-green-refactor
A test-driven development skill kept in Google Labs' design.md repository and written for TypeScript and Node.js.
スキルの内容
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.
できること
- 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
概要
- 公開元
- Google Labs
- ツール
- テスト
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
出典
- スキルファイル(SKILL.md)github.com/google-labs-code/design.md2026年11月10日
- ライセンスファイル(LICENSE)github.com/google-labs-code/design.md · 根拠となる項目:ライセンス2026年11月12日
- GitHubリポジトリgithub.com/google-labs-code/design.md · 根拠となる項目:公開元, 活動状況, ライセンス2026年11月11日
- リポジトリ内のフォルダ(tdd)github.com/google-labs-code/design.md · 根拠となる項目:スクリプトを含む2026年11月10日