claude-config-studio: Skill for Claude Code

.claude/skills/tdd-workflow/SKILL.md

tdd-workflow is a skill for Claude Code from znlnzi/claude-config-studio. It costs 23 tokens per session (358 once invoked), scanned A, original, MIT.

A test-driven development workflow, where tests are written before the implementation, the smallest working code is added, and the result is then improved. It covers unit tests for small pieces, integration tests for connected parts, and end-to-end tests for complete user journeys.

In plain words
What is it for?
Use it to turn requirements into tests, confirm tests fail before implementation, verify they pass afterward, and measure code coverage.
Why use it?
It catches broken behavior early and checks that changes continue to work across important paths, including errors and edge cases.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is znlnzi/claude-config-studio's own configuration. It tells Claude Code how to work on claude-config-studio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-config-studio configures →

Reuse

Borrowing it

Nothing to install: this file belongs to znlnzi/claude-config-studio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/znlnzi/claude-config-studio/main/.claude/skills/tdd-workflow/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/znlnzi/claude-config-studio

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-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlnzi/claude-config-studio/tdd-workflow/github.svg)](https://agentmods.dev/skills/znlnzi/claude-config-studio/tdd-workflow)
Your own site
<a href="https://agentmods.dev/skills/znlnzi/claude-config-studio/tdd-workflow"><img src="https://agentmods.dev/badge/skills/znlnzi/claude-config-studio/tdd-workflow/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-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlnzi/claude-config-studio/tdd-workflow"><img src="https://agentmods.dev/badge/skills/znlnzi/claude-config-studio/tdd-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 358 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.00023 $0.00358
Opus 5 $0.00012 $0.00179
Sonnet 5 $0.00005 $0.00072
Haiku 4.5 $0.00002 $0.00036

Measured 8d ago against content hash 562cafc7ee0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

tdd-workflow 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 8d 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.

.claude/skills/tdd-workflow/SKILL.md · 46 lines

What it actually says

TDD 工作流技能

核心流程

  1. 用户旅程 - 将需求记录为 "作为[角色],我想要..."
  2. 编写测试 - 在实现前创建全面的测试用例
  3. 运行测试(失败) - 确认测试在没有代码的情况下失败
  4. 实现代码 - 编写满足测试的最小代码
  5. 运行测试(通过) - 验证所有测试成功
  6. 重构 - 在保持绿色测试的同时提高代码质量
  7. 验证覆盖率 - 确保达到 80%+ 阈值

测试类别

单元测试

  • Jest/Vitest 用于函数、组件、工具
  • 模拟外部依赖
  • 执行快速(< 50ms)

集成测试

  • API 端点测试
  • 数据库操作测试
  • 服务交互测试

E2E 测试

  • Playwright 测试关键用户流程
  • 使用语义选择器
  • 独立可重复

覆盖率标准

  • 最低 80%(单元 + 集成 + E2E)
  • 关键路径 100%(认证、支付、安全)
  • 覆盖边缘情况和错误场景

成功指标

  • 80%+ 代码覆盖率
  • 所有测试一致通过
  • 快速执行(单元测试 < 50ms)
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. 8d ago First seen · 46 lines · 23 tokens per session scan A 562cafc7ee0d

Subscribe to this mod's changes

tdd-workflow is a skill published in the GitHub repository znlnzi/claude-config-studio (0 stars, last pushed 6mo ago), licensed MIT. It adds 23 tokens to every session and 358 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

jest-patterns

Jest and Vitest testing patterns including describe/it blocks, expect matchers, mocking, and async test strategies for JavaScript and TypeScript.

vladkesler/initrunner · 34 tokens

mocking-strategies

Mock, patch, fake, and stub patterns for isolating dependencies in Python and JavaScript test suites.

vladkesler/initrunner · 27 tokens

pytest-patterns

Pytest best practices including fixtures, parametrize, markers, and assertion patterns for Python test suites.

vladkesler/initrunner · 24 tokens

vue-component-testing

Applies the three-tier test taxonomy for Vue 3 applications: writes unit tests for composables and Pinia stores with Vitest, component tests for behaviour and user interactions with @testing-library/vue, and acceptance tests for full user flows with Playwright. Ensures tests focus on observable behaviour, not…

soulcodex/agentic · 79 tokens

fix-bug

Investigates and fixes a reported bug. Reads relevant code, identifies the root cause, proposes a fix, and adds or updates tests to prevent regression. Invoked when the user describes unexpected behavior, an error, a crash, or a failing test.

soulcodex/agentic · 54 tokens

add-tests

Generates tests for existing code. Analyzes the target function, method, or class to identify the happy path, error cases, and edge cases, then writes test cases following the project's testing framework and naming conventions. Invoked when the user asks to add tests, write tests, cover code, or increase coverage.

soulcodex/agentic · 67 tokens