CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

testland/pdf-snapshot-tester

Use when generated PDFs (invoices, contracts, regulatory filings) must not shift layout, or a template, font or PDF library is changing. Renders pages to images and pixel-diffs them against approved baselines, strips volatile metadata, and compares HTML-to-PDF engines.

Quality

91%

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

Overview
Quality
Evals
Security
Files

Quality

Content

85%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 well-structured, highly actionable skill body: sequenced steps with validation, a realistic worked example with an error-recovery loop, an anti-patterns table, and clean progressive disclosure into two genuine reference files. The remaining issues are small: a summary list that duplicates the step sections, an undefined pixel_diff_img helper in Step 6, and mismatched diff thresholds between the helper default and the assertion.

Suggestions

Define or rename pixel_diff_img in Step 6 to match the Step 3 pixel_diff helper (or show the in-memory variant), and align the default threshold (0.001) with the asserted threshold (0.005) so copy-pasted code is consistent.

Trim the 'How to use' list to a one-line orientation (or remove it) since Steps 1-6 restate the same instructions in detail, saving tokens without losing information.

Consider adding 'snapshot' / 'visual regression' phrasing to the description so users searching with those common terms trigger the skill.

DimensionReasoningScore

Conciseness

The body is code-forward and assumes Claude's competence (e.g., no explanation of what PDFs or Pillow are), but the 'How to use' numbered list duplicates the detailed Step 1-6 sections that follow, and a few asides ('the workhorses for PDF to image') add little. This matches level 4 ('efficient; minor instances that could be trimmed') better than level 5's every-token-earns-its-place.

4 / 5

Actionability

Concrete, executable guidance throughout: install commands, render code, a working pixel_diff implementation, a pytest test, and an update-baseline workflow. It stops short of level 5 because Step 6 calls pixel_diff_img() which is never defined (Step 3 defines path-based pixel_diff()), and the diff threshold defaults are inconsistent (0.001 in pixel_diff vs 0.005 in the assertion).

4 / 5

Workflow Clarity

Steps 1-6 are clearly sequenced with an assertion checkpoint (Step 4), and the worked example demonstrates an explicit feedback loop: diff fails, diagnose with pdfinfo -list-embedded-fonts to rule out font substitution, fix, re-run until under threshold, then refresh baselines. The opt-in UPDATE_PDF_BASELINES mode guards the baseline-overwrite operation, matching the level-5 anchor.

5 / 5

Progressive Disclosure

The body is a well-organized overview with two real, one-level-deep reference files (deterministic-rendering.md, cross-engine-regression.md) that are clearly signaled at point of use and summarized in a References section; verified the referenced files exist and do not nest further references. Advanced material (metadata stripping, cross-engine setups) is appropriately split out, matching the level-5 anchor.

5 / 5

Total

18

/

20

Passed

Description

92%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 combines an explicit 'Use when' trigger clause covering layout-regression and tooling-change scenarios with four concrete capability statements in third-person voice. The only gap is minor — a few natural synonyms (snapshot, visual regression, .pdf) that would broaden trigger matching.

DimensionReasoningScore

Specificity

The description lists four concrete actions ('Renders pages to images', 'pixel-diffs them against approved baselines', 'strips volatile metadata', 'compares HTML-to-PDF engines'), covering the full workflow comprehensively. It exceeds the level-4 anchor ('several specific actions; minor gaps') because no meaningful capability of the skill is left unmentioned.

5 / 5

Completeness

It explicitly answers 'when' with a concrete 'Use when...' clause listing trigger scenarios, and 'what' with four specific capabilities. This matches the level-5 anchor (both what and when with concrete trigger phrases) and is clearly above level 4, where the 'when' would be less explicit.

5 / 5

Trigger Term Quality

Natural trigger phrases are present ('invoices, contracts, regulatory filings', 'must not shift layout', 'a template, font or PDF library is changing') and users would plausibly say them. It falls short of the level-5 anchor because common synonyms like 'snapshot', 'visual regression', or a file extension (.pdf) do not appear in the description text itself.

4 / 5

Distinctiveness Conflict Risk

The niche (layout regression testing of generated PDFs) is distinct with dedicated triggers (baseline diffing, engine comparison, font/library changes), giving minimal overlap risk with PDF extraction or creation skills. It fits the level-5 'clear niche with distinct triggers' anchor better than level 4's 'minor overlap risk with closely related skills'.

5 / 5

Total

19

/

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