CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

testing-principles

This guidance covers test selection and proof boundaries, test design, mocking, data-layer verification, organization, and regression testing. It is intended for writing tests, deciding test scope, and reviewing test quality, including component and UI E2E tests.

Quality

80%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./dev-workflows-fullstack/skills/testing-principles/SKILL.md

The canonical home for this skill is testing-principles in shinpr/claude-code-workflows

SKILL.md
Quality
Evals
Security

Quality

Content

71%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A lean, well-organized principles reference that defers frontend and E2E specifics to clearly signaled, verified one-level-deep reference files. Its weakest point is actionability: rules are specific but abstract jargon (proof boundary, capability probe) and the absence of any good-vs-bad test example leave gaps in applying them.

Suggestions

Add one compact good-vs-brittle test example (a few lines) under Test Design Rules to ground the abstract rules like independently derived oracles and proof ownership.

Expand the Capability Probe Postconditions section with a one-line concrete pass/fail example, since 'asserts the exact property that consumer needs' is currently unillustrated.

Clarify application order, e.g. a short lead-in stating rules are applied in the order selection → design → boundaries when writing or reviewing a test.

DimensionReasoningScore

Conciseness

The body is dense rule-statements with no padding and no explanations of concepts Claude already knows (no "what is a unit test" material), so it sits at 'efficient; minor instances that could be trimmed'. It is not a 5 because a few justification clauses (e.g. "A disconnected action, lost state update or broken transition can remain invisible to tests below that boundary") and the long proof-boundary bullet could be tightened without losing guidance.

4 / 5

Actionability

As an instruction-only skill it has many specific directives ("Mock direct external I/O boundaries", "Structure each test as Arrange, one Act, and Assert"), but there are no worked examples of a good vs. brittle test, and jargon-bearing rules like the Capability Probe Postconditions section and "proof boundary" are stated without the key details needed to apply them. It is not a 4 because the guidance, while specific, stops short of the concrete, ready-to-apply level the anchor demands, and not a 2 because the rules are directive rather than high-level hints.

3 / 5

Workflow Clarity

Sections follow a coherent loose lifecycle (selection → design → mocking → data layer → verification → organization → regression) with each rule unambiguous, and decision/escalation points are explicit ("report the missing verification decision", "record the reason and the alternative..."). It is not a 5 because no explicit ordering guidance tells a reader which rule to apply first when writing a test, and there are no checkpoints of the validate-and-retry kind; it is not a 3 because sequencing and decision rules are present and clear, not merely implicit.

4 / 5

Progressive Disclosure

The body is a well-sectioned overview whose References section cleanly defers frontend and E2E detail to two real, one-level-deep files, each clearly signaled with a 'read when...' condition (verified: references/frontend.md and references/e2e.md exist and do not chain to further files). This matches the anchor of a clear overview with well-signaled one-level-deep references and easy navigation.

5 / 5

Total

16

/

20

Passed

Description

78%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A well-formed description with an explicit 'Use when' trigger clause and genuinely natural trigger phrases. Its main weakness is that the capability list leans on abstract nouns ("test quality", "proof ownership") rather than concrete actions, and it lacks common testing vocabulary variations like unit or integration tests.

Suggestions

Make the 'what' clause more action-concrete, e.g. "Decide which tests a change needs (unit vs integration vs E2E), design non-brittle tests, and own each behavioral claim with exactly one test".

Add missing natural trigger variations such as "unit tests", "integration tests", or "test coverage" to broaden keyword coverage.

Sharpen the niche boundary so it clearly yields to framework-specific or code-review skills when those apply.

DimensionReasoningScore

Specificity

The description names the domain and some action-oriented items ("choosing which tests a change needs", "reviewing test quality") but two of its three capability nouns are abstract ("test quality", "proof ownership"), matching 'names domain and 1-2 concrete actions' rather than the several-concrete-actions pattern of a 4. It is not a 2 because it goes well beyond a bare domain label.

3 / 5

Completeness

Both halves are explicit: the what ("Language-agnostic testing principles for choosing which tests a change needs, test quality, and proof ownership...") and a concrete when ("Use when writing tests, deciding test scope, or reviewing test quality"), matching the anchor-5 pattern of what + explicit trigger phrases. It is not a 4 because the 'when' clause is already explicit and specific, not merely implied or generic.

5 / 5

Trigger Term Quality

Natural phrases users would actually say are present: "writing tests", "deciding test scope", "reviewing test quality", "frontend and UI E2E tests". It falls short of comprehensive because common variations like "unit tests", "integration tests", or "test coverage" are absent.

4 / 5

Distinctiveness Conflict Risk

The niche (test selection, test quality, proof ownership, frontend/UI E2E) with distinct trigger phrases is mostly distinguishable, but "language-agnostic" plus "reviewing test quality" leaves minor overlap risk with closely related skills such as code-review or framework-specific testing skills. It is not a 5 because the domain is broad enough that testing-adjacent requests could route to it over a more specialized skill.

4 / 5

Total

16

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

shinpr/claude-code-workflows

Path

dev-workflows-fullstack/skills/testing-principles/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.