CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

test-coverage

MUST be used whenever fixing test coverage for a Flows app to meet the 80% line coverage hard gate. This skill finds AND fixes coverage gaps — it configures tooling, writes missing tests, covers untested paths, and refactors code for testability. It does not just report. Triggers: test coverage, fix tests, write tests, add tests, coverage fix, 80% coverage, coverage gate, missing tests, testability, vitest coverage, jest coverage.

Quality

85%

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

70%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 highly actionable, well-sequenced workflow with strong validation checkpoints and a clear gate criterion. The main costs are token weight from generic test templates that could live in a reference file and one reporter/parse inconsistency between Steps 1 and 5.

Suggestions

Move the hook/service/component test example templates and the testability issue→fix table into a references/ file (e.g. references/test-patterns.md), keeping only one short exemplar per pattern in SKILL.md to cut roughly a third of the body.

Fix the reporter inconsistency: add 'json-summary' to the Step 1 coverage reporter list so Step 5's coverage/coverage-summary.json parse actually has input, or parse the lcov report instead.

De-duplicate the coverage exclude array, which appears verbatim in both Step 1 and Step 2 — define it once and reference it.

DimensionReasoningScore

Conciseness

The body is mostly tight commands and config, but ~120 lines of generic test templates (hook/service/component example structures using renderHook, QueryClientProvider wrappers, describe/it blocks) re-explain standard Vitest/React Testing Library patterns Claude already knows, and the coverage `exclude` array is printed twice. This matches 'mostly efficient but includes some unnecessary explanation or could be tightened' rather than score 4, where only minor trimming would be needed.

3 / 5

Actionability

Guidance is largely copy-paste ready: bash commands, exact config snippets, per-file-type test patterns, and a concrete fix table for testability issues. It falls short of 5 due to internal inconsistency: Step 1 configures reporters `['text', 'text-summary', 'lcov']` (no json-summary) while Step 5 parses `coverage/coverage-summary.json`, which that reporter set never produces — a concrete command that can silently fail.

4 / 5

Workflow Clarity

Seven clearly sequenced steps each end in explicit validation with feedback loops: 'Re-run tests after each fix until all tests pass', 'run npx vitest run <test-file> to verify it passes', 'Repeat until each file reaches at least 80%', and a final re-run with a PASS/FAIL verdict and summary checklist. This matches the anchor with explicit validation steps, error-recovery loops, and a checklist for a batch file-modifying process.

5 / 5

Progressive Disclosure

No references/, scripts/, or assets/ files exist and the body references none, so all ~365 lines live in SKILL.md. Section headers are clear, but content that belongs in a separate reference — the ~120 lines of test example templates and the testability refactor table — is inlined. This matches 'some structure but... content that should be separate is inline'; it is not 4 because nothing is split out at all.

3 / 5

Total

15

/

20

Passed

Description

96%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 both what the skill does and when to use it in third person, lists comprehensive concrete actions, and provides an explicit trigger list with tool-specific variants. The only weakness is a few overly broad trigger terms ('write tests', 'add tests') that create minor conflict risk with general testing skills.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions — 'configures tooling, writes missing tests, covers untested paths, and refactors code for testability' — comprehensively covering the skill's capabilities, matching the score-5 anchor (multiple specific concrete actions, comprehensive coverage). It does not fall to 4 because no meaningful capability gap remains unstated.

5 / 5

Completeness

It explicitly answers 'what' ('finds AND fixes coverage gaps — it configures tooling, writes missing tests, covers untested paths, and refactors code for testability') and 'when' ('MUST be used whenever fixing test coverage for a Flows app to meet the 80% line coverage hard gate' plus an explicit Triggers list), exactly matching the score-5 anchor. Voice is third person ('This skill finds...'), so no voice penalty applies.

5 / 5

Trigger Term Quality

The trigger list covers natural phrasings users would say ('test coverage', 'fix tests', 'write tests', 'add tests', 'coverage fix', 'missing tests', 'testability') plus synonyms, the numeric gate ('80% coverage', 'coverage gate'), and tool-specific variants ('vitest coverage', 'jest coverage') — matching the comprehensive-with-synonyms-and-tools anchor. Score 4 would require noticeable missing natural terms, which is not the case.

5 / 5

Distinctiveness Conflict Risk

The 'Flows app' + '80% line coverage hard gate' framing establishes a clear niche with mostly distinct triggers, but generic trigger phrases like 'write tests' and 'add tests' could fire for ordinary test-writing requests unrelated to coverage fixing — minor overlap risk with a general testing skill, matching the score-4 anchor ('mostly distinct; minor overlap risk with closely related skills'). It does not reach 5 because those broad triggers are not uniquely tied to this skill's purpose.

4 / 5

Total

19

/

20

Passed

Validation

87%

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

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

allowed_tools_field

'allowed-tools' contains unusual tool name(s)

Warning

metadata_version

'metadata.version' is missing

Warning

Total

14

/

16

Passed

Repository

cognitedata/builder-skills

Path

skills/test-coverage/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.