> ## Documentation Index
> Fetch the complete documentation index at: https://herwaka.shesharp.org.nz/llms.txt
> Use this file to discover all available pages before exploring further.

# Week 8 — Typst PDF Automation for Job Applications

> Use the Typst skill in Claude Code to turn your Neon profile into a pixel-perfect CV PDF. Paste a job description, get a tailored cover letter — generated in your voice, sourced from your real profile data.

> [!TIP]
>
> **Multi-week series · Week 8 of 8** · \~2 hours of class + lab · The grand finale

By the end of class your portfolio site has two new buttons: *Download CV* (produces a polished one-page CV from your Neon profile data) and *Generate cover letter* (paste a job description, get a custom PDF). Both compile via the Typst skill. From this week onward, every real job application takes you 10 minutes, not 60.

> [card] Profile in Postgres
>
> Your CV lives as structured data in Neon — education, experience, projects, skills. One source of truth.

> [card] Typst skill in Claude Code
>
> The skill writes the `.typ` template, runs the CLI, returns a pixel-perfect PDF. You don't write any Typst by hand.

> [card] Tailored cover letters
>
> Paste a JD, click Generate. Claude writes in your voice, citing only real items from your profile.

## Learning objectives

By the end of this session, you should be able to:

* **Invoke the Typst skill through Claude Code** to turn structured profile data in Neon into a pixel-perfect, downloadable PDF — without writing a single line of Typst by hand.
* **Unify one data source (Neon `profile`) across two outputs** — the portfolio site and the CV / cover letter PDFs — proving that *data first, documents later* is a senior engineering habit.
* **Ship one-click "Download CV" and "Generate cover letter for \[job description]" buttons** on your live portfolio that produce custom PDFs on demand.

## Core topics

* Typst, in one paragraph: think "Markdown with superpowers that compiles to PDF". Same tool this lecture handout is compiled with.
* Skills in Claude Code — the Typst skill is shipped by Anthropic and knows how to generate common documents from structured input.
* Data-driven documents: why storing your CV fields in Neon (not Google Docs) makes the CV AI-editable forever.
* Cover letters are the perfect LLM task: structured input (your profile + a job description) + structured output (a formatted PDF).
* The meta moment: this lecture and your CV are both made with the same tool.

## Tools introduced this week

| Tool | Role this week |
| - | - |
| **Typst CLI** | Compiles `.typ` files to PDFs — fast and deterministic |
| **Typst skill** (Claude Code) | AI writes the `.typ` template and drives the compile |
| **Neon Postgres + Drizzle** | Stores your `profile` row: one source of truth |
| **Claude API** (optional) | Generates tailored cover-letter prose from a JD |
| **Vercel serverless function** | Runs Typst compilation on demand and streams PDF |

> [!NOTE]
>
> **Prerequisites:** Complete [Week 7 — Real-Time Slack Notifications](https://herwaka.shesharp.org.nz/tutorial/ai-bootcamp/week-07-slack-notifications.md) first. You need the auth, database, and rate-limit patterns from Weeks 4 and 7 in place.

> [card] [Download Week 8 PDF](https://cdn.jsdelivr.net/gh/ChanMeng666/her-waka@main/curriculum-pdfs/week-08-typst-cv.pdf)
>
> **Full lecture · 676 KB** — Session plan, hands-on lab steps, Typst-on-Vercel deployment patterns.

> [card] [Continue to the Capstone](https://herwaka.shesharp.org.nz/tutorial/ai-bootcamp/capstone.md)
>
> Weeks 9–12: team project

## Looking for the lighter version?

If a one-off polished PDF is all you need (cover letter, invoice, report) — without the database back-end — try the standalone [Create Professional PDFs tutorial](https://herwaka.shesharp.org.nz/tutorial/professional-pdf/overview.md). Same Typst skill, single-task scope, \~1.5 hours.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.