---
name: "typst-invoice-template-builder"
description: "Generate pixel-perfect commercial invoices, receipts, and ledgers using Typst."
metadata:
  author: "Typst"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "create typst invoice template"
  - "import json in typst"
  - "calculate table totals typst"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Typst Commercial Invoice & Ledger

Leverages Typst functions, data import (CSV, JSON), and table formatting to build automated billing pipelines with calculation summaries and multilingual support.

## When to Invoke
Invoke this skill whenever you need to:
- create typst invoice template
- import json in typst
- calculate table totals typst

## Execution SOP & Rules
1. Import data dynamically using #let data = json("order.json").
2. Construct tables using #table(columns: (1fr, auto, auto, auto), ...) with align: right.
3. Calculate tax and gross totals within Typst script blocks before rendering.
4. Export reproducible vector PDFs with embedded fonts for long-term customer billing.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
