Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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), без исполняемых скриптов.

Похожие скиллы

Сравнить principle-test-behavior-not-implementation с