pdf-qa
Skill1 starsChanged 56 days agoApache-2.0View on GitHub
Render every page of an existing PDF to PNG and gate delivery on recorded visual inspection. Use after generating or changing a PDF, before claiming a PDF report, document, diagram, or slide deck is complete, or when diagnosing clipping, overlap, broken glyphs, pagination, page-balance, or table-spacing defects. This skill validates PDFs; it does not author or repair their source.
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Run scripts/preflight.py to verify that Poppler provides pdfinfo and at least one of pdftocairo or pdftoppm.
- Very specific: line 16
Run scripts/render-pages.py --input <file.pdf> --output-dir <qa-dir> --source-ref <editable-source>.
- Very specific: line 18
Create one pdf-qa.inspection/v1 JSON record covering every rendered page and every required check.
- Very specific: line 20
If the final status is revise, return the issues to the source-producing skill, regenerate the PDF, and repeat from step 2.
- Very specific: line 24
Treat the initial render manifest as revise.
- Distinctive: line 29
Keep the PDF, editable source reference, rendered pages, render manifest, inspection record, and final QA manifest linked and available for …
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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 QA
Act as a gatekeeper. Never certify visual quality from PDF metadata, text extraction, OCR, or successful rendering alone.
Enforce the visual loop: Generate -> Render -> Inspect -> Fix -> Re-render.
Workflow
- Preserve the editable source and identify its relationship to the PDF. If the source is unavailable, record that limitation instead of inventing one.
- Run
scripts/preflight.pyto verify that Poppler providespdfinfoand at least one ofpdftocairoorpdftoppm. - Run
scripts/render-pages.py --input <file.pdf> --output-dir <qa-dir> --source-ref <editable-source>; use 180 DPI unless the artifact needs closer inspection. - Inspect every emitted page PNG visually. Use
view_imagewhen available. Read references/qa-checklist.md for the checks and inspection record shape. - Create one
pdf-qa.inspection/v1JSON record covering every rendered page and every required check. Record the rendered image SHA-256 so stale evidence cannot pass. - Run
scripts/record-inspection.py --manifest <qa-manifest.json> --inspection <inspection.json> --output <qa-final.json>. - If the final status is
revise, return the issues to the source-producing skill, regenerate the PDF, and repeat from step 2. Never patch the rendered PNG as the fix.
Gate Rules
- Treat the initial render manifest as
revise; rendering is evidence preparation, not inspection. - Require visual evidence for
clipping,overlap,glyph_integrity,page_balance, andtable_spacingon every page. - Accept only
visual_image_review,vision_model_review, orhuman_visual_reviewas inspection methods. Do not treat text-only or OCR-only methods as visual evidence. - Set
passonly when every required check on every rendered page is explicitly recorded aspassagainst the current image digest. - Set
revisewhen any check fails. Include a concrete page-level detail for every result. - Keep the PDF, editable source reference, rendered pages, render manifest, inspection record, and final QA manifest linked and available for reproduction.
Completion
Report PDF QA complete only when qa-final.json has status: pass, all pages were rendered at the recorded DPI, all image digests match the inspection, and no required check is missing. Otherwise report revise and the issue list.
In this repository65 other files it gives its agents.
- agent-evalSkill
- architecture-review-workflowSkill
- backend-code-review-workflowSkill
- code-authoring-routerSkill
- code-diagram-extractSkill
- codex-agent-runtimeSkill
- design-pattern-applySkill
- diagram-stylerSkill
- document-designerSkill
- e2e-evidence-reportSkill
- e2e-report-rendererSkill
- e2e-runnerSkill
- e2e-scenario-authorSkill
- e2e-test-workflowSkill
- entitySkill
- enumSkill
- explore-dead-codeSkill
- flywaySkill
- git-flowSkill
- harness-proposeSkill
- harness-refineSkill
- java-spring-review-workflowSkill
- knowledge-auditSkill
- korean-dev-writerSkill
- kotlin-code-authoringSkill
- kotlin-spring-reviewSkill
- kotlin-spring-review-workflowSkill
- learnSkill
- mapperSkill
- markdown-publisherSkill
- mermaid-diagramsSkill
- mssql-code-authoringSkill
- nl-sql-querySkill
- notion-domain-contextSkill
- oop-design-reviewSkill
- opensearch-code-authoringSkill
- opensearch-optimizationSkill
- opensearch-query-reviewSkill
- opensearch-review-workflowSkill
- opensearch-schema-reviewSkill
- playwright-e2eSkill
- postgres-code-authoringSkill
- postgres-query-reviewSkill
- postgres-review-workflowSkill
- postgres-risk-checkSkill
- postgres-schema-designSkill
- product-requirementsSkill
- product-ui-designSkill
- refactoring-catalogSkill
- repositorySkill
- requestSkill
- responseSkill
- retroSkill
- schema-doc-extractSkill
- security-scan-workflowSkill
- serviceSkill
- skill-updaterSkill
- start-taskSkill
- test-authoringSkill
- test-quality-refactoring-workflowSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

