tdd
Practice test-driven development for new features and bug fixes.
от g2i-ai★ 53 звезды на GitHub
Установить tdd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
TDD
Invocation
This skill is performed in the Developer persona. If you are not already running as Developer (for example, the user invoked /tdd directly), read subagents/developer.md and adopt its role guidance for the rest of this task. Stay in the current chat—do not delegate to a subagent.
Objective
Use a red -> green -> refactor workflow for changes that should be test-first.
Use /code instead when the work is implementation-heavy but not centered on new automated test coverage, such as tooling, config, or linting work.
Instructions
- Determine whether the task is a bug fix or a new feature.
- For new features, read the relevant spec or acceptance criteria before writing tests.
- For bug fixes, capture the expected behavior, actual behavior, and reproduction path before writing tests.
- Identify the most appropriate unit-level test location based on nearby repo patterns.
- Write the failing test first.
- Verify the red phase by running the relevant test suite.
- Implement the smallest change needed to make the new test pass.
- Re-run tests, then run the applicable verification checks (linting, type checking, etc.).
- If the change also requires browser-flow validation, call out that E2E tests are relevant and why.
- End with the test paths, the observed red failure, the passing result, and any follow-up work.
Guardrails
- Do not create or modify E2E tests unless the user explicitly asks for E2E coverage.
- Keep TDD changes scoped to the behavior under test.
- Refactor only after the tests demonstrate the intended behavior.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл tdd?
Practice test-driven development for new features and bug fixes.
Как установить скилл tdd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tdd запускает скрипты?
Нет, скилл состоит только из инструкций (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…