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
Low

W011: Exposure to untrusted third-party content

What this means

The skill exposes the agent to untrusted, user-generated content from public third-party sources, creating a risk of indirect prompt injection. This includes browsing arbitrary URLs, reading social media posts or forum comments, and analyzing content from unknown websites.

Why it was flagged

The required workflow reads a unified diff of a branch or PR that the user produces locally (`git diff origin/main...HEAD`), and the agent then opens the code at missing lines, so PR contributors' code and comments could reach the LLM, though the user chooses what to diff and no outsider can push into a monitored queue.

Where we found it

unified diff of the branch/PR (change.patch) produced with `git diff origin/main...HEAD`

content-type · 4 sites

The required workflow has the user capture a unified diff of the branch/PR into change.patch and the bundled script reads that file at runtime and acts on it — its added lines drive the entire report.

SKILL.md

23

A unified diff of the change: `git diff origin/main...HEAD > change.patch`.

31

python3 scripts/diff_coverage.py --diff change.patch --coverage coverage.xml --fail-under 80

scripts/diff_coverage.py

8

python3 diff_coverage.py --diff change.patch --coverage coverage.xml

269

with open(diff_path, encoding="utf-8-sig") as handle:

project source code at the missing lines, opened by the agent after the run

content-type · 1 site

Workflow step 4 explicitly instructs the agent to open the source files at the missing line numbers and reason about them, so the code text of the changed files (which in the PR use case is contributor-written) is ingested into the LLM context.

SKILL.md

48

Then open the missing lines in the code and say what test would exercise each

Report incorrect finding
Audited
Security analysis
Snyk