pn-audit-typography

pn-audit-typography is a command for Claude Code, Cursor from perniemann/pnCore. It costs 38 tokens per session (593 once invoked), scanned A, original, MIT.

A review of the text design in a website, including font choices, text sizes, loading behavior, visual hierarchy, and readability.

In plain words
What is it for?
Use it to check display and body fonts, size scales, line spacing, fallbacks, and accessible reading sizes.
Why use it?
It helps fix pages where text lacks structure, loads poorly, or is hard to read.

Command for Claude CodeCursor

Written for Cursor and Claude Code: shipped in a Cursor plugin, but also a Claude Code command (commands/*.md).

Part of the pn-core plugin — 150 skills, 19 commands, 9 agents, 1 MCP server shipped together

Good fit Use it to check display and body fonts, size scales, line spacing, fallbacks, and accessible reading sizes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/perniemann/pncore/pn-audit-typography
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.

Clone the repo
git clone --depth 1 https://github.com/perniemann/pnCore

Made for: Claude Code, Cursor.

Or install pn-core, the plugin that ships this one along with the rest of its 150 skills, 19 commands, 9 agents, 1 MCP server.

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-audit-typography

README.md
[![agentmods](https://agentmods.dev/badge/commands/perniemann/pncore/pn-audit-typography/github.svg)](https://agentmods.dev/commands/perniemann/pncore/pn-audit-typography)
Your own site
<a href="https://agentmods.dev/commands/perniemann/pncore/pn-audit-typography"><img src="https://agentmods.dev/badge/commands/perniemann/pncore/pn-audit-typography/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pn-audit-typography

Your own site · 80×15
<a href="https://agentmods.dev/commands/perniemann/pncore/pn-audit-typography"><img src="https://agentmods.dev/badge/commands/perniemann/pncore/pn-audit-typography.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 593 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00038 $0.00593
Opus 5.5 $0.00015 $0.00237
Sonnet 5.5 $0.00008 $0.00119
Haiku 4.5 $0.00004 $0.00059

Measured 3mo ago against content hash cf7c017a91ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pn-audit-typography 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 3mo 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-audit-typography.md · 66 lines

How it starts

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

pn-audit-typography

Start every response with: [pn-command] 🔺

Advanced (palette-hidden). Not in the / slash palette. Invoked by the /pn-frontend-audit umbrella, or directly via get_command("pn-audit-typography").

Focused typography pass: audit type scale, font choices, loading behavior, hierarchy, and readability. No layout changes (use pn-audit-layout), no color changes (use pn-colorize) — typography only.

Flow

1. Context

Check .pncore-stack.md and target files/pages. If scope is unclear, ask: "Which pages or components should I audit? (landing / all / specific paths)"

2. Audit

Load get_skill("pn-frontend-design-philosophy") for the typography scoring rubric (Phase 2).

Type scale:

  • Is there a distinct display / reading / utility layer?
  • Are font sizes from a defined scale (e.g. 4px grid, modular scale)?
  • Body text ≥ 16px for reading contexts?
  • Line height 1.4–1.7 for body, tighter for display?

Font choices:

  • Distinctive, characterful typeface (not default Inter / Geist / system-ui)?
  • Strong contrast between display font and body font?
  • Web fonts loaded via font-display: swap?
  • Fallback stack defined?

Hierarchy:

  • Clear visual weight difference between heading levels?
  • No more than 2–3 font families on a single page?
  • Consistent heading sizing across routes?

Accessibility:

  • All body text ≥ 4.5:1 contrast ratio?
  • No text over busy backgrounds without overlay?
  • Small caps / all-caps only on short strings (≤20 chars)?

Output: numbered issues table (location | issue | severity | suggested fix). Save to docs/audits/.

Gate: Present issues for triage. Apply fixes only after confirmation.

3. Fix

Apply in severity order:

  • Wrong font → update CSS variable and fallback stack
  • Missing font-display: swap → add to @font-face or Google Fonts URL
  • Broken scale → introduce CSS custom properties for type steps
  • Contrast failure → darken text or lighten background per brand tokens

Read the full file on GitHub · 66 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. 3mo ago First seen · 66 lines · 38 tokens per session scan A cf7c017a91ac

Subscribe to this mod's changes

pn-audit-typography is a command published in the GitHub repository perniemann/pnCore (0 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 593 once invoked, about $0.0002 per session on Opus 5.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.

Related

pn-audit-typography compared with commands from other repositories

pn-audit-typography next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pn-audit-typographyperniemann/pnCoreCommand0todayMITA38Claude Code, Cursor
design-to-codeyonatangross/orchestkitCommand312todayMITA52Claude Code, Cursor
readExaDev/agent-commsCommand414d agoMITA6Claude Code
roomsExaDev/agent-commsCommand414d agoMITA6Claude Code
t800-fixKhar-AG/t-800-agentCommand83mo agoMITA0Claude Code
t-800-factoryKhar-AG/t-800-agentCommand83mo agoMITA0Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code