principle-test-behavior-not-implementation
БесплатноБез исполняемых скриптовНе проверенWHEN writing or reviewing tests and their oracles; NOT private-call choreography; assert observable contracts and meaningful failure sensitivity.
от mintuz★ 38 звёзд на GitHubОб этом скилле
Test Behavior Not Implementation
Call the subject through the interface its users use. Assert concrete results or external effects with an independent oracle: literal payloads, persisted values, recipients, counts and relevant ordering.
Ask which plausible wrong implementation would still pass. Replace tautologies, assertions on fixture-only data and helper-call choreography with checks that fail on those regressions. A mock is useful at an external boundary when its payload and effect are the contract.
Empty, undefined and absent effects can be correct outcomes. Keep those checks, and add discriminating inputs: found versus missing, authorized versus unauthorized, accepted versus declined. A stored unauthorized record is stronger evidence than an empty fixture alone. Positive counterparts defeat unconditional-empty mutants. For a shared decision, cover allowed and denied outcomes and each intentional caller difference.
Keep meaningful schema relations and compile-time tests. Evaluate an assertion by the contract it protects, not a blacklist of assertion methods.
Distinct from: principle-scale-verification (choosing which checks to run), principle-never-weaken-a-check (a gate fails), principle-prove-it-works (claiming a result works).
Done: a named plausible regression fails the test.
Установить principle-test-behavior-not-implementation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл principle-test-behavior-not-implementation?
WHEN writing or reviewing tests and their oracles; NOT private-call choreography; assert observable contracts and meaningful failure sensitivity.
Как установить скилл principle-test-behavior-not-implementation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл principle-test-behavior-not-implementation запускает скрипты?
Нет, скилл состоит только из инструкций (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