principle-test-behavior-not-implementation
Apply when writing, changing, or keeping a test. Assert what the code's users or callers observe, so tests fail when behavior breaks and survive internal…
от watt-mind★ 25 звёзд на GitHub
Установить principle-test-behavior-not-implementation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Test Behavior, Not Implementation
Assert observable behavior and contracts rather than internal private helpers, call counts, or mock choreography.
- Test through real boundaries: Prefer real inputs/outputs, deterministic fakes at external boundaries, and observable state transitions.
- Keep tests falsifiable: Verify new regression tests fail before the fix is applied.
Guardrails
- Structural contracts are valid targets: When the output format is the user-facing contract (such as OpenXML
.docxrun/node structure, generated JSON schemas, or rendered visual/audio stills), asserting on that output structure is testing behavior, not implementation.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл principle-test-behavior-not-implementation?
Apply when writing, changing, or keeping a test. Assert what the code's users or callers observe, so tests fail when behavior breaks and survive internal refactors.
Как установить скилл principle-test-behavior-not-implementation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл principle-test-behavior-not-implementation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop 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…
internal-comms
AnthropicA 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…
skill-development
AnthropicThis 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…