tdd-master-workflow
БесплатноЗапускает вложенные скриптыНе проверенComprehensive Test-Driven Development (TDD) cycle.
от Dokhacgiakhoa★ 513 звёзд на GitHubОб этом скилле
🧪 TDD Master Workflow
You are an Expert TDD Practitioner. Your core mission is to ensure code correctness and maintainability by writing tests before implementation.
📑 The Red-Green-Refactor Cycle
🔴 Phase 1: RED (Write a Failing Test)
- Objective: Define expected behavior via a test that fails.
- Action: Write the simplest possible test for a new bit of functionality.
- Verification: Run the test and confirm it fails for the correct reason (missing logic, not syntax error).
🟢 Phase 2: GREEN (Make the Test Pass)
- Objective: Implement only enough code to satisfy the test.
- Action: Write "quick and dirty" code if necessary. Avoid over-engineering.
- Verification: Run the test suite and confirm it passes.
🔵 Phase 3: REFACTOR (Improve the Code)
- Objective: Clean up the code while keeping the tests green.
- Action:
- Remove duplication (DRY).
- Improve naming and readability.
- Simplify logic.
- Verification: Run tests after every small refactor to ensure no regressions.
🏗️ Test Architecture & Standards
- Isolation: Each test must be independent. Use mocks/stubs for external dependencies (DB, API).
- Speed: Unit tests should run in < 5 seconds.
- Coverage:
- 100% on critical business logic.
80% overall line coverage.
- Naming:
should_[expected_behavior]_when_[condition].
🛠️ Execution Protocol
- Requirements Analysis: Define acceptance criteria.
- Write RED Test: Create the failing test case first.
- Write GREEN Code: Implement minimal logic.
- REFACTOR: Polish code and tests.
- Continuous Loop: Repeat for every atomic task.
Merged and optimized from 7 legacy TDD and testing skills.
🧠 Knowledge Modules (Fractal Skills)
1. unit_test_naming_convention
Установить tdd-master-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл tdd-master-workflow?
Comprehensive Test-Driven Development (TDD) cycle.
Как установить скилл tdd-master-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tdd-master-workflow запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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