latex-document-skill
Installation
SKILL.md
Handle $ARGUMENTS.
Steps
- If
$ARGUMENTSis empty, report an error asking for a document request or source path. - Classify the task: create, compile, convert, PDF-to-LaTeX, PDF operations, poster, cheat sheet, or diff.
- Read only the needed reference files from
references/, including poster, cheat sheet, format conversion, PDF conversion, PDF operations, script tools, andreferences/profiles/*.mdfor PDF-to-LaTeX. - Reuse a matching template from
$SKILL_DIR/assets/templates/when available; otherwise create the source directly. - Run only the required scripts from
$SKILL_DIR/scripts/to compile, convert, diff, lint, analyze, or process PDFs. - For large PDF-to-LaTeX jobs, scale by page count: 1-10 single pass, 11-20 split, 21+ batched.
- Validate output with the relevant compile, lint, or PDF check script before presenting files.
- Return the updated source plus the final PDF or preview path when available.