test-driven-development
ALWAYS use this when implementing or changing behavior that can be defined by a failing test first, including bug fixes, parsing, validation, business rules…
от Anhvu1107★ 25 звёзд на GitHub
Установить test-driven-development в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Test-Driven Development
Selective Reading Rule
Start with:
references/usage-routing.mdreferences/quality-checklist.md
Then load only the inherited docs, scripts, assets, or examples that match the user's actual task.
Selective Reading Rule
Start with:
references/senior-master-standard.mdreferences/red-green-refactor-checklist.mdreferences/test-shape-heuristics.md
Read references/test-shape-heuristics.md before writing the first test when the system has lots of mocking, async behavior, or awkward setup.
Purpose
Use failing tests to define behavior before implementation makes the answer look obvious.
Use This Skill When
- a bug fix can be reproduced in a test
- a new rule, parser, validation, or state transition needs precision
- refactoring could quietly change behavior
- confidence matters more than raw typing speed
Core Law
No production logic before a failing proof.
Red-Green-Refactor
- Red.
- write the smallest realistic test that demonstrates the missing behavior
- run it and confirm it fails for the right reason
- Green.
- implement the smallest change that makes the test pass
- Refactor.
- improve names, structure, and duplication while keeping the suite green
Rules
- Keep each test focused on one behavior.
- Prefer real behavior over mock choreography.
- Run the focused proof first, then widen verification only as needed.
- If a test passes immediately, it did not prove the change you think it proved.
When Not To Force It
- visual exploration where expectations are not yet stable
- disposable spikes that are intentionally throwaway
- tasks blocked by unresolved architecture decisions
Deliverable
Report:
- the failing proof you added or tightened
- the implementation change
- the focused test result
- the broader regression checks you ran
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- agents/openai.yaml
- references/legacy-testing-anti-patterns.md
- references/quality-checklist.md
- references/red-green-refactor-checklist.md
- references/senior-master-standard.md
- references/test-shape-heuristics.md
- references/usage-routing.md
FAQ
Что делает скилл test-driven-development?
ALWAYS use this when implementing or changing behavior that can be defined by a failing test first, including bug fixes, parsing, validation, business rules, state transitions, and regression-prone logic.
Как установить скилл test-driven-development?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-driven-development запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…