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

82%

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

SKILL.md
Quality
Evals
Security

Quality

Content

72%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.

The body is a dense, actionable rulebook with exemplary progressive disclosure — two real, one-level-deep references each gated by a clear read-when condition. Its main weaknesses are the absence of an explicitly sequenced workflow with validation checkpoints, and a few overlong compound passages that could be tightened or clarified.

Suggestions

Add an explicit ordered workflow (e.g., select tests for the change, design them, apply mock/boundary rules, verify, then check regression coverage) so the section order becomes a usable sequence with validation checkpoints.

Break the ~120-word Test Selection bullet into separate rules or a short decision list so each instruction is independently readable.

Clarify the 'Capability Probe Postconditions' subsection with one concrete example of a passing vs. setup-only probe, since it currently reads as cryptic.

DimensionReasoningScore

Conciseness

The body is dense with no padding about concepts Claude already knows and no time-sensitive details, but a few passages could be trimmed — notably the ~120-word compound bullet in Test Selection ("Determine the required proof boundary from the accepted outcome before minimizing tests...") and the rationale-heavy opener about brittle tests becoming false requirements. This fits anchor 4's 'minor instances of over-explanation that could be trimmed' better than anchor 3, since nearly all content is non-obvious guidance rather than unnecessary explanation.

4 / 5

Actionability

As an instruction-only skill, the guidance is directive and specific ("Mock direct external I/O boundaries; keep internal business logic and the boundary under test real", "Locate UI elements... by accessible role and name or label, then by stable test IDs", "Add a regression test for every reproducible behavior bug fix"), which justifies anchor 4 despite the absence of code. It is not anchor 5 because some rules are judgment-level abstractions and the 'Capability Probe Postconditions' subsection is cryptic without a concrete example.

4 / 5

Workflow Clarity

Sections imply a progression (selection, design, mocking, data layer, verification, organization, regression) but there is no explicit sequence, and validation checkpoints are implicit ("rerun it after the change", "restore tests disabled only to bypass a failure") rather than structured. The rules themselves are well-defined, ruling out anchor 2, but the missing or implicit checkpoints match anchor 3.

3 / 5

Progressive Disclosure

The body keeps core principles inline and splits frontend and E2E detail into two references (references/frontend.md, references/e2e.md), both verified to exist, exactly one level deep, and clearly signaled in a References section with explicit 'read when' trigger conditions. This matches anchor 5's clear overview with well-signaled one-level-deep references.

5 / 5

Total

16

/

20

Passed

Description

83%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 strong description: it states concrete capability areas, includes an explicit 'Use when' clause with natural trigger phrases, and occupies a distinct niche. Minor room for improvement in adding a few more natural trigger synonyms and sharpening the capability verbs.

Suggestions

Add a few common natural trigger variations such as 'unit tests', 'test coverage', or 'deciding what to test' to broaden keyword coverage.

Use more verb-driven capability phrasing (e.g., 'Selects, designs, and reviews tests...') instead of topic-noun phrasing like 'test quality, and proof ownership'.

DimensionReasoningScore

Specificity

The description names several specific capabilities ("choosing which tests a change needs, test quality, and proof ownership, including frontend and UI E2E tests"), going beyond the 1-2 actions of anchor 3. It falls short of anchor 5 because these are topic areas rather than a comprehensive list of verb-driven concrete actions.

4 / 5

Completeness

It explicitly answers both questions: a clear "what" (testing principles for test selection, test quality, and proof ownership, including frontend and UI E2E tests) and an explicit "Use when..." clause with three concrete trigger conditions. The "when" is already explicit and specific, so it does not fit anchor 4's "could be more explicit".

5 / 5

Trigger Term Quality

It includes natural phrases users would say — "writing tests", "deciding test scope", "reviewing test quality", "E2E tests" — giving good keyword coverage. A few natural terms are missing (e.g., "unit tests", "test coverage", "TDD"), keeping it below the comprehensive anchor 5.

4 / 5

Distinctiveness Conflict Risk

"Language-agnostic testing principles" with test-writing/test-scope/test-review triggers carves a mostly distinct niche with minor overlap risk against generic code-review or framework-specific testing skills. The fairly broad phrase "test quality" keeps it from the minimal-conflict anchor 5.

4 / 5

Total

17

/

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

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.