tdd
БесплатноБез исполняемых скриптовНе проверенApply Test-Driven Development workflow for new features and bugfixes.
от smartfrog★ 112 звёзд на GitHubОб этом скилле
Test-Driven Development
Use short test/code/refactor loops. Test-first is the default for features and bugfixes. When another form of verification is more appropriate, explain why and report the alternative check and its result; choose meaningful verification over formal compliance.
Workflow
- Pick an observable behavior from the acceptance criteria. For a bug, reproduce the failure with a focused test or another reliable check.
- Before implementation, write or update a behavioral test, run it, and confirm the failure comes from the missing or incorrect behavior, not a broken fixture or environment.
- Implement the simplest correct change, run the relevant checks, and refactor only where useful. Keep the loop with the implementer rather than splitting test, code, and refactor across workers.
- Repeat as needed, then run the project's required checks. Report actual commands, results, and meaningful verification gaps. Never claim a red/green cycle or a passing check that did not happen.
Adapt verification to the change
- Test observable behavior and regressions, not implementation details. Prefer deterministic, readable tests; reuse existing coverage when it already proves the behavior.
- Use unit tests for isolated logic, integration or contract checks for boundaries, and end-to-end checks for critical journeys where useful.
- For refactoring, rely on existing behavior tests and add characterization coverage when needed. For documentation or small reversible low-impact changes, use direct checks rather than artificial tests.
- For UI work, visual or interaction checks may be more useful than unit tests. For exploratory work, report findings and limitations before treating it as production-ready.
- If an environment or test setup is unavailable, investigate or use an appropriate alternative check and state the remaining uncertainty. Keep independently verifiable work moving; track material verification debt when it remains.
Установить tdd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл tdd?
Apply Test-Driven Development workflow for new features and bugfixes.
Как установить скилл tdd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tdd запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This 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…
от Anthropic