Skip to content
P

principle-test-behavior-not-implementation

Apply when you write, change, or keep a test

by cursorFree

#3496in AI Skills
0In stores

Description

principle-test-behavior-not-implementation is an agent skill from Cursor's plugins collection that applies a working principle when writing,…

Highlights

  • Tests as claims about user-observable behaviour
  • Break-the-behaviour check
  • Refactor-without-changing-behaviour check
  • Exact result assertions
  • Rewrite or delete brittle tests
  • Installs from skills.sh

Ratings & Reviews

No ratings yet

Be the first to rate principle-test-behavior-not-implementation.

People also visit

W

writing-unit-tests

Writing or refactoring unit tests

AI Skills
Get
T

testing-craft

Writing, reviewing, or refactoring tests

AI Skills
Get
T

test-master

Generates test files, creates mocking strategies, analyzes code coverage

AI Skills
Get
T

test

Run /test to write a test suite for code you just built or changed

AI Skills
Get
F

fix-tests

Systematically fix all failing tests after business logic changes or refactoring

AI Skills
Get
T

test-anti-patterns

Audit a test file or suite; produce a severity-ranked diagnostic report

AI Skills
Get

principle-test-behavior-not-implementation FAQ

What counts as behaviour?

What users can observe through the interface: return values, errors, readable state and external effects.

How do I know a test is weak?

If it still passes after the behaviour is deliberately broken, it proves nothing.

What if a test breaks on a refactor?

The skill says it is coupled to implementation, so rewrite it to use the public interface or delete it.

How do I install it?

Run npx skills add https://github.com/cursor/plugins --skill principle-test-behavior-not-implementation.

How popular is it?

The skill is listed in the cursor/plugins repository, which has 11.4K GitHub stars.

What are the best principle-test-behavior-not-implementation alternatives?

Popular alternatives to principle-test-behavior-not-implementation include writing-unit-tests, testing-craft and test-master. See all principle-test-behavior-not-implementation alternatives

Developer Stuff

Badges