Skill Definition WF1 - Dossier
Source: c92 skill-definition — wireframe 1. Argument: the definition is a document; read it where you read everything else about the skill. Frontmatter as a fact grid, the body rendered, raw one switch away, the supporting files a ledger beneath.
Definition
SKILL.md · 314 lines · 7.9 KB · within the 500-line guidanceWhat the harness reads when this skill triggers, as scanned on the canonical install (~/.claude/skills/pdf). Frontmatter first, body beneath.
This guide covers essential PDF processing operations using Python libraries and command-line tools. For advanced features, JavaScript libraries, and detailed examples, see REFERENCE.md. If you need to fill out a PDF form, read FORMS.md and follow its instructions.
from pypdf import PdfReader, PdfWriter
# Read a PDF
reader = PdfReader("document.pdf")
print(f"Pages: {len(reader.pages)}")
# Extract text
text = ""
for page in reader.pages:
text += page.extract_text()Merge PDFs
writer = PdfWriter()
for pdf_file in ["doc1.pdf", "doc2.pdf"]:
reader = PdfReader(pdf_file)
for page in reader.pages:
writer.add_page(page)
with open("merged.pdf", "wb") as output:
writer.write(output)Use scripts/extract_form_structure.py to dump the field tree before filling a form, and scripts/check_bounding_boxes.py to validate placement afterwards.
pdftotext -layout in.pdf out.txtkeeps column layoutqpdf --decrypt --password=… in.pdf out.pdfstrips owner encryptiongs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebookcompresses for email
Run OCR (ocrmypdf --skip-text) first; the extraction recipes above only see the text layer.
Bundle
12 files · 48.8 KBEverything else in the skill directory — references the body points to, scripts it can run, assets it copies. Open a row for the raw file.
Readout
Strongest default. It keeps the page one reading column and the ledger idiom every sibling detail page already has, so a multi-file skill is just one more ledger with a preview drawer. Rendered-first matches how a person reads instructions; raw is a mode, not a place. Weakest on drift — it assumes one definition per name (WF4's problem) and on load-order literacy (WF3's).
Costs: the inspector must ship the SKILL.md body (capped), every frontmatter field verbatim, and a file inventory (path, bytes, lines, mode, referenced-from-line) per install; previews of supporting files are a second, on-demand fetch.