simple-tdd
БесплатноБез исполняемых скриптовНе проверенTest-driven development methodology — write the failing test first, then the minimum code to pass it
от SylphAI-Inc★ 87 звёзд на GitHubОб этом скилле
Simple TDD Workflow
Follow test-driven development strictly for the task at hand. Do not write implementation code before a failing test exists for it.
Steps
Understand the requirement. Restate what behavior is being added or fixed, in one or two sentences, before touching any file.
Write a failing test first.
- Add a test that exercises the new/changed behavior.
- Run the test suite and confirm the new test fails (and fails for the expected reason — a wrong assertion or a crash from unimplemented code, not an unrelated error).
- If it doesn't fail, the test isn't testing anything new — fix the test before proceeding.
Write the minimum code to make it pass.
- Implement just enough to make the failing test green. Resist the urge to add extra functionality, generalization, or "while I'm here" cleanup at this stage.
- Run the full test suite. All tests — the new one and every existing one — must pass.
Refactor only when green.
- With all tests passing, look for duplication, unclear naming, or structural issues introduced by the minimal implementation.
- Refactor in small steps, re-running the test suite after each change to confirm nothing broke.
- Do not add new behavior during this step — refactoring changes structure, not behavior.
Repeat. For the next requirement or edge case, go back to step 2.
Rules
- Never write production code without a failing test that requires it.
- Never write more test code than is sufficient to fail.
- Never write more production code than is sufficient to pass the currently failing test.
- If you find yourself writing several tests before making any of them pass, stop — return to one test at a time.
When to Deviate
For pure exploration/spike work (throwaway prototyping to understand a problem), it's acceptable to skip strict TDD — but say so explicitly, and any code from the spike should be rewritten test-first before it ships.
Установить simple-tdd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл simple-tdd?
Test-driven development methodology — write the failing test first, then the minimum code to pass it
Как установить скилл simple-tdd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл simple-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