In short.
Test Behavior, Not Implementation is an assistant skill for developers seeking stronger, less brittle tests, but it provides review rules without runnable examples or demonstrated results. It focuses assertions on return values, errors, readable state and external effects. Its central exercise asks whether a test would fail after a behavioral defect and keep passing after an internal refactor. Installation steps and host compatibility are not established.
Researched and written by an AI model and checked by a second AI model. How it works
The evidence covers the folder harness/pstack/claude-code/skills/principle-test-behavior-not-implementation, whose captured contents consist of SKILL.md, plus harness/pstack/claude-code/LICENSE as an accompanying parent notice. Broader plugin code, sibling skills, host implementations and repository history are outside this assessment. Nothing was executed. Installation, invocation, compatibility and effectiveness remain unassessed.
The overview
Identity
The resource is a single SKILL.md named principle-test-behavior-not-implementation in the cursor/plugins repository, under harness/pstack/claude-code/skills/principle-test-behavior-not-implementation. Its stated purpose is to guide decisions whenever a test is written, changed or retained.
Assessment
Its clearest contribution is a compact way to question both ineffective and brittle tests. It distinguishes an external service receiving a request, which can be observable behavior, from a private helper being called, which is an implementation detail.
This makes it a useful review aid when assertions are weak or tied to internal structure. The evidence does not establish improved defect detection, reduced maintenance effort or consistent results from an assistant.
Users
The intended users are developers and coding assistants writing, changing or reviewing software tests. Beginners get a concrete distinction between observable results and internal machinery. Experienced developers get prompts for examining misleading assertions, unnecessary coupling and error contracts.
Applying the guidance requires knowing what the code promises its callers; the skill does not supply those requirements.
Capabilities
The guidance covers assertions about returned values, errors, state that callers can read and effects on outside systems. It highlights loose assertions, expected values calculated by the code being tested and assertions that merely inspect data created by the test itself.
It also recommends deriving expectations from requirements, pairing a negative assertion with a case where the event occurs, and checking the error type callers use for decisions rather than its message.
Using it
Requirements
To apply the method, a reviewer needs a concrete input, the intended result and a public interface through which to observe it. No programming language, test framework, operating system, model or assistant version is specified.
The frontmatter declares disable-model-invocation: true. The file does not explain how a particular host interprets that setting or how users should invoke the skill.
Mechanism
For each test, imagine introducing a wrong result or a missing or duplicated effect. If the test would still pass, inspect whether its assertions actually constrain the required behavior.
Then imagine changing the internals while preserving every observable result. If the test would fail, inspect its dependence on implementation details. The skill recommends keeping tests that distinguish these cases and rewriting or deleting the rest. These are thought experiments; no automated mutation or refactoring mechanism is included.
Setup
The captured skill folder contains only SKILL.md. No installer, invocation command, configuration example or loading documentation is included.
For manual use, read the file alongside a test and its requirement. For assistant use, consult the host's documented skill-loading process and establish how it handles the declared invocation flag. No installation or invocation was performed.
Example
Constructed illustration, not an executed test: suppose a requirement says total([10, 20]) must return 30. A test would call that public function and assert 30 directly, rather than asserting that an internal addition helper was called.
Returning 29 should fail the assertion. Replacing the helper while preserving the result of 30 should leave it passing. This illustrates the skill's two imagined edits; the source itself supplies no runnable example.
Assessment & evidence
Limitations
The skill provides no executable checks, sample test suite or benchmark. Its thought experiments depend on the reviewer identifying meaningful behavioral failures and changes that preserve behavior; they do not establish exhaustive test coverage.
It does not discuss nondeterministic results or cases where an exact error message is itself part of a public contract. Actual assistant behavior, compatibility and effectiveness were not assessed.
Reasoning
The underlying argument is that tests should track promises to callers. Changed outputs or external effects should matter, while private refactors that preserve those promises should not.
Deriving expected values from requirements also avoids calculating an expectation through the same code that may contain the defect. These are reasons for the proposed review method, not measured evidence of its benefits.
Alternatives
The source names no competing skills or tools and supplies no comparative results. The same text can serve as a manual checklist for developers who do not need assistant integration. Its suitability relative to other testing resources is unknown from this evidence.
Evidence
The original repository location is [https://github.com/cursor/plugins/tree/main/harness/pstack/claude-code/skills/principle-test-behavior-not-implementation]. The complete captured skill file is available at [https://raw.githubusercontent.com/cursor/plugins/320bfaa1fe11077b1efc7113bfafc7ef29ba1b8a/harness/pstack/claude-code/skills/principle-test-behavior-not-implementation/SKILL.md].
The accompanying parent notice is available at [https://raw.githubusercontent.com/cursor/plugins/320bfaa1fe11077b1efc7113bfafc7ef29ba1b8a/harness/pstack/claude-code/LICENSE]. These files support the description of the guidance and its licence; they contain no runtime logs, test results or independent evaluations.
Access & freshness
Costs
The skill specifies no pricing, model usage, token consumption or execution costs. Any assistant subscription, API charges or other usage costs are unknown from the evidence.
Rights
The accompanying harness/pstack/claude-code/LICENSE is an MIT licence naming Lauren Tan as the 2026 copyright holder. It permits use, copying, modification, distribution, sublicensing and sale, subject to retaining the copyright and permission notice in copies or substantial portions.
The licence provides the material without warranty and disclaims liability. The captured skill contains no separate licence statement.
Freshness
The source snapshot was captured on 17 November 2026 at 00:50:31.414 UTC and is pinned to revision 320bfaa1fe11077b1efc7113bfafc7ef29ba1b8a.
The skill contains no release version, publication date or update history. The current contents of the repository's main branch are unknown from this snapshot.
Actions
Start with a test whose required result is clear. Identify the public outcome, consider whether an incorrect result would escape the assertion, and consider whether an internal refactor would break it. Use those answers to rewrite assertions around the requirement.
Before deleting a test, establish whether its required behavior still needs protection. For assistant use, confirm loading and invocation behavior separately, since neither is demonstrated by the file.
