CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

pdf-generation

Use when creating a PDF report, handout, or poster with Python, or when merging, splitting, rotating, watermarking, encrypting, filling forms in, or extracting tables from an existing PDF inside the Notebook. Covers ReportLab layout with embedded Unicode/CJK fonts, pypdf and pdfplumber processing, page rendering for visual QA, and Artifact delivery. For reading or citing a library paper, prefer read_document, list_pdf_elements, and read_library_pdf.

Quality

97%

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

SKILL.md
Quality
Evals
Security

Quality

Content

92%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 strong, dense body: executable code for every common case, a validated render-inspect-fix QA loop, correct use of one-level-deep references, and environment-specific knowledge throughout. The only weakness is mild token inefficiency from a duplicated font-embedding rationale and small dead weight in the code template.

Suggestions

State the font-embedding/preview rationale once: the point appears both in 'Creating a report' ('the Open Science preview may not display unembedded CJK text') and again in 'Artifact delivery' ('Fonts that are not embedded are substituted by the viewer, so use register_pdf_fonts') — keep one and cross-reference it.

Trim the ReportLab template of unused elements, e.g. the `caption` ParagraphStyle is defined but never used in the story; either show a caption usage (a figure + caption pattern is one of the stated rules) or drop the style.

DimensionReasoningScore

Conciseness

The body assumes Claude's competence — no 'what is a PDF' filler, no library tutorials — and concentrates on environment-specific knowledge (notebook_execute/kernelSkillIds, bundled fonts, pdf.js preview behavior) and defect-preventing rules. Minor trimmable instances keep it below anchor 5: the font-embedding rationale is stated twice ('the Open Science preview may not display unembedded CJK text' in Creating vs 'Fonts that are not embedded are substituted by the viewer' in Artifact delivery), and the template defines a `caption` style the example never uses.

4 / 5

Actionability

Fully executable throughout: a complete copy-paste ReportLab template, concrete pypdf/pdfplumber snippets, exact helper signatures in a table, and QA steps with exact calls ('inspect_pdf("report.pdf")', 'render_pdf_pages("report.pdf", "qa/report")', 'await host.viewImage({ path: … })'). Delivery specifies mimeType and producerRunId, and the common cases (report creation, merge/split/rotate, tables, forms) are all covered with runnable code.

5 / 5

Workflow Clarity

The visual-QA workflow is a numbered sequence with explicit validation checkpoints ('Confirm the page count, unembedded_fonts == [], and text previews that contain the expected text'), a defect checklist, and a feedback loop ('Fix the generator code and rebuild; do not patch the output PDF'). Processing adds conditional validation ('Before transforming an unknown PDF, call inspect_pdf. If likely_scanned is true… OCR is required'), matching the anchor-5 pattern of sequence + checkpoints + error recovery.

5 / 5

Progressive Disclosure

The body is a well-organized overview with exactly two one-level-deep references (references/forms.md, references/processing.md), both real files, both clearly signaled as markdown links where relevant in the tool table and text, and neither containing further nested references. Advanced recipes (cropping, bookmarks, OCR, troubleshooting) are appropriately deferred to processing.md rather than inlined.

5 / 5

Total

19

/

20

Passed

Description

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

An exemplary description: it pairs an explicit, trigger-rich 'Use when' clause with a concrete capability inventory naming tools and operations, and even includes boundary guidance steering reading/citation tasks to other tools. Dense without padding, and every clause carries either a trigger or a capability.

DimensionReasoningScore

Specificity

Enumerates many concrete actions — 'creating a PDF report, handout, or poster', 'merging, splitting, rotating, watermarking, encrypting, filling forms in, or extracting tables' — plus library-level specifics ('ReportLab layout with embedded Unicode/CJK fonts, pypdf and pdfplumber processing'). This is comprehensive coverage of the domain, exceeding the anchor-4 case of 'several specific actions with minor gaps'.

5 / 5

Completeness

Explicitly answers 'when' with a concrete 'Use when…' clause enumerating trigger scenarios, and 'what' with 'Covers ReportLab layout… pypdf and pdfplumber processing, page rendering for visual QA, and Artifact delivery'. Both halves are explicit with concrete trigger phrases, matching the anchor-5 example exactly; anchor 4 requires the 'when' to be only implicit, which it is not.

5 / 5

Trigger Term Quality

Natural user phrasings are densely covered: 'PDF report', 'handout', 'poster', 'merging', 'splitting', 'rotating', 'watermarking', 'encrypting', 'filling forms', 'extracting tables' — well beyond the anchor-4 example's three generic terms. The only missing variants are trivial ('.pdf' extension, plural 'PDFs'), which does not drop it below comprehensive.

5 / 5

Distinctiveness Conflict Risk

It occupies a clear niche (PDF creation/processing 'inside the Notebook') and actively reduces conflict risk with the redirect 'For reading or citing a library paper, prefer read_document, list_pdf_elements, and read_library_pdf'. Minimal chance of triggering for the wrong skill.

5 / 5

Total

20

/

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

aipoch/open-science

Path

resources/skills/pdf-generation/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.