pdf-artifact-workflow
Skill0 starsChanged 7 months agoApache-2.0View on GitHub
Guardrail for choosing the right PDF path for read/extract, create, review, or verify tasks, with render-first proof when layout matters and OCR as an explicit branch for scan-derived or image-only PDFs.
In this repository57 other files it gives its agents.
- ai-app-integrationSkill
- anti-llm-frontend-designSkill
- aspnet-core-web-developmentSkill
- async-python-patternsSkill
- browser-game-foundationsSkill
- browser-local-qaSkill
- build-mcp-server-sdk-v2Skill
- canva-design-opsSkill
- check-completionSkill
- cli-tool-creatorSkill
- cloudflare-agents-mcpSkill
- cloudflare-durable-objectsSkill
- cloudflare-workers-platformSkill
- deployment-preview-workflowsSkill
- docx-document-artifactsSkill
- durable-workflow-orchestrationSkill
- dynamic-og-imagesSkill
- eval-auditSkill
- evaluate-ragSkill
- figma-design-to-code-rulesSkill
- fine-tuningSkill
- frontend-product-builderSkill
- game-asset-pipeline-expansionSkill
- game-ui-playtestSkill
- generate-synthetic-dataSkill
- github-pr-ci-opsSkill
- gmail-inbox-opsSkill
- golden-datasetSkill
- huggingface-llm-trainerSkill
- javascript-monorepo-buildsSkill
- linear-issue-managementSkill
- media-generation-transcriptionSkill
- millrace-rs-contract-paritySkill
- minecraft-mod-qa-automationSkill
- notion-workspace-flowsSkill
- openai-docsSkill
- optimize-agentic-cliSkill
- phaser-2d-game-developmentSkill
- postgres-query-performanceSkill
- product-ui-polish-reviewSkill
- pydantic-v2-patternsSkill
- python-repo-refactoring-hygieneSkill
- rag-corpus-hygieneSkill
- react-next-performance-reviewSkill
- rust-best-practicesSkill
- shadcn-ui-compositionSkill
- skill-evaluation-harnessSkill
- tauri-desktopSkill
- tauri-mcp-cliSkill
- tauri-ptySkill
- tile-pixel-art-transitionsSkill
- train-sentence-transformersSkill
- typer-cli-patternsSkill
- using-dbt-for-analytics-engineeringSkill
- validate-evaluatorSkill
- visual-asset-pipelineSkill
- watchdog-file-watcher-patternsSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
If layout or visual correctness matters, render pages first.
- Distinctive: line 43
Treat OCR as a separate branch for scanned or image-only PDFs before trusting text extraction.
- Distinctive: line 44
Stop once one authoritative signal proves the claim.
- Distinctive: line 51
Do not skip a render check after generation or edit when visual correctness matters.
- Distinctive: line 52
Do not widen into a general office, publishing, or PDF-course handbook.
- Distinctive: line 53
Do not treat a successful save, a text dump, or a metadata readout as layout proof.
- Distinctive: line 54
When layout is the question, inspect the page image first and the extracted text second.
- Distinctive: line 76
Use extraction tools to confirm content, page numbers, or metadata after the render check when needed.
- Distinctive: line 77
If the PDF is scanned or image-only, OCR it before making text claims.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PDF Artifact Workflow
Purpose
Help agents choose the right PDF path for read/extract, create, review, or verify tasks, then prove the result with the smallest honest evidence set. This skill is a guardrail, not a PDF manual.
Use When
- layout, page order, headers, footers, tables, annotations, or metadata matter
- the task needs OCR judgment for a scan-derived or image-only PDF
- the work involves creating a PDF artifact or checking a rendered output
- you need to decide whether render-first or extraction-first proof is appropriate
Do Not Use When
- the task is plain text drafting with no PDF artifact boundary
- another more specific skill already owns the workflow
- the question is generic document advice without render, extraction, or OCR concerns
Quick Start
- Classify the request as
read/extract,create,review, orverify. - If layout or visual correctness matters, render pages first; if not, use extraction or metadata as secondary evidence.
- Choose the smallest tool chain that fits the source:
pdftoppmor Poppler for rendering,reportlabfor generation,pdfplumberorpypdffor extraction and metadata. - For
createor edit tasks, separate born-digital, exported, and scanned or image-only PDFs before choosing the path. - Treat OCR as a separate branch for scanned or image-only PDFs before trusting text extraction.
- Stop once one authoritative signal proves the claim; do not re-prove layout with extraction alone.
- End with the next verifier and the evidence artifact it should capture.
Operating Constraints
- Rendered pages are the authority for layout, not extracted text.
- Extraction tools are for text, metadata, and quick checks; they do not prove page fidelity.
- OCR is explicit, not implied: if the source is scan-derived or image-only, OCR before treating text as trustworthy.
- Do not skip a render check after generation or edit when visual correctness matters.
- Do not widen into a general office, publishing, or PDF-course handbook.
- Do not treat a successful save, a text dump, or a metadata readout as layout proof.
- When layout is the question, inspect the page image first and the extracted text second.
Inputs This Skill Expects
- The task goal and whether the PDF is being read, created, reviewed, or verified.
- Whether the source is born-digital, exported, or scanned or image-only.
- Whether the claim is visual, structural, textual, or metadata-related.
- The smallest evidence surface the next verifier needs.
- Any constraints on page order, headers, footers, tables, annotations, or clipping.
Output Contract
- A clear mode choice:
read/extract,create,review, orverify. - The first tool or verifier to run.
- The evidence artifact that actually proves the claim.
- For creation or edits, a note that rendering was checked after generation or change.
- For OCR-dependent PDFs, an explicit OCR branch before text extraction.
- A next-verifier handoff that names the artifact to capture.
Procedure
- Decide whether the job is about reading, creating, reviewing, or verifying a PDF.
- For
read/extractwork, decide whether render evidence, extraction, metadata, or OCR is primary. - For
creatework, choose the PDF generation path first, then render the result and inspect page order, headers, footers, spacing, and tables. - For
revieworverifywork, render the pages and compare them against the claim before trusting any extracted text or metadata. - Use extraction tools to confirm content, page numbers, or metadata after the render check when needed.
- If the PDF is scanned or image-only, OCR it before making text claims.
- Finish by naming the next verifier and the artifact it should capture.
Pitfalls And Gotchas
- Rejected trope: trusting text extraction alone to prove layout fidelity.
- Better alternative: render pages and inspect the page images for the actual layout.
- Rejected trope: skipping render checks after generating a PDF.
- Better alternative: render the finished file and verify the visual result before delivery.
- Rejected trope: assuming scanned PDFs already have trustworthy text.
- Better alternative: branch to OCR explicitly and treat the OCR output as a separate claim from the page image.
- Rejected trope: checking only one page when page order, footers, or tables vary across the document.
- Better alternative: inspect the pages that can prove the claim, including the boundary pages.
Progressive Disclosure
Start with the smallest honest proof surface: render when layout matters, extract when text or metadata is the claim, and add OCR only when the source demands it. Expand only enough to answer the task directly, and keep the skill compact so it stays a guardrail instead of a PDF manual.
Verification Pattern
- Confirm the chosen mode matches the request.
- Confirm layout claims were checked on rendered pages, not just extracted text.
- Confirm OCR was explicit for scan-derived or image-only PDFs.
- Confirm page order, headers, footers, tables, annotations, and metadata were checked only when relevant.
- Next verifier:
pdftoppmor the equivalent Poppler renderer. - Evidence artifact: page PNGs, plus extraction or metadata notes only where they add proof.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

