tdd
БесплатноБез исполняемых скриптовНе проверенAcceptance-first TDD workflow for solo implementation work. Use when handling a coding change directly and you want to follow a disciplined sequence: read…
от JsonLee12138★ 33 звезды на GitHubОб этом скилле
TDD
Use this skill as a single-user workflow. Do not introduce worker, task assignment, or team coordination concepts.
Core Rules
- Read the request, relevant code, and constraints before implementing.
- Define what counts as done before writing production code.
- Prefer a red phase when the task supports automated tests.
- Do not default to E2E. Use E2E only when explicitly requested, already required by the task contract, or when lower-cost verification cannot cover the acceptance risk.
- If the task needs test-case design, regression planning, acceptance coverage, or broader QA execution, invoke
qa-expertinstead of expanding this skill into a full QA workflow. - If automated tests are not appropriate, define manual verification before implementing.
- Do not treat the work as complete until verification finishes.
- If verification is skipped, state the reason and residual risk explicitly.
Workflow
Follow this sequence:
- Read context
- Define acceptance criteria
- Write failing tests when feasible
- Implement
- Verify
- Conclude
Do not skip ahead unless the previous step is clearly satisfied.
Step 1: Read Context
Inspect the request and the surrounding implementation before changing anything.
Confirm:
- goal
- scope
- constraints
- non-goals
- existing verification options
If the request is ambiguous, stop and resolve the ambiguity before continuing.
Step 2: Define Acceptance Criteria
Write acceptance criteria before implementation.
Cover:
- expected behavior
- edge cases
- failure cases
- observable completion conditions
If acceptance criteria cannot be written yet, the task is not ready for implementation.
Step 3: Write Failing Tests When Feasible
If the task supports automated verification, write or update tests before implementation.
Target a real red phase:
- new behavior is asserted
- current code fails that assertion
- expected outcome is clear
If automated tests are not a good fit, explicitly define the manual verification procedure before moving on.
Step 4: Implement
Implement against the acceptance criteria and verification plan.
Do not expand scope during implementation unless the acceptance criteria are updated first.
Step 5: Verify
Use the strongest available verification path in this order:
- Existing automated tests
- New automated tests added for the change
- Repeatable manual verification with concrete steps and expected results
skippedonly when verification is blocked in the current environment
E2E is not the default verification path. Prefer lower-cost checks first unless E2E is explicitly required or the acceptance risk cannot be covered otherwise.
If the task needs dedicated test-case design, regression execution, or broader QA coverage during verification, invoke qa-expert.
If verification fails, return to implementation and fix the issue before concluding.
Step 6: Conclude
End with exactly one of these outcomes:
passedfailedskipped
When concluding, include:
- brief summary of what changed
- verification used
- result
- remaining risk if any
If the result is skipped, include the reason and the specific risk introduced by not verifying.
Failure Conditions
Stop and resolve the issue before implementation when:
- requirements are unclear
- acceptance criteria are missing
- no verification strategy is defined
Loop back and keep working when:
- tests fail unexpectedly
- the verification command fails
- manual verification does not satisfy acceptance criteria
Optional Artifacts
Use lightweight artifacts only when they help:
proposal.mddesign.mdtests.md- explicit verify command
Do not require a fixed directory structure unless the surrounding project already has one.
Установить tdd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл tdd?
Acceptance-first TDD workflow for solo implementation work. Use when handling a coding change directly and you want to follow a disciplined sequence: read context, define acceptance criteria, write failing tests when feasible, implement, verify, and conclude with passed, failed, or skipped with reason.
Как установить скилл tdd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tdd запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic