Packs / documents-public
certificate
Certificate of appreciation (A4 landscape, script name and signature) from an HTML template to a 1-page PDF.
Install
logicpacks pack use documents-public/certificateget_pack documents-public/certificateThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
chrome-localweasyprint-localpandoc-local - Checks: 3 in
outcome/checks.yaml - Code:
certificate.html - Tools: python3, chrome
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
A crisp one-page landscape certificate with the right recipient, date and signatory, rendered from HTML (no design app).
Steps
- Copy
code/certificate.html; fill RECIPIENT, BODY, SIGNATORY, ROLE, DATE (use between words of the name so the script font doesn't wrap). python3 ../tools/fill.py code/certificate.html values.json out/certificate.html.python3 ../tools/html2pdf.py out/certificate.html out/certificate.pdf.python3 ../tools/check_doc.py out/certificate.pdf --pages 1:1; preview:qlmanage -t -s 1600 -o . out/certificate.pdf(macOS).- For a jointly issued certificate add a second signature block; otherwise keep one signature + date.
Edge cases
- Partner logos: keep width/height auto, 34 px; don't stretch.
- Script fonts differ per OS (Snell Roundhand on macOS, Brush Script fallback).
Don'ts
- Don't add a partner's signature to our own appreciation certificate.
- Don't make the wordmark an image; it is live text so it stays crisp.
- Don't put real client data into fixtures or this repo; fixtures use fictional Acme Example Co.
- Don't invent numbers (prices, dates, metrics): every figure comes from the brief or a cited source.