CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

trysac/diff-coverage

Measure test coverage of only the lines a change adds, by joining a unified diff with a Cobertura XML or coverage.py JSON report. Use when asked for diff coverage, patch coverage, or whether the new lines of a PR are tested.

Quality

95%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Overview
Quality
Evals
Security
Files

Quality

Scored by GLM 5.3

Content

100%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 content is exemplary: a lean, fully executable workflow with exact commands, output samples, exit codes, and recovery guidance for known failure modes, with detail correctly deferred to a single well-signaled reference file. No padding, no over-explanation, no structural issues.

DimensionReasoningScore

Conciseness

The body never explains concepts Claude already knows (no primer on coverage or diffs); every line states skill-specific behavior such as "The coverage format is detected from the first character: `<` is Cobertura XML, `{` is coverage.py JSON" and "The percentage is rounded half up to one decimal". It assumes competence and every section earns its place, matching anchor 5.

5 / 5

Actionability

The workflow gives copy-paste-ready commands for producing both inputs (`git diff origin/main...HEAD > change.patch`, `coverage run -m pytest`, `coverage xml`), an exact invocation (`python3 scripts/diff_coverage.py --diff change.patch --coverage coverage.xml --fail-under 80`), documented options, a sample output, and the full exit-code table. This matches anchor 5's fully executable, common-case-covering guidance.

5 / 5

Workflow Clarity

The five-step sequence (produce inputs, run, read output, report, interpret exit codes) is unambiguous, and failure modes carry explicit recovery guidance: unmeasured files come with "check that the report was produced from the same checkout and that source paths line up", and exit codes 0/1/2 are enumerated. This is a read-only, non-destructive single-task skill, so the validation cap does not apply and it matches anchor 5 (with the simple-skill exception).

5 / 5

Progressive Disclosure

The body keeps the workflow inline and moves matching rules, input limits, and error-code details to a clearly signaled, one-level-deep reference ([references/how-it-works.md], verified to exist with no nested references), with the bundled script at scripts/diff_coverage.py. The split is appropriate and navigation is easy, matching anchor 5.

5 / 5

Total

20

/

20

Passed

Description

87%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 precisely states a single well-scoped capability with concrete input formats, and pairs it with an explicit, natural-language trigger clause. The only soft spots are slightly limited synonym coverage in the triggers and a single-action (rather than multi-action) capability list.

Suggestions

Add one or two natural trigger synonyms such as "incremental coverage" or "test coverage of the changes" to broaden keyword coverage.

Consider mentioning the output capability (per-file missing-line report usable in PR comments) as a second concrete action to round out the capability list.

DimensionReasoningScore

Specificity

"Measure test coverage of only the lines a change adds, by joining a unified diff with a Cobertura XML or coverage.py JSON report" states one precisely scoped action with concrete mechanisms and both supported input formats. It is noticeably more specific than the anchor-3 example ("Processes PDF files and extracts content"), but it does not list several distinct actions, so it falls short of anchor 5.

4 / 5

Completeness

The first sentence explicitly answers "what" (measure coverage of added lines by joining a diff with a coverage report) and the "Use when asked for..." clause explicitly answers "when" with concrete trigger phrases. This matches anchor 5 exactly; it is clearly above anchor 4, where the "when" is only loosely specified.

5 / 5

Trigger Term Quality

"Use when asked for diff coverage, patch coverage, or whether the new lines of a PR are tested" covers the two standard names for the metric plus a natural question phrasing. A few natural variants (e.g., "incremental coverage", "are my changes tested") are missing, matching anchor 4 rather than the comprehensive synonym coverage of anchor 5.

4 / 5

Distinctiveness Conflict Risk

"Measure test coverage of only the lines a change adds" carves out a clear niche distinct from whole-project coverage tooling, and triggers like "diff coverage" and "patch coverage" are unambiguous. Conflict risk with generic test/coverage skills is minimal, matching anchor 5.

5 / 5

Total

18

/

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.

Reviewed

On this page