[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DAN5B7FXRPNW2ZHV6WX0T6":3,"skill-same:01M7DAN5B7FXRPNW2ZHV6WX0T6":96},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":13,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7DAN5B7FXRPNW2ZHV6WX0T6","minimax-pdf",null,"Use this skill when visual quality and design identity matter for a PDF. CREATE (generate from scratch): \"make a PDF\", \"generate a report\", \"write a proposal\", \"create a resume\", \"beautiful PDF\", \"professional document\", \"cover page\", \"polished PDF\", \"client-ready document\". FILL (complete form fields): \"fill in the form\", \"fill out this PDF\", \"complete the form fields\", \"write values into PDF\", \"what fields does this PDF have\". REFORMAT (apply design to an existing doc): \"reformat this document\", \"apply our style\", \"convert this Markdown\u002Ftext to PDF\", \"make this doc look good\", \"re-style this PDF\". This skill uses a token-based design system: color, typography, and spacing are derived from the document type and flow through every page. The output is print-ready. Prefer this skill when appearance matters, not just when any PDF output is needed.","nordeim\u002Factivity-map","nordeim","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F194583642?v=4","01M75CZEV8C3V4DDQNPQ1EA7QJ","01M7D8P5VVNEK50A7DQ421HDCN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fminimax-pdf\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: minimax-pdf\ndescription: >\n  Use this skill when visual quality and design identity matter for a PDF.\n  CREATE (generate from scratch): \"make a PDF\", \"generate a report\", \"write a proposal\",\n  \"create a resume\", \"beautiful PDF\", \"professional document\", \"cover page\",\n  \"polished PDF\", \"client-ready document\".\n  FILL (complete form fields): \"fill in the form\", \"fill out this PDF\",\n  \"complete the form fields\", \"write values into PDF\", \"what fields does this PDF have\".\n  REFORMAT (apply design to an existing doc): \"reformat this document\", \"apply our style\",\n  \"convert this Markdown\u002Ftext to PDF\", \"make this doc look good\", \"re-style this PDF\".\n  This skill uses a token-based design system: color, typography, and spacing are derived\n  from the document type and flow through every page. The output is print-ready.\n  Prefer this skill when appearance matters, not just when any PDF output is needed.\nlicense: MIT\nmetadata:\n  version: \"1.0\"\n  category: document-generation\n---\n\n# minimax-pdf\n\nThree tasks. One skill.\n\n## Read `design\u002Fdesign.md` before any CREATE or REFORMAT work.\n\n---\n\n## Route table\n\n| User intent | Route | Scripts used |\n|---|---|---|\n| Generate a new PDF from scratch | **CREATE** | `palette.py` → `cover.py` → `render_cover.js` → `render_body.py` → `merge.py` |\n| Fill \u002F complete form fields in an existing PDF | **FILL** | `fill_inspect.py` → `fill_write.py` |\n| Reformat \u002F re-style an existing document | **REFORMAT** | `reformat_parse.py` → then full CREATE pipeline |\n\n**Rule:** when in doubt between CREATE and REFORMAT, ask whether the user has an existing document to start from. If yes → REFORMAT. If no → CREATE.\n\n---\n\n## Route A: CREATE\n\nFull pipeline — content → design tokens → cover → body → merged PDF.\n\n```bash\nbash scripts\u002Fmake.sh run \\\n  --title \"Q3 Strategy Review\" --type proposal \\\n  --author \"Strategy Team\" --date \"October 2025\" \\\n  --accent \"#2D5F8A\" \\\n  --content content.json --out report.pdf\n```\n\n**Doc types:** `report` · `proposal` · `resume` · `portfolio` · `academic` · `general` · `minimal` · `stripe` · `diagonal` · `frame` · `editorial` · `magazine` · `darkroom` · `terminal` · `poster`\n\n| Type | Cover pattern | Visual identity |\n|---|---|---|\n| `report` | `fullbleed` | Dark bg, dot grid, Playfair Display |\n| `proposal` | `split` | Left panel + right geometric, Syne |\n| `resume` | `typographic` | Oversized first-word, DM Serif Display |\n| `portfolio` | `atmospheric` | Near-black, radial glow, Fraunces |\n| `academic` | `typographic` | Light bg, classical serif, EB Garamond |\n| `general` | `fullbleed` | Dark slate, Outfit |\n| `minimal` | `minimal` | White + single 8px accent bar, Cormorant Garamond |\n| `stripe` | `stripe` | 3 bold horizontal color bands, Barlow Condensed |\n| `diagonal` | `diagonal` | SVG angled cut, dark\u002Flight halves, Montserrat |\n| `frame` | `frame` | Inset border, corner ornaments, Cormorant |\n| `editorial` | `editorial` | Ghost letter, all-caps title, Bebas Neue |\n| `magazine` | `magazine` | Warm cream bg, centered stack, hero image, Playfair Display |\n| `darkroom` | `darkroom` | Navy bg, centered stack, grayscale image, Playfair Display |\n| `terminal` | `terminal` | Near-black, grid lines, monospace, neon green |\n| `poster` | `poster` | White bg, thick sidebar, oversized title, Barlow Condensed |\n\nCover extras (inject into tokens via `--abstract`, `--cover-image`):\n- `--abstract \"text\"` — abstract text block on the cover (magazine\u002Fdarkroom)\n- `--cover-image \"url\"` — hero image URL\u002Fpath (magazine, darkroom, poster)\n\n**Color overrides — always choose these based on document content:**\n- `--accent \"#HEX\"` — override the accent color; `accent_lt` is auto-derived by lightening toward white\n- `--cover-bg \"#HEX\"` — override the cover background color\n\n**Accent color selection guidance:**\n\nYou have creative authority over the accent color. Pick it from the document's semantic context — title, industry, purpose, audience — not from generic \"safe\" choices. The accent appears on section rules, callout bars, table headers, and the cover: it carries the document's visual identity.\n\n| Context | Suggested accent range |\n|---|---|\n| Legal \u002F compliance \u002F finance | Deep navy `#1C3A5E`, charcoal `#2E3440`, slate `#3D4C5E` |\n| Healthcare \u002F medical | Teal-green `#2A6B5A`, cool green `#3A7D6A` |\n| Technology \u002F engineering | Steel blue `#2D5F8A`, indigo `#3D4F8A` |\n| Environmental \u002F sustainability | Forest `#2E5E3A`, olive `#4A5E2A` |\n| Creative \u002F arts \u002F culture | Burgundy `#6B2A35`, plum `#5A2A6B`, terracotta `#8A3A2A` |\n| Academic \u002F research | Deep teal `#2A5A6B`, library blue `#2A4A6B` |\n| Corporate \u002F neutral | Slate `#3D4A5A`, graphite `#444C56` |\n| Luxury \u002F premium | Warm black `#1A1208`, deep bronze `#4A3820` |\n\n**Rule:** choose a color that a thoughtful designer would select for this specific document — not the type's default. Muted, desaturated tones work best; avoid vivid primaries. When in doubt, go darker and more neutral.\n\n**content.json block types:**\n\n| Block | Usage | Key fields |\n|---|---|---|\n| `h1` | Section heading + accent rule | `text` |\n| `h2` | Subsection heading | `text` |\n| `h3` | Sub-subsection (bold) | `text` |\n| `body` | Justified paragraph; supports `\u003Cb>` `\u003Ci>` markup | `text` |\n| `bullet` | Unordered list item (• prefix) | `text` |\n| `numbered` | Ordered list item — counter auto-resets on non-numbered blocks | `text` |\n| `callout` | Highlighted insight box with accent left bar | `text` |\n| `table` | Data table — accent header, alternating row tints | `headers`, `rows`, `col_widths`?, `caption`? |\n| `image` | Embedded image scaled to column width | `path`\u002F`src`, `caption`? |\n| `figure` | Image with auto-numbered \"Figure N:\" caption | `path`\u002F`src`, `caption`? |\n| `code` | Monospace code block with accent left border | `text`, `language`? |\n| `math` | Display math — LaTeX syntax via matplotlib mathtext | `text`, `label`?, `caption`? |\n| `chart` | Bar \u002F line \u002F pie chart rendered with matplotlib | `chart_type`, `labels`, `datasets`, `title`?, `x_label`?, `y_label`?, `caption`?, `figure`? |\n| `flowchart` | Process diagram with nodes + edges via matplotlib | `nodes`, `edges`, `caption`?, `figure`? |\n| `bibliography` | Numbered reference list with hanging indent | `items` [{id, text}], `title`? |\n| `divider` | Accent-colored full-width rule | — |\n| `caption` | Small muted label | `text` |\n| `pagebreak` | Force a new page | — |\n| `spacer` | Vertical whitespace | `pt` (default 12) |\n\n**chart \u002F flowchart schemas:**\n```json\n{\"type\":\"chart\",\"chart_type\":\"bar\",\"labels\":[\"Q1\",\"Q2\",\"Q3\",\"Q4\"],\n \"datasets\":[{\"label\":\"Revenue\",\"values\":[120,145,132,178]}],\"caption\":\"Q results\"}\n\n{\"type\":\"flowchart\",\n \"nodes\":[{\"id\":\"s\",\"label\":\"Start\",\"shape\":\"oval\"},\n          {\"id\":\"p\",\"label\":\"Process\",\"shape\":\"rect\"},\n          {\"id\":\"d\",\"label\":\"Valid?\",\"shape\":\"diamond\"},\n          {\"id\":\"e\",\"label\":\"End\",\"shape\":\"oval\"}],\n \"edges\":[{\"from\":\"s\",\"to\":\"p\"},{\"from\":\"p\",\"to\":\"d\"},\n          {\"from\":\"d\",\"to\":\"e\",\"label\":\"Yes\"},{\"from\":\"d\",\"to\":\"p\",\"label\":\"No\"}]}\n\n{\"type\":\"bibliography\",\"items\":[\n  {\"id\":\"1\",\"text\":\"Author (Year). Title. Publisher.\"}]}\n```\n\n---\n\n## Route B: FILL\n\nFill form fields in an existing PDF without altering layout or design.\n\n```bash\n# Step 1: inspect\npython3 scripts\u002Ffill_inspect.py --input form.pdf\n\n# Step 2: fill\npython3 scripts\u002Ffill_write.py --input form.pdf --out filled.pdf \\\n  --values '{\"FirstName\": \"Jane\", \"Agree\": \"true\", \"Country\": \"US\"}'\n```\n\n| Field type | Value format |\n|---|---|\n| `text` | Any string |\n| `checkbox` | `\"true\"` or `\"false\"` |\n| `dropdown` | Must match a choice value from inspect output |\n| `radio` | Must match a radio value (often starts with `\u002F`) |\n\nAlways run `fill_inspect.py` first to get exact field names.\n\n---\n\n## Route C: REFORMAT\n\nParse an existing document → content.json → CREATE pipeline.\n\n```bash\nbash scripts\u002Fmake.sh reformat \\\n  --input source.md --title \"My Report\" --type report --out output.pdf\n```\n\n**Supported input formats:** `.md` `.txt` `.pdf` `.json`\n\n---\n\n## Environment\n\n```bash\nbash scripts\u002Fmake.sh check   # verify all deps\nbash scripts\u002Fmake.sh fix     # auto-install missing deps\nbash scripts\u002Fmake.sh demo    # build a sample PDF\n```\n\n| Tool | Used by | Install |\n|---|---|---|\n| Python 3.9+ | all `.py` scripts | system |\n| `reportlab` | `render_body.py` | `pip install reportlab` |\n| `pypdf` | fill, merge, reformat | `pip install pypdf` |\n| Node.js 18+ | `render_cover.js` | system |\n| `playwright` + Chromium | `render_cover.js` | `npm install -g playwright && npx playwright install chromium` |\n\n---\n\n## Cross-References & Best Practices\n\n### Related skills\n\n| Skill | When to prefer it |\n|---|---|\n| [`..\u002Fpdf\u002F`](..\u002Fpdf\u002FSKILL.md) | Canonical Z.AI PDF skill — four production lines (Report via ReportLab, Creative via JSON Blueprint + Playwright, Academic via Tectonic\u002FLaTeX, Process for manipulate-existing). Use when you need LaTeX academic typesetting, the JSON Blueprint creative pipeline, or `pdf_qa.py` 12-rule automated QA. |\n| [`..\u002Fkimi-pdf\u002F`](..\u002Fkimi-pdf\u002FSKILL.md) | Kimi (Moonshot AI) HTML+Paged.js (default) or LaTeX\u002FTectonic PDF pipeline with 11 cover styles, KaTeX math, Mermaid diagrams, three-line tables (三线表), GB\u002FT 7714 + APA citation standards with per-language split, clickable cross-references, and search-before-write enforcement. Use when you want HTML-first pagination, academic three-line tables, or the unified `pdf.sh` CLI. |\n| [`..\u002Fresume-builder\u002F`](..\u002Fresume-builder\u002FSKILL.md) | Resume-specific PDF generation with ATS keyword checks. |\n| [`..\u002Fcharts\u002F`](..\u002Fcharts\u002FSKILL.md) | Standalone chart\u002Fdiagram generation when the PDF is just a chart carrier. |\n\n### Best practices cross-pollinated from the canonical `pdf` skill\n\nThese rules are universal to PDF production regardless of pipeline. Apply them on top of the route-specific guidance above.\n\n**Pre-routing checks (run BEFORE matching route)**\n1. **Emoji check** — Scan user content for intentional emoji (📊🎯🔥, not OS-level input). If found, force Creative pipeline (Playwright); ReportLab renders emoji as `□` squares and LaTeX drops them entirely.\n2. **CJK check** — Chinese\u002FJapanese\u002FKorean content needs explicit font coverage. Probe with `ls \u002Fusr\u002Fshare\u002Ffonts\u002Ftruetype\u002Fchinese\u002F` (Linux) before registering; prefer Noto Serif SC > Noto Sans SC. Never hardcode a font name without verifying it exists.\n3. **Size check** — Non-standard page sizes (not A4\u002FLetter\u002FA3) → prefer Playwright (handles any dimension natively); ReportLab requires manual pagination math.\n4. **Character safety check** — Scan content strings for Japanese kana (の、が、は) or unusual Unicode that may corrupt during heredoc\u002Fbase64\u002FLLM transit. Replace with plain CJK equivalents unless Japanese is required.\n\n**Vector rendering iron rule**\nThe final PDF MUST be generated via `page.pdf()` (Playwright) or ReportLab\u002FLaTeX native output — NEVER via screenshot-to-PDF. Screenshot PDFs are raster, blurry when zoomed, unsearchable, and 3–5× larger. The ONLY acceptable screenshot use is for diagrams\u002Fcharts embedded as sub-elements inside a larger vector document.\n\n**HTML→PDF engine selection**\n- **Posters \u002F single-page long-image \u002F cover pages** → `html2poster.js` (auto `overflow:hidden`, dynamic height, zero margin).\n- **Multi-page documents \u002F reports \u002F academic** → `html2pdf-next.js` (Paged.js pagination, A4\u002Fcustom size, pdf-lib metadata).\n- **Cover pages use absolute positioning** — ALWAYS use `html2poster.js`. `html2pdf-next.js` + Paged.js would re-layout absolute-positioned elements into flow and destroy the cover.\n\n**Full-bleed rule (no white margins)**\nMandatory CSS for any HTML→PDF:\n```css\n@page { size: \u003Cwidth> \u003Cheight>; margin: 0; }\nhtml, body { margin: 0; padding: 0; }\n```\nCommon white-margin causes: missing `@page { margin: 0 }`, content width ≠ page width, missing `@page { size }`, content `max-width` narrower than page.\n\n**Background color consistency**\n`html` \u002F `body` background MUST match the content canvas background. For multi-page docs with mixed dark\u002Flight pages, set `html, body { background }` to the darkest page's background so sub-pixel gaps at page edges stay invisible.\n\n**No `overflow: hidden` on fixed-size pages**\nNever set `overflow: hidden` on `html`, `body`, `.page`, or the main content container — it silently clips content that exceeds bounds and hides layout bugs. Paged.js handles pagination natively. (Exception: posters rendered via `html2poster.js` — that script auto-adds it to clip decorative overflow.)\n\n**Figures are block-level**\nFigures, diagrams, charts MUST be independent block elements at full width. NEVER float\u002Fwrap figures alongside body text — it causes text-diagram overlap. In ReportLab: `story.append(Image(...))` as standalone Flowable. In Playwright: `\u003Cfigure style=\"display:block; width:100%; margin:2em auto\">`.\n\n**Table overflow prevention (ReportLab)**\nBefore building any `Table`: (1) calculate `available_width = page_width - left_margin - right_margin`, (2) use proportional `colWidths` summing to ≤ `available_width`, (3) long-text columns MUST use `Paragraph()` wrapping (plain strings don't wrap), (4) CJK text is wider — budget ~12pt per character at 10pt font size.\n\n**Quality checklist (mandatory after every PDF)**\n- Run `pdf_qa.py` — auto-detects metadata completeness, page size consistency, blank pages, CJK punctuation, color count, font embedding, content overflow, fill ratio, cover full-bleed, margin symmetry, table centering, formula overflow. PASS → deliver; WARN → evaluate; FAIL → must fix and regenerate.\n- For HTML→PDF paths, also run `poster_validate.py check-html \u003Cfile>.html` BEFORE rendering — catches `overflow:hidden` containers, missing font fallbacks, contrast issues, background mismatches.\n- **Output cleanliness**: NEVER include version numbers, \"DRAFT\"\u002F\"CONFIDENTIAL\" stamps, \"Generated by AI\", or any watermark the user didn't ask for. PDF metadata should reflect document content, not the generation process.\n","# minimax-pdf\n\nThree tasks. One skill.\n\n## Read `design\u002Fdesign.md` before any CREATE or REFORMAT work.\n\n---\n\n## Route table\n\n| User intent | Route | Scripts used |\n|---|---|---|\n| Generate a new PDF from scratch | **CREATE** | `palette.py` → `cover.py` → `render_cover.js` → `render_body.py` → `merge.py` |\n| Fill \u002F complete form fields in an existing PDF | **FILL** | `fill_inspect.py` → `fill_write.py` |\n| Reformat \u002F re-style an existing document | **REFORMAT** | `reformat_parse.py` → then full CREATE pipeline |\n\n**Rule:** when in doubt between CREATE and REFORMAT, ask whether the user has an existing document to start from. If yes → REFORMAT. If no → CREATE.\n\n---\n\n## Route A: CREATE\n\nFull pipeline — content → design tokens → cover → body → merged PDF.\n\n```bash\nbash scripts\u002Fmake.sh run \\\n  --title \"Q3 Strategy Review\" --type proposal \\\n  --author \"Strategy Team\" --date \"October 2025\" \\\n  --accent \"#2D5F8A\" \\\n  --content content.json --out report.pdf\n```\n\n**Doc types:** `report` · `proposal` · `resume` · `portfolio` · `academic` · `general` · `minimal` · `stripe` · `diagonal` · `frame` · `editorial` · `magazine` · `darkroom` · `terminal` · `poster`\n\n| Type | Cover pattern | Visual identity |\n|---|---|---|\n| `report` | `fullbleed` | Dark bg, dot grid, Playfair Display |\n| `proposal` | `split` | Left panel + right geometric, Syne |\n| `resume` | `typographic` | Oversized first-word, DM Serif Display |\n| `portfolio` | `atmospheric` | Near-black, radial glow, Fraunces |\n| `academic` | `typographic` | Light bg, classical serif, EB Garamond |\n| `general` | `fullbleed` | Dark slate, Outfit |\n| `minimal` | `minimal` | White + single 8px accent bar, Cormorant Garamond |\n| `stripe` | `stripe` | 3 bold horizontal color bands, Barlow Condensed |\n| `diagonal` | `diagonal` | SVG angled cut, dark\u002Flight halves, Montserrat |\n| `frame` | `frame` | Inset border, corner ornaments, Cormorant |\n| `editorial` | `editorial` | Ghost letter, all-caps title, Bebas Neue |\n| `magazine` | `magazine` | Warm cream bg, centered stack, hero image, Playfair Display |\n| `darkroom` | `darkroom` | Navy bg, centered stack, grayscale image, Playfair Display |\n| `terminal` | `terminal` | Near-black, grid lines, monospace, neon green |\n| `poster` | `poster` | White bg, thick sidebar, oversized title, Barlow Condensed |\n\nCover extras (inject into tokens via `--abstract`, `--cover-image`):\n- `--abstract \"text\"` — abstract text block on the cover (magazine\u002Fdarkroom)\n- `--cover-image \"url\"` — hero image URL\u002Fpath (magazine, darkroom, poster)\n\n**Color overrides — always choose these based on document content:**\n- `--accent \"#HEX\"` — override the accent color; `accent_lt` is auto-derived by lightening toward white\n- `--cover-bg \"#HEX\"` — override the cover background color\n\n**Accent color selection guidance:**\n\nYou have creative authority over the accent color. Pick it from the document's semantic context — title, industry, purpose, audience — not from generic \"safe\" choices. The accent appears on section rules, callout bars, table headers, and the cover: it carries the document's visual identity.\n\n| Context | Suggested accent range |\n|---|---|\n| Legal \u002F compliance \u002F finance | Deep navy `#1C3A5E`, charcoal `#2E3440`, slate `#3D4C5E` |\n| Healthcare \u002F medical | Teal-green `#2A6B5A`, cool green `#3A7D6A` |\n| Technology \u002F engineering | Steel blue `#2D5F8A`, indigo `#3D4F8A` |\n| Environmental \u002F sustainability | Forest `#2E5E3A`, olive `#4A5E2A` |\n| Creative \u002F arts \u002F culture | Burgundy `#6B2A35`, plum `#5A2A6B`, terracotta `#8A3A2A` |\n| Academic \u002F research | Deep teal `#2A5A6B`, library blue `#2A4A6B` |\n| Corporate \u002F neutral | Slate `#3D4A5A`, graphite `#444C56` |\n| Luxury \u002F premium | Warm black `#1A1208`, deep bronze `#4A3820` |\n\n**Rule:** choose a color that a thoughtful designer would select for this specific document — not the type's default. Muted, desaturated tones work best; avoid vivid primaries. When in doubt, go darker and more neutral.\n\n**content.json block types:**\n\n| Block | Usage | Key fields |\n|---|---|---|\n| `h1` | Section heading + accent rule | `text` |\n| `h2` | Subsection heading | `text` |\n| `h3` | Sub-subsection (bold) | `text` |\n| `body` | Justified paragraph; supports `\u003Cb>` `\u003Ci>` markup | `text` |\n| `bullet` | Unordered list item (• prefix) | `text` |\n| `numbered` | Ordered list item — counter auto-resets on non-numbered blocks | `text` |\n| `callout` | Highlighted insight box with accent left bar | `text` |\n| `table` | Data table — accent header, alternating row tints | `headers`, `rows`, `col_widths`?, `caption`? |\n| `image` | Embedded image scaled to column width | `path`\u002F`src`, `caption`? |\n| `figure` | Image with auto-numbered \"Figure N:\" caption | `path`\u002F`src`, `caption`? |\n| `code` | Monospace code block with accent left border | `text`, `language`? |\n| `math` | Display math — LaTeX syntax via matplotlib mathtext | `text`, `label`?, `caption`? |\n| `chart` | Bar \u002F line \u002F pie chart rendered with matplotlib | `chart_type`, `labels`, `datasets`, `title`?, `x_label`?, `y_label`?, `caption`?, `figure`? |\n| `flowchart` | Process diagram with nodes + edges via matplotlib | `nodes`, `edges`, `caption`?, `figure`? |\n| `bibliography` | Numbered reference list with hanging indent | `items` [{id, text}], `title`? |\n| `divider` | Accent-colored full-width rule | — |\n| `caption` | Small muted label | `text` |\n| `pagebreak` | Force a new page | — |\n| `spacer` | Vertical whitespace | `pt` (default 12) |\n\n**chart \u002F flowchart schemas:**\n```json\n{\"type\":\"chart\",\"chart_type\":\"bar\",\"labels\":[\"Q1\",\"Q2\",\"Q3\",\"Q4\"],\n \"datasets\":[{\"label\":\"Revenue\",\"values\":[120,145,132,178]}],\"caption\":\"Q results\"}\n\n{\"type\":\"flowchart\",\n \"nodes\":[{\"id\":\"s\",\"label\":\"Start\",\"shape\":\"oval\"},\n          {\"id\":\"p\",\"label\":\"Process\",\"shape\":\"rect\"},\n          {\"id\":\"d\",\"label\":\"Valid?\",\"shape\":\"diamond\"},\n          {\"id\":\"e\",\"label\":\"End\",\"shape\":\"oval\"}],\n \"edges\":[{\"from\":\"s\",\"to\":\"p\"},{\"from\":\"p\",\"to\":\"d\"},\n          {\"from\":\"d\",\"to\":\"e\",\"label\":\"Yes\"},{\"from\":\"d\",\"to\":\"p\",\"label\":\"No\"}]}\n\n{\"type\":\"bibliography\",\"items\":[\n  {\"id\":\"1\",\"text\":\"Author (Year). Title. Publisher.\"}]}\n```\n\n---\n\n## Route B: FILL\n\nFill form fields in an existing PDF without altering layout or design.\n\n```bash\n# Step 1: inspect\npython3 scripts\u002Ffill_inspect.py --input form.pdf\n\n# Step 2: fill\npython3 scripts\u002Ffill_write.py --input form.pdf --out filled.pdf \\\n  --values '{\"FirstName\": \"Jane\", \"Agree\": \"true\", \"Country\": \"US\"}'\n```\n\n| Field type | Value format |\n|---|---|\n| `text` | Any string |\n| `checkbox` | `\"true\"` or `\"false\"` |\n| `dropdown` | Must match a choice value from inspect output |\n| `radio` | Must match a radio value (often starts with `\u002F`) |\n\nAlways run `fill_inspect.py` first to get exact field names.\n\n---\n\n## Route C: REFORMAT\n\nParse an existing document → content.json → CREATE pipeline.\n\n```bash\nbash scripts\u002Fmake.sh reformat \\\n  --input source.md --title \"My Report\" --type report --out output.pdf\n```\n\n**Supported input formats:** `.md` `.txt` `.pdf` `.json`\n\n---\n\n## Environment\n\n```bash\nbash scripts\u002Fmake.sh check   # verify all deps\nbash scripts\u002Fmake.sh fix     # auto-install missing deps\nbash scripts\u002Fmake.sh demo    # build a sample PDF\n```\n\n| Tool | Used by | Install |\n|---|---|---|\n| Python 3.9+ | all `.py` scripts | system |\n| `reportlab` | `render_body.py` | `pip install reportlab` |\n| `pypdf` | fill, merge, reformat | `pip install pypdf` |\n| Node.js 18+ | `render_cover.js` | system |\n| `playwright` + Chromium | `render_cover.js` | `npm install -g playwright && npx playwright install chromium` |\n\n---\n\n## Cross-References & Best Practices\n\n### Related skills\n\n| Skill | When to prefer it |\n|---|---|\n| [`..\u002Fpdf\u002F`](..\u002Fpdf\u002FSKILL.md) | Canonical Z.AI PDF skill — four production lines (Report via ReportLab, Creative via JSON Blueprint + Playwright, Academic via Tectonic\u002FLaTeX, Process for manipulate-existing). Use when you need LaTeX academic typesetting, the JSON Blueprint creative pipeline, or `pdf_qa.py` 12-rule automated QA. |\n| [`..\u002Fkimi-pdf\u002F`](..\u002Fkimi-pdf\u002FSKILL.md) | Kimi (Moonshot AI) HTML+Paged.js (default) or LaTeX\u002FTectonic PDF pipeline with 11 cover styles, KaTeX math, Mermaid diagrams, three-line tables (三线表), GB\u002FT 7714 + APA citation standards with per-language split, clickable cross-references, and search-before-write enforcement. Use when you want HTML-first pagination, academic three-line tables, or the unified `pdf.sh` CLI. |\n| [`..\u002Fresume-builder\u002F`](..\u002Fresume-builder\u002FSKILL.md) | Resume-specific PDF generation with ATS keyword checks. |\n| [`..\u002Fcharts\u002F`](..\u002Fcharts\u002FSKILL.md) | Standalone chart\u002Fdiagram generation when the PDF is just a chart carrier. |\n\n### Best practices cross-pollinated from the canonical `pdf` skill\n\nThese rules are universal to PDF production regardless of pipeline. Apply them on top of the route-specific guidance above.\n\n**Pre-routing checks (run BEFORE matching route)**\n1. **Emoji check** — Scan user content for intentional emoji (📊🎯🔥, not OS-level input). If found, force Creative pipeline (Playwright); ReportLab renders emoji as `□` squares and LaTeX drops them entirely.\n2. **CJK check** — Chinese\u002FJapanese\u002FKorean content needs explicit font coverage. Probe with `ls \u002Fusr\u002Fshare\u002Ffonts\u002Ftruetype\u002Fchinese\u002F` (Linux) before registering; prefer Noto Serif SC > Noto Sans SC. Never hardcode a font name without verifying it exists.\n3. **Size check** — Non-standard page sizes (not A4\u002FLetter\u002FA3) → prefer Playwright (handles any dimension natively); ReportLab requires manual pagination math.\n4. **Character safety check** — Scan content strings for Japanese kana (の、が、は) or unusual Unicode that may corrupt during heredoc\u002Fbase64\u002FLLM transit. Replace with plain CJK equivalents unless Japanese is required.\n\n**Vector rendering iron rule**\nThe final PDF MUST be generated via `page.pdf()` (Playwright) or ReportLab\u002FLaTeX native output — NEVER via screenshot-to-PDF. Screenshot PDFs are raster, blurry when zoomed, unsearchable, and 3–5× larger. The ONLY acceptable screenshot use is for diagrams\u002Fcharts embedded as sub-elements inside a larger vector document.\n\n**HTML→PDF engine selection**\n- **Posters \u002F single-page long-image \u002F cover pages** → `html2poster.js` (auto `overflow:hidden`, dynamic height, zero margin).\n- **Multi-page documents \u002F reports \u002F academic** → `html2pdf-next.js` (Paged.js pagination, A4\u002Fcustom size, pdf-lib metadata).\n- **Cover pages use absolute positioning** — ALWAYS use `html2poster.js`. `html2pdf-next.js` + Paged.js would re-layout absolute-positioned elements into flow and destroy the cover.\n\n**Full-bleed rule (no white margins)**\nMandatory CSS for any HTML→PDF:\n```css\n@page { size: \u003Cwidth> \u003Cheight>; margin: 0; }\nhtml, body { margin: 0; padding: 0; }\n```\nCommon white-margin causes: missing `@page { margin: 0 }`, content width ≠ page width, missing `@page { size }`, content `max-width` narrower than page.\n\n**Background color consistency**\n`html` \u002F `body` background MUST match the content canvas background. For multi-page docs with mixed dark\u002Flight pages, set `html, body { background }` to the darkest page's background so sub-pixel gaps at page edges stay invisible.\n\n**No `overflow: hidden` on fixed-size pages**\nNever set `overflow: hidden` on `html`, `body`, `.page`, or the main content container — it silently clips content that exceeds bounds and hides layout bugs. Paged.js handles pagination natively. (Exception: posters rendered via `html2poster.js` — that script auto-adds it to clip decorative overflow.)\n\n**Figures are block-level**\nFigures, diagrams, charts MUST be independent block elements at full width. NEVER float\u002Fwrap figures alongside body text — it causes text-diagram overlap. In ReportLab: `story.append(Image(...))` as standalone Flowable. In Playwright: `\u003Cfigure style=\"display:block; width:100%; margin:2em auto\">`.\n\n**Table overflow prevention (ReportLab)**\nBefore building any `Table`: (1) calculate `available_width = page_width - left_margin - right_margin`, (2) use proportional `colWidths` summing to ≤ `available_width`, (3) long-text columns MUST use `Paragraph()` wrapping (plain strings don't wrap), (4) CJK text is wider — budget ~12pt per character at 10pt font size.\n\n**Quality checklist (mandatory after every PDF)**\n- Run `pdf_qa.py` — auto-detects metadata completeness, page size consistency, blank pages, CJK punctuation, color count, font embedding, content overflow, fill ratio, cover full-bleed, margin symmetry, table centering, formula overflow. PASS → deliver; WARN → evaluate; FAIL → must fix and regenerate.\n- For HTML→PDF paths, also run `poster_validate.py check-html \u003Cfile>.html` BEFORE rendering — catches `overflow:hidden` containers, missing font fallbacks, contrast issues, background mismatches.\n- **Output cleanliness**: NEVER include version numbers, \"DRAFT\"\u002F\"CONFIDENTIAL\" stamps, \"Generated by AI\", or any watermark the user didn't ask for. PDF metadata should reflect document content, not the generation process.\n",{"name":5,"license":14,"metadata":23,"description":26},{"version":24,"category":25},"1.0","document-generation","Use this skill when visual quality and design identity matter for a PDF. CREATE (generate from scratch): \"make a PDF\", \"generate a report\", \"write a proposal\", \"create a resume\", \"beautiful PDF\", \"professional document\", \"cover page\", \"polished PDF\", \"client-ready document\". FILL (complete form fields): \"fill in the form\", \"fill out this PDF\", \"complete the form fields\", \"write values into PDF\", \"what fields does this PDF have\". REFORMAT (apply design to an existing doc): \"reformat this document\", \"apply our style\", \"convert this Markdown\u002Ftext to PDF\", \"make this doc look good\", \"re-style this PDF\". This skill uses a token-based design system: color, typography, and spacing are derived from the document type and flow through every page. The output is print-ready. Prefer this skill when appearance matters, not just when any PDF output is needed.\n","main","e3fd17b8fbda2bd94b990bc6f9d36baa4799d916","skills\u002Fminimax-pdf","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map","https:\u002F\u002Fgithub.com\u002Fnordeim","A freelance IT engineer","2026-09-29 14:48:51",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add nordeim\u002Factivity-map --skill minimax-pdf",{"tool":40,"command":41},"bunx","bunx skills add nordeim\u002Factivity-map --skill minimax-pdf",{"tool":43,"command":44},"pnpm","pnpm dlx skills add nordeim\u002Factivity-map --skill minimax-pdf","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fminimax-pdf\u002FSKILL.md",true,[48,54,58,64,68,72,76,80,84,88,92],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"design\u002Fdesign.md","REFERENCE","参考文档",17208,"https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fminimax-pdf\u002Fdesign\u002Fdesign.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"README.md",8534,"https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fminimax-pdf\u002FREADME.md",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"scripts\u002Fcover.py","SCRIPT","脚本",48008,"https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fminimax-pdf\u002Fscripts\u002Fcover.py",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"scripts\u002Ffill_inspect.py",6402,"https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fminimax-pdf\u002Fscripts\u002Ffill_inspect.py",{"path":69,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Ffill_write.py",8451,"https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fminimax-pdf\u002Fscripts\u002Ffill_write.py",{"path":73,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":74,"sourceHtmlUrl":75},"scripts\u002Fmake.sh",19562,"https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fminimax-pdf\u002Fscripts\u002Fmake.sh",{"path":77,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fmerge.py",3750,"https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fminimax-pdf\u002Fscripts\u002Fmerge.py",{"path":81,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Fpalette.py",19662,"https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fminimax-pdf\u002Fscripts\u002Fpalette.py",{"path":85,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002Freformat_parse.py",13295,"https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fminimax-pdf\u002Fscripts\u002Freformat_parse.py",{"path":89,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":90,"sourceHtmlUrl":91},"scripts\u002Frender_body.py",40661,"https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fminimax-pdf\u002Fscripts\u002Frender_body.py",{"path":93,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":94,"sourceHtmlUrl":95},"scripts\u002Frender_cover.js",3844,"https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fminimax-pdf\u002Fscripts\u002Frender_cover.js",[97,106,114,122,129,137],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":101,"licenseFileUrl":102,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7DC1S8HA1BK68JJ3X0RB6Q7","webapp-testing","Web application testing principles. E2E, Playwright, deep audit strategies.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":110,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":18},"01M7DBZ6CNDP7931Q6ARNW2FPY","web-search","Implement web search capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to search for real-time information from the web, retrieve up-to-date content beyond the knowledge cutoff, or find the latest news and data. Returns structured search results with URLs, snippets, and metadata.","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fweb-search\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fweb-search\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":118,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":18},"01M7DBXYJ0FZDEY7RCVQ1JGGYJ","web-reader","Implement web page content extraction capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to scrape web pages, extract article content, retrieve page metadata, or build applications that process web content. Supports automatic content extraction with title, HTML, and publication time retrieval.","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fweb-reader\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fweb-reader\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":18},"01M7DBXQCCSKMVSBEEQYSHZ1NR","web-frameworks","Build modern full-stack web applications with Next.js 16 + React 19 (App Router, Server Components, RSC, PPR, cacheComponents, async params, SSR, SSG, ISR, standalone output), Turborepo (monorepo, task pipelines, remote caching, parallel execution), and RemixIcon (3100+ SVG icons). Use when creating React applications, implementing server-side rendering, setting up monorepos, optimizing build performance and caching, or working with TypeScript full-stack projects.","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fweb-frameworks\u002FSKILL.md",[],[],{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":133,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":18},"01M7DBSB6CJZHACRPPEAD8CVF4","video-understand","Implement specialized video understanding capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to analyze video content, understand motion and temporal sequences, extract information from video frames, describe video scenes, or perform video-based AI analysis. Optimized for MP4, AVI, MOV, and other common video formats.","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-understand\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-understand\u002FSKILL.md",[],[],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":141,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":18},"01M7DBS2WBW9K51J64BHVWQNMY","video-generation","Implement AI-powered video generation capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to generate videos from text prompts or images, create video content programmatically, or build applications that produce video outputs. Supports asynchronous task management with status polling and result retrieval.","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-generation\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Factivity-map\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-generation\u002FSKILL.md",[],[]]