TDD
ccusage/ccusage
Guides t-wada Red-Green-Refactor TDD for ccusage logic changes.
Enforces a disciplined Red-Green-Refactor (TDD) workflow in TypeScript/Node.js.
$ npx skills add google-labs-code/stitch-sdk --skill tdd-red-green-refactor -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install google-labs-code/stitch-sdk tdd-red-green-refactor --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/google-labs-code/stitch-sdk.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/tdd .claude/skills/tdd-red-green-refactor && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "tdd-red-green-refactor" agent skill from https://github.com/google-labs-code/stitch-sdk/tree/main/.agents/skills/tdd into .claude/skills/tdd-red-green-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tdd-red-green-refactor", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/google-labs-code/stitch-sdk/tree/main/.agents/skills/tddType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add google-labs-code/stitch-sdk --skill tdd-red-green-refactor -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install google-labs-code/stitch-sdk tdd-red-green-refactor --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/google-labs-code/stitch-sdk.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/tdd .agents/skills/tdd-red-green-refactor && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "tdd-red-green-refactor" agent skill from https://github.com/google-labs-code/stitch-sdk/tree/main/.agents/skills/tdd into .agents/skills/tdd-red-green-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tdd-red-green-refactor", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add google-labs-code/stitch-sdk --skill tdd-red-green-refactor -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install google-labs-code/stitch-sdk tdd-red-green-refactor --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/google-labs-code/stitch-sdk.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/tdd .cursor/skills/tdd-red-green-refactor && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "tdd-red-green-refactor" agent skill from https://github.com/google-labs-code/stitch-sdk/tree/main/.agents/skills/tdd into .cursor/skills/tdd-red-green-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tdd-red-green-refactor", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/google-labs-code/stitch-sdk.git --path .agents/skills/tdd--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add google-labs-code/stitch-sdk --skill tdd-red-green-refactor -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install google-labs-code/stitch-sdk tdd-red-green-refactor --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/google-labs-code/stitch-sdk.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/tdd .gemini/skills/tdd-red-green-refactor && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "tdd-red-green-refactor" agent skill from https://github.com/google-labs-code/stitch-sdk/tree/main/.agents/skills/tdd into .gemini/skills/tdd-red-green-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tdd-red-green-refactor", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install google-labs-code/stitch-sdk tdd-red-green-refactorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add google-labs-code/stitch-sdk --skill tdd-red-green-refactor -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/google-labs-code/stitch-sdk.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/tdd .github/skills/tdd-red-green-refactor && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "tdd-red-green-refactor" agent skill from https://github.com/google-labs-code/stitch-sdk/tree/main/.agents/skills/tdd into .github/skills/tdd-red-green-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tdd-red-green-refactor", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add google-labs-code/stitch-sdk --skill tdd-red-green-refactor -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install google-labs-code/stitch-sdk tdd-red-green-refactor --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/google-labs-code/stitch-sdk.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/tdd .opencode/skills/tdd-red-green-refactor && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "tdd-red-green-refactor" agent skill from https://github.com/google-labs-code/stitch-sdk/tree/main/.agents/skills/tdd into .opencode/skills/tdd-red-green-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tdd-red-green-refactor", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
tdd-red-green-refactorEnforces a disciplined Red-Green-Refactor (TDD) workflow in TypeScript/Node.js.
TDD Red Green Refactor is an agent skill from google-labs-code/stitch-sdk, published by the product's own GitHub organization. Enforces a disciplined Red-Green-Refactor (TDD) workflow in TypeScript/Node.js. Use this whenever creating new features, fixing bugs, or migrating logic to ensure high-quality, verifiable implementations.
Its SKILL.md is about 760 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Test-driven development. It works with TypeScript and Node.js. The repository describes itself as: Generate UI screens from text prompts and extract their HTML and screenshots programmatically. The licence is Apache-2.0.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e3f8ece. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
TDD Red Green Refactor loads about 755 tokens when it runs. Until then it costs about 57 tokens; SKILL.md has 333 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from google-labs-code/stitch-sdk at commit e3f8ece, republished under its Apache-2.0 licence (© google-labs-code). 333 words, ~755 tokens.
.claude/skills/tdd-red-green-refactor/SKILL.md (or your agent's skills folder).This skill implements a structural framework for AI-assisted programming to ensure every line of code is verifiable, typed, and purposeful.
You must prove the feature does not exist and that your test is valid.
ReferenceError: add is not defined) and not a configuration error.Make the test pass as quickly and simply as possible.
Improve the code structure while maintaining the "Green" state.
You are strictly forbidden from writing a large "splurge" of multiple tests at once. You must follow a strictly incremental loop:
Use automated assertions and strong typing (TypeScript) as backpressure to prevent the AI from "guessing" the solution or "playing in the mud" with low-quality code.
Never modify an existing test to make a failing implementation pass. If a test must change, it must be because the requirement changed, not because the code is difficult to write.
Step 1: Red
// math.test.ts
import { describe, it, expect } from "vitest";
import { add } from "./math";
describe("add", () => {
it("should sum two numbers", () => {
expect(add(2, 2)).toBe(4); // Fails: ReferenceError: add is not defined
});
});Step 2: Green
// math.ts
export const add = (a: any, b: any) => {
return 4; // Passes: Minimal code to satisfy the test
};Step 3: Refactor
// math.ts
/**
* Sums two numbers with explicit type safety.
*/
export const add = (a: number, b: number): number => {
return a + b; // Passes: Proper implementation with safety net
};© google-labs-code, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/tdd of google-labs-code/stitch-sdk.
Open the folder on GitHubat commit e3f8ece
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in google-labs-code/stitch-sdk, which our catalogue first saw on October 7, 2026.
TDD Red Green Refactor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| TDD Red Green Refactor this skillgoogle-labs-code/stitch-sdk | 1.8k | — | ~755 | Automated safety check: Pass | Apache-2.0 | |
| TDDccusage/ccusage | 19k | — | ~665 | Automated safety check: Pass | Custom licence | |
| E2E Testcrowdin/crowdin-api-client-js | 139 | — | ~893 | Automated safety check: Notes | MIT | |
| Bungalfrevn/apollo | 237 | — | ~2k | Automated safety check: Notes | MIT | |
| Bug HuntUse-Tusk/drift-node-sdk | 173 | — | ~3.6k | Automated safety check: Pass | Apache-2.0 | |
| Bunbastani-inc/atomic | 846 | — | ~2.8k | Automated safety check: Pass | Custom licence |
ccusage/ccusage
Guides t-wada Red-Green-Refactor TDD for ccusage logic changes.
crowdin/crowdin-api-client-js
Run end-to-end tests against the real Crowdin or Crowdin Enterprise API using credentials from .env.
galfrevn/apollo
A skill your agent uses when building, running, testing, or bundling JavaScript/TypeScript applications.
Use-Tusk/drift-node-sdk
Hunt for instrumentation bugs by analyzing code gaps and running e2e tests through DISABLED/RECORD/REPLAY cycle
bastani-inc/atomic
A skill your agent uses when building, testing, and deploying JavaScript/TypeScript applications.
HsienW/chat-gun
Provides domain-specific best practices for Node.js development with TypeScript, covering type stripping, async patterns, error handling, streams, modules, testing, performance, caching, logging…
google-labs-code/stitch-sdk
Develop the Stitch SDK. An agent skill from google-labs-code/stitch-sdk.
google-labs-code/stitch-sdk
Design the domain model for the Stitch SDK. An agent skill from google-labs-code/stitch-sdk.
google-labs-code/stitch-sdk
Run the full Stitch SDK generation pipeline. An agent skill from google-labs-code/stitch-sdk.
google-labs-code/stitch-sdk
Generate or update the README for the Stitch SDK. An agent skill from google-labs-code/stitch-sdk.
google-labs-code/stitch-sdk
Use the Stitch SDK to generate, edit, and iterate on UI screens from text prompts, manage projects, and retrieve screen HTML/images.
google-labs-code/stitch-sdk
Architecture standard for building robust, type-safe TypeScript services using the "Spec and Handler" pattern.
Works with
Categories
Enforces a disciplined Red-Green-Refactor (TDD) workflow in TypeScript/Node.js. TDD Red Green Refactor is an agent skill from google-labs-code/stitch-sdk, published by the product's own GitHub organization.js.
TDD Red Green Refactor fits situations like: tasks that involve Test-driven development.
Run `npx skills add google-labs-code/stitch-sdk --skill tdd-red-green-refactor -a claude-code`. Or copy the skill folder (.agents/skills/tdd in google-labs-code/stitch-sdk) into .claude/skills/tdd-red-green-refactor in your project. Claude Code loads it when a task matches its description.
Run `npx skills add google-labs-code/stitch-sdk --skill tdd-red-green-refactor -a codex`. Or copy the skill folder (.agents/skills/tdd in google-labs-code/stitch-sdk) into .agents/skills/tdd-red-green-refactor in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add google-labs-code/stitch-sdk --skill tdd-red-green-refactor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tdd-red-green-refactor, .gemini/skills/tdd-red-green-refactor, .github/skills/tdd-red-green-refactor and .opencode/skills/tdd-red-green-refactor in your project.
SKILL.md names no scripts, command-line tools or credentials: TDD Red Green Refactor is instructions for the agent only. Our summary lists: Node.js.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
TDD Red Green Refactor is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 755 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with TDD Red Green Refactor: TDD (ccusage/ccusage, 19k stars), E2E Test (crowdin/crowdin-api-client-js, 139 stars), Bun (galfrevn/apollo, 237 stars) and Bug Hunt (Use-Tusk/drift-node-sdk, 173 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
google-labs-code (a GitHub organization, an official publisher) maintains it in google-labs-code/stitch-sdk, which has 1,825 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 1, 2026.
Source: google-labs-code/stitch-sdk on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.