pn-typeset

pn-typeset is a command for Claude Code from perniemann/pnCore. It costs 35 tokens per session (760 once invoked), scanned A, original, MIT.

A focused typography review for a website or app. It covers fonts, text sizing, heading levels, font loading, and readability without changing layout or colours.

In plain words
What is it for?
Use it to choose and pair fonts, set a clear text scale and hierarchy, improve font loading, and make text easier to read.
Why use it?
It separates text-design problems from other visual changes, making typography issues easier to identify and fix.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/perniemann/pncore/pn-typeset
Clone the repo
git clone --depth 1 https://github.com/perniemann/pnCore

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pn-typeset

README.md
[![agentmods](https://agentmods.dev/badge/commands/perniemann/pncore/pn-typeset.svg)](https://agentmods.dev/commands/perniemann/pncore/pn-typeset)
Your own site
<a href="https://agentmods.dev/commands/perniemann/pncore/pn-typeset"><img src="https://agentmods.dev/badge/commands/perniemann/pncore/pn-typeset.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 760 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00760
Opus 5 $0.00017 $0.00380
Sonnet 5 $0.00007 $0.00152
Haiku 4.5 $0.00003 $0.00076

Measured 5d ago against content hash ac053640f81e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

pn-typeset scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/pn-core-mcp/content/commands/pn-typeset.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

pn-typeset

Start every response with: [pn-command] 🔺

Advanced (palette-hidden). Not in the / slash palette. Invoked by /pn-design (Typography substep), /pn-visual-tweak, or /pn-polish, or directly via get_command("pn-typeset").

Focused typography pass: audit and fix font choices, type scale, visual hierarchy, font loading, and readability. No layout changes, no color changes — typography only.

Flow

1. Context

Check .pncore-design.md for brand personality and visual ambition. If not found, ask: "What's the brand tone? (e.g. editorial/premium, clean/functional, bold/expressive)"

Typography pass (state before coding): Chosen display + body (or single strong family), loaded from where (e.g. Google Fonts), and why it matches the brand — not Inter, Geist, Roboto, Arial, or generic system-ui unless spec requires. Pairing: high contrast across axes (display + humanist sans, serif + geometric sans, etc.). Use weight/size contrast (e.g. 200 vs 800, or display 3×+ body size), not 400 vs 600 only. See reference/typography.md for impact lists by vibe (editorial, technical, startup).

2. Scope

If not specified: "Which pages or components should I focus on? Or reply 'all' for the full project."

3. Audit

Load get_skill("pn-typography") and consult [reference/typography.md](../skills/frontend/reference/typography.md).

Audit for:

  • Font choices: Are they distinctive or generic defaults (Inter, Geist, system-ui)? Do they match brand personality?
  • Type scale: Is there a consistent modular scale? Too many similar sizes?
  • Hierarchy: Three layers (display / reading / utility) — are they distinguishable?
  • Pairings: If two fonts, do they contrast on multiple axes? If one font, is it strong enough alone?
  • Font loading: font-display set? Critical fonts preloaded? Fallback metrics for zero FOUT?
  • OpenType: Are tabular numbers used for data? Other features available?
  • Fluid vs fixed: Are headings on content pages using clamp()? Is app UI using fixed rem?
  • Readability: Body text max-width: ~65ch? Sufficient line-height?

Read the full file on GitHub · 62 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 62 lines · 35 tokens per session scan A ac053640f81e

Subscribe to this mod's changes

pn-typeset is a command published in the GitHub repository perniemann/pnCore (0 stars, last pushed 2d ago), licensed MIT. It adds 35 tokens to every session and 760 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.