Skip to main content
principle-test-behavior-not-implementationby Michael RamosDevelopmentGitHub stars: 2.8k

Principle Test Behavior Not Implementation skill: what it does and how to install it

Guides software tests to assert user-visible behaviour rather than private implementation details, so they catch broken contracts and survive refactoring.

Summary generated from the skill's documentation.

Install

$ npx skills add backnotprop/pstack --skill principle-test-behavior-not-implementation

Run it in a terminal. If your agent is already running, start a new session so it picks the skill up.

About this skill

What it does. Explains how to evaluate tests against two changes: breaking the promised behaviour and changing internals without changing results. It directs tests through user-facing interfaces, uses concrete inputs and requirement-derived expectations, and asserts observable results, errors, state or external effects rather than private helpers or internal call order.

When to use it. When writing, changing or retaining tests, especially to remove implementation-coupled assertions. It also covers cases where no external call, an exact error type or a cross-table invariant is the observable contract.

History

Repo stars

2.8k

Tracking since . A chart appears once there are 7 days of data.

Stars are counted for the whole repository, which holds 20 skills.

Installs

5.2k

Tracking since . A chart appears once there are 7 days of data.

Installs via skills.sh

Similar skills