/codebase-architecture:testing-guidelinesfrom codebase-architecture
Language-agnostic test-admission rules that protect project-owned behavior with meaningful sans-I/O evidence. Use when adding, retaining, removing, or reviewing tests.
Ships in codebase-architecture. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill treats tests as protection for project-owned behavior, not as a coverage ritual. It favors cheap sans-I/O tests and rejects tests that merely restate test-double configuration, third-party libraries, or transparent wiring.
A meaningful test protects an exact project-owned invariant with an independently derived oracle at a level capable of observing a realistic defect. When the available infrastructure cannot provide that evidence, add no test and record the coverage gap when protection is still required.
Test behavior that the project owns. Assume third-party libraries are correct and already tested.
Add a test only when it can fail because project-owned behavior is wrong.
Before adding or retaining a test, require all of the following:
Project-owned behavior includes:
Do not add a test when the implementation only forwards values to a dependency and returns its result unchanged.
Delete a test when it only:
Do not preserve a useless test for coverage. Coverage is evidence of execution, not evidence of meaningful verification.
Follow the guidelines below. Read each linked reference that applies before writing, approving, or retaining tests.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub casper-studios/casper-marketplace --plugin codebase-architecture4 skills in this plugin
/bulletproof-functionsLanguage-agnostic rules for honest, testable function boundaries. Always use when planning, writing, reviewing, or critiquing functions and abstractions./code-styleLanguage-agnostic code-design rules for explicit state, failure, ownership, and I/O boundaries. Use when implementing, refactoring, or reviewing code./vertically-sliced-feature-modulesFeature-first module architecture for cohesive ownership, composition, and promotion boundaries. Use when designing, moving, or reviewing feature and package structure.Other plugins' skills for the same job