tdd-typescript

tdd-typescript is a skill for Claude Code from forest6511/claude-code-recipes-v2. It costs 18 tokens per session (322 once invoked), scanned A, original, MIT.

A TypeScript testing workflow based on test-driven development (TDD), where tests are written before the implementation. It uses Vitest, a JavaScript and TypeScript test runner, and proceeds through failing tests, working code, and cleanup.

In plain words
What is it for?
Writing Vitest tests, implementing the smallest code needed to pass them, checking types, and refactoring while keeping all tests passing.
Why use it?
It gives each change a clear test-first sequence and checks both behavior and TypeScript errors. This helps catch regressions after refactoring.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Writing Vitest tests, implementing the smallest code needed to pass them, checking types, and refactoring while keeping all tests passing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/forest6511/claude-code-recipes-v2/tdd-typescript
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add forest6511/claude-code-recipes-v2 --skill tdd-typescript
Clone the repo
git clone --depth 1 https://github.com/forest6511/claude-code-recipes-v2

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tdd-typescript

README.md
[![agentmods](https://agentmods.dev/badge/skills/forest6511/claude-code-recipes-v2/tdd-typescript/github.svg)](https://agentmods.dev/skills/forest6511/claude-code-recipes-v2/tdd-typescript)
Your own site
<a href="https://agentmods.dev/skills/forest6511/claude-code-recipes-v2/tdd-typescript"><img src="https://agentmods.dev/badge/skills/forest6511/claude-code-recipes-v2/tdd-typescript/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tdd-typescript

Your own site · 80×15
<a href="https://agentmods.dev/skills/forest6511/claude-code-recipes-v2/tdd-typescript"><img src="https://agentmods.dev/badge/skills/forest6511/claude-code-recipes-v2/tdd-typescript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 322 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.00322
Opus 5.5 $0.00007 $0.00129
Sonnet 5.5 $0.00004 $0.00064
Haiku 4.5 $0.00002 $0.00032

Measured 3mo ago against content hash 3cd705554b2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tdd-typescript scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ch08-skills-templates/recipe-41/.claude/skills/tdd-typescript/SKILL.md · 27 lines

What it actually says

実装したい機能: $ARGUMENTS

TDD サイクルに従い、TypeScript / Vitest 前提で進めます。

Phase 1: Red

  • *.test.ts をテスト対象と同じディレクトリに作成
  • describe ブロックで仕様を、it で個別ケースを記述
  • npx vitest run <test-file> で対象テストだけ実行し、失敗メッセージを確認

Phase 2: Green

  • 対象テストを通す最小実装のみ書く
  • npx tsc --noEmit で型エラーがないことを確認
  • npx vitest run で全テストが通ることを確認

Phase 3: Refactor

  • 共通化できる箇所をユーティリティ関数に抽出
  • any を排除、unknown から型ガードで絞る
  • リファクタ後に npx vitest run を再実行し Green 維持
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 27 lines · 18 tokens per session scan A 3cd705554b2a

Subscribe to this mod's changes

tdd-typescript is a skill published in the GitHub repository forest6511/claude-code-recipes-v2 (7 stars, last pushed 7mo ago), licensed MIT. It adds 18 tokens to every session and 322 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

tdd-typescript compared with skills from other repositories

tdd-typescript next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-typescriptforest6511/claude-code-recipes-v2Skill77mo agoMITA18Claude Code
typescript-test-writingvybestack/llxprt-codeSkill703todayApache-2.0A66Claude Code, Codex
nw-fp-typescriptnWave-ai/nWaveSkill63815d agoMITA26Claude Code
typescriptmartinholovsky/claude-skills-generatorSkill473d agoUnlicenseA12Claude Code, Codex
typescript-evalvellum-ai/vellum-assistantSkill1.5k3d agoMITC14Claude Code, Codex
Unit Test Scaffold (TypeScript)s977043/river-reviewSkill8todayMITA23Claude Code
programming-fsharpwahidyankf/ose-publicSkill12yesterdayMITA53Claude Code