Guides the decision of what to test and at which level (unit, integration, contract, e2e), then writes fast, deterministic behavior-focused tests. Handles test planning, mock decisions, flaky test fixes, and regression tests.
Ships in engineering-core. 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.
A good test fails when the behavior breaks, and only then. Test what the code promises to its callers, at the cheapest level that can catch the bug you care about, and make every test deterministic.
Per-framework commands (single test, filter, rerun failures, random order, repeat, coverage) are in references/framework-commands.md.
| Level | Use for | Strength | Cost |
|---|---|---|---|
| Unit (no I/O) | Business rules, calculations, parsing, validation, state machines, branching logic | Milliseconds; failures point at the exact problem | Misses wiring and integration bugs; brittle if tied to internals |
| Integration (real database, file system, HTTP inside the service, framework wiring) | Queries and ORM mappings, transactions, serialization, migrations, dependency injection, middleware | Catches real mismatches between your code and its infrastructure | Slower; needs setup and isolation |
| Contract (consumer-driven contracts or schema checks) | APIs and events between services or teams | Catches breaking changes without deploying everything | Needs discipline on both sides |
| End-to-end (UI or full deployed system) | A few critical user journeys: sign-up, login, checkout | Highest confidence that the system works | Slowest and most flaky; keep the number small |
Rules of thumb:
responses/respx, Go's httptest.Server).| Source of flakiness | Fix |
|---|---|
| Current time | Inject a clock or freeze time: freezegun or time-machine (Python), vi.useFakeTimers() / jest.useFakeTimers(), Clock.fixed(...) (Java), TimeProvider with FakeTimeProvider (.NET 8+), a now func() time.Time parameter (Go) |
| Randomness | Seed the generator or inject it; log the seed on failure |
| Network | No real external calls in unit or integration tests; use fake servers |
| Ordering | Never depend on test execution order, hash map iteration order, or database row order without ORDER BY |
| Async and concurrency | Wait for a condition or await completion; never sleep a fixed time |
| Shared state | Each test creates its own data (unique IDs, transaction rollback, fresh schema); reset globals, singletons and environment variables |
| Environment | Pin timezone and locale in test config (for example TZ=UTC), use path APIs instead of string paths, avoid machine-specific ports (bind to port 0) |
Detailed diagnosis and fixes are in references/flaky-tests.md.
refund_fails_when_order_already_refunded, it("rejects expired tokens"). The name should explain the failure without reading the body.@pytest.mark.parametrize, it.each / test.each, Go table-driven tests with t.Run, JUnit @ParameterizedTest, xUnit [Theory] with [InlineData], NUnit [TestCase].When the input space is large (parsers, serializers, encoders, math, sorting, state machines), assert properties that hold for all inputs instead of a handful of examples:
decode(encode(x)) == x.f(f(x)) == f(x).Tools: Hypothesis (Python), fast-check (JS/TS), jqwik (Java), FsCheck (.NET), proptest (Rust), Go's built-in fuzzing (go test -fuzz=FuzzParse). Keep any failing example the tool finds as a regular regression test.
Use coverage to find untested branches in the code you changed, especially error handling. Do not chase a percentage: 100% line coverage with weak assertions proves little. To check whether tests actually detect bugs in critical modules, use mutation testing (Stryker for JS/TS and .NET, PIT for Java, mutmut for Python, cargo-mutants for Rust).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/engineering-core:test-strategyfrom engineering-core
npx claudepluginhub reddygopalkrishna/developer-agent-skills --plugin engineering-core14 skills in this plugin
/codebase-onboardingMaps an unfamiliar repository before changing it - stack, build/test/run commands, entry points, data flow, conventions and how changes ship - and writes a short map. Use when starting work in a repo you have not seen, when asked to explain how a codebase works, onboard to a project, find where something lives, or before a first change in a large or legacy codebase. Not for reviewing a specific diff./code-review-changesReviews code changes (a pull request, merge request or diff) like a senior engineer - finds real bugs, security holes, data risks and breaking changes, verifies each one, and reports it with file:line, a concrete failure scenario and a suggested fix. Use when asked to review a PR, merge request, diff, branch, staged changes or patch, or to check code before merging. Also covers responding to review comments on your own PR./dependency-upgradesOther plugins' skills for the same job