Extract a template package from a PDF
Input: one .pdf. Output: a loadable skill package whose instructions and
resources match the selected reuse scope.
If the original .docx exists, use ../docx/SKILL.md instead. For slide PDFs,
use ../presentation/SKILL.md unless the user requested a document template.
Run every command below from extract-template/pdf/.
Create page images to inspect the document's layout, typography and fillable
areas, then choose the reuse scope. Keep the original for text and geometry.
Reuse existing source captures; otherwise render once at the original page
proportions:
node ../scripts/render-document.mjs --input <source.pdf> --out source-render
Inspect the returned page images; the returned PDF is also available for reference.
Use a new output directory for each render.