# Kami: typeset resumes, one-pagers, slides and reports as PDF (tw93/Kami) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-04 against commit 9f9e30d (version 1.18.0).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/tw93/kami/

> Note: the pack has changed since this check; re-read its files before relying on details.

## Explain it to a non-programmer
Your AI assistant gets ready-made page designs and layout rules for finished documents: resumes, one-pagers, letters, long reports, portfolios, slide decks, stock reports, release notes and product landing pages. It fills the design with your content, makes a PDF and checks every page before it hands it over. The look is calm and print-like: a warm paper background, one ink-blue accent and serif fonts.

## Who it is for
- You want a resume, one-pager, letter, report or slide deck that looks typeset, not like a plain chat answer
- You write in English, Chinese, Japanese or Korean and want the right fonts for each
- You want the assistant to mark missing facts instead of making them up
- You use Claude Code, Codex, Cursor or Claude Desktop
- Not for: You want Material, Fluent or a default Tailwind look
- Not for: You want dark, futuristic, cartoon or many-colour designs: Kami has one accent and an editorial style
- Not for: You need the interface of a live web app: it is for print and static pages

## What it is
- Kind: knowledge, scripts
- License: MIT
- Repository: https://github.com/tw93/Kami

## What it does
- Locks a contract first: language, template, output formats, page or length target, visual acceptance and the check command
- Asks at most one compact question, only when the purpose or the template really cannot be inferred
- Picks one of nine templates from your words (one-pager, long doc, letter, portfolio, resume, slides, equity report, changelog, landing page), in a Chinese, English or Korean variant
- Checks facts about companies, products, releases and numbers against primary sources, and asks when sources conflict
- Writes your content to a content.json file, checks it against a schema, then copies the template and fills it without touching its CSS
- Builds charts from your numbers with a script, never by hand; diagrams come from eighteen ready SVG types
- One command checks the HTML, renders the PDF, checks the PDF (page count, fonts, empty space, lone lines) and exports page images
- Looks at every page image, fixes the three most visible problems per round, and stops after three rounds
- Never cuts: invented metrics or statistics, guesses for missing facts, stock images described as placeholders, padded slots

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| kami | plain language ("make a one-pager for my startup"); /kami, or /kami:kami as a plugin | yes | Turns your notes into a finished, typeset document and checks each page before handing it over |

### kami
- Asks for: What the document is: resume, one-pager, letter, report, portfolio, slides, equity report, changelog or landing page
- Asks for: Your content: notes, facts, numbers, dates, names
- Asks for: Materials for a branded subject: logo, product image or screenshot, brand colours
- Asks for: Optional: a brand profile in ~/.config/kami/brand.md with your name, colour, language and tone
- Gives: The path of every file it made, in every format it promised (HTML and PDF; PNG to share; PPTX only if you ask for an editable deck)
- Gives: The final check result and the page count against the plan
- Gives: Every [DATA NEEDED] gap and every assumption it made
- Gives: An honest visual verdict: "build verified, visuals unconfirmed" when it could not look at the page images
- Say: "Make a one-page PDF summary of my startup for investors from these notes"

## Know before installing
- It switches on by itself for requests like "make a PDF", a resume, a one-pager or slides; no command needed.
- It runs Python scripts on your computer and asks for WeasyPrint, pypdf and PyMuPDF; its install line uses pip's --break-system-packages flag, which writes into the system Python. A virtual environment is the safer place.
- It goes online on its own: once a day it asks GitHub for the latest release, and the Chinese and Korean templates load their fonts from the jsDelivr CDN when the local copy is missing.
- The Chinese font TsangerJinKai02 is free for personal use only; commercial use needs a licence from tsanger.cn.
- For PDFs that are not resumes, letters or portfolios, the author field in the PDF comes from your git user name, then KAMI_AUTHOR.
- Your request always wins over the optional brand profile; the profile only fills gaps.

## Install (official commands)
- Claude Code, Codex, Cursor and other agents (skills CLI): `npx skills add tw93/kami -a claude-code codex cursor -g -y` — One copy goes to ~/.agents/skills and is linked into each agent. Update with npx skills update -g -y.
- Claude Code (plugin, v2.1.142+): `/plugin marketplace add tw93/kami` && `/plugin install kami@kami` — Called as /kami:kami. Update with claude plugin update kami.
- Codex (plugin): `codex plugin marketplace add tw93/kami` && `codex plugin add kami@kami` — Update: codex plugin marketplace upgrade kami, then codex plugin add kami@kami.
- Claude Desktop: Download the release asset kami.zip (not GitHub's source ZIP), then Customize > Skills > + > Create skill and upload it.
- Any MCP client: `claude mcp add kami -- python3 /absolute/path/to/kami/scripts/mcp_server.py` — Render, check and screenshot tools without loading the skill text. Render only trusted local HTML.

## What runs on the user's machine
- Code on the machine: yes (when the assistant uses the skill; there are no hooks)
- Network: yes
- Start of every task: check-update.sh writes a date to ~/.cache/kami/update-checked (or $XDG_CACHE_HOME/kami) and, at most once a day, asks github.com for the latest Kami release (3-second limit). It uploads no document or task content.
- Building a document (build.py --deliver): Python scripts check the HTML, render the PDF with WeasyPrint next to it and write page images to a <name>-visual folder beside the PDF. On macOS the font cache goes to /private/tmp/kami-fontconfig-cache.
- Rendering Chinese or Korean templates: Each @font-face falls back to the jsDelivr CDN when the local font file is missing.
- Fonts missing (ensure-fonts.sh): Downloads the Chinese fonts from tsanger.cn or the jsdmirror / jsDelivr CDNs and the Korean fonts from those CDNs into ~/.local/share/fonts/kami.
- Documents with maths (ensure_mathjax.sh, once): Runs npm ci --ignore-scripts for a pinned @mathjax/src 4.1.3 into ~/.cache/kami/mathjax/.
- You give only a brand website (brand_extract.py): Fetches that page and up to five stylesheets from the same site, prints a draft brand profile; never writes to ~/.config.
- Editable PPTX: Runs the python-pptx deck script (slides.py / slides-en.py) in a subprocess.

## Settings
- `~/.config/kami/brand.md`: optional brand profile: name, role, email, brand colour, language, page size, tone
- `KAMI_AUTHOR`: author name for PDF metadata when git config user.name is empty
- `KAMI_FONT_DIR`: where ensure-fonts.sh puts downloaded fonts (default ~/.local/share/fonts/kami)
- `KAMI_UPDATE_URL`: overrides the update-check source with a plain version file (used by tests)

## Examples (from the pack's own files)
- The closing message the skill asks for: output format defined in skills/kami/SKILL.md

## Steps only the person can do
- Approve installing the native PDF libraries with sudo on Linux (cairo, pango, harfbuzz) (skills/kami/scripts/optional_deps.py) Then: The assistant installs WeasyPrint, pypdf and PyMuPDF and runs build.py --doctor
- On Claude Desktop, download the release asset kami.zip and upload it under Customize > Skills (https://github.com/tw93/kami/releases/latest/download/kami.zip) Then: The skill switches on for document requests
- Buy a TsangerJinKai02 licence before using Chinese documents commercially (https://tsanger.cn) Then: The assistant keeps using the Chinese templates with that font

## Mistakes to avoid
- Not: Run pip install weasyprint on a fresh Linux box and expect PDFs to render. Instead: Also install the native cairo, pango and harfbuzz libraries, then run build.py --doctor. Why: The Python package installs but cannot load its libraries without them
- Not: Upload GitHub's source ZIP to Claude Desktop. Instead: Upload the release asset kami.zip. Why: The README names the release asset, not the source archive, for Claude Desktop
- Not: Run it on native Windows. Instead: Run it inside WSL (Ubuntu). Why: The helper scripts are Bash, and WeasyPrint on Windows needs a separate GTK/Pango runtime
- Not: Ask it to audit or restyle your existing product website. Instead: Use it for new documents and Kami landing pages; use a site design skill for an existing site. Why: The skill's own description excludes that job
- Not: Expect an editable PowerPoint by default. Instead: Say you want an editable deck; then it also makes a PPTX with python-pptx. Why: Slides come as HTML and PDF unless an editable deck is asked for

## What leaves the machine
- A request for the latest Kami release (no document or task content) → github.com, At the start of a task, at most once a day. Opt out: Work offline or in a sandbox; the check stays silent when it fails
- Font file requests → cdn.jsdelivr.net (and cdn.jsdmirror.com, tsanger.cn when fonts are downloaded), Rendering Chinese or Korean templates without a local font copy, or running ensure-fonts.sh. Opt out: Install the fonts locally first
- Requests for the page and up to five stylesheets → The brand website you give, Only when you give a brand website and brand_extract.py drafts a profile. Opt out: Write the brand profile yourself
- An npm package download for maths rendering → The npm registry, Once, when a document has formulas and ensure_mathjax.sh runs. Opt out: Leave formulas out

## Lines in the pack aimed at agents (ask the person first)
- "At the start of a task, run `bash scripts/check-update.sh`." (skills/kami/SKILL.md): It contacts GitHub at most once a day; tell the person, and skip it where network calls need approval
- "pip install weasyprint pypdf pymupdf --break-system-packages --quiet" (skills/kami/references/production.md): The flag writes into the system Python; ask the person first and prefer a virtual environment
- "Use the `npx @marp-team/marp-cli@latest ...` form below for zero-install." (skills/kami/references/production.md): It downloads and runs an unpinned package; ask first and pin a version

## May I use it like this?
- commercial-app: conditions (Code and templates are MIT; the Chinese font TsangerJinKai02 needs a licence from tsanger.cn for commercial use)
- client-work: conditions (MIT for code and templates; documents for clients that use TsangerJinKai02 need its commercial licence)
- redistribute-files: conditions (MIT: keep the copyright and license notice; do not pass on TsangerJinKai02 without its terms)
- inside-app-bundle: conditions (MIT with the notice kept; Source Han Serif K and JetBrains Mono are under the OFL)

## Which one to pick
- If You want a typeset PDF resume, one-pager, letter, report or deck in one calm editorial style, checked page by page: skill:tw93/Kami
- If You want slides that live on the web, built with the agent's frontend skills: skill:zarazhangrui/frontend-slides
- If You want help with resume content and job applications rather than layout: skill:Paramchoudhary/ResumeSkills
- If You want the general Agent Skills collection, including skills for office files: skill:anthropics/skills

## Works well with
- tool:weasyprint: Kami renders every PDF with WeasyPrint
- tool:python-pptx: Editable PPTX decks are built with python-pptx
- tool:pypdf: Its PDF checks need pypdf next to WeasyPrint
- tool:beautiful-mermaid: Renders Mermaid diagrams that Kami re-themes to its palette

## Works in and needs
- Works in Claude Code, Codex, Cursor: skills folder (npx skills add)
- Works in Claude Code: plugin (v2.1.142 or newer)
- Works in Codex: plugin
- Works in Claude Desktop: uploaded skill ZIP
- Works in Any MCP client: MCP server
- Needs Python with WeasyPrint, pypdf and PyMuPDF: Renders and checks every PDF
- Needs cairo, pango, harfbuzz (Linux): WeasyPrint loads these native libraries
- Needs python-pptx: Only for editable PPTX decks
- Needs Node.js 20 or 22+: Only for documents with maths
- Needs Bash (WSL on Windows): The helper scripts are Bash

## How to tell it works
Install it, make sure WeasyPrint is installed, and say "make a one-page PDF summary of my startup for investors" with a few facts. It should first state the template and length in one line, then deliver an HTML and a PDF and list any [DATA NEEDED] gaps at the end.

## Related
- tw93/Kaku
- tw93/Waza
- lukilabs/beautiful-mermaid

## Safety
Install from github.com/tw93/kami or its own release asset kami.zip. The skill runs Python and Bash scripts and goes online for update checks and fonts. The MCP server renders HTML with your own file and network permissions, so give it only trusted local HTML.
