typography-audit
Skill189 starsChanged 2 months agoMITView on GitHub
Audits font loading, type scales, measure, spacing, OpenType, and rendered punctuation with 78 scoped rules. Use when asked to "audit typography", "fix the fonts", or "review my type system". For a new visual direction use ui-design Direction; for general UI defects use ui-design Audit.
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-readySkill
- agent-skills-creatorSkill
- agents-mdSkill
- app-verificationSkill
- autoshipSkill
- ax-auditSkill
- chat-historySkill
- ci-speedupSkill
- codebase-architectureSkill
- dx-auditSkill
- eli5Skill
- ghostwriterSkill
- multi-tenant-architectureSkill
- planningSkill
- pr-babysitterSkill
- pr-creatorSkill
- presentation-creatorSkill
- product-designSkill
- save-mdSkill
- scaffold-cliSkill
- scaffold-nextjsSkill
- seoSkill
- test-auditSkill
- tidySkill
- ui-animationSkill
- ui-designSkill
- ui-verificationSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Run categories in priority order so CRITICAL findings surface even if the audit is cut short.
- Distinctive: line 30
After fixes, re-run only the rules that produced findings, then finalize the report.
- Very specific: line 82
Every finding: impact tag, rule ID, file:line, one-line issue, fix.
- Distinctive: line 88
Don't preload every rule file.
- Very specific: line 92
Don't flag missing OpenType features without confirming the loaded font ships them.
- Very specific: line 93
Every finding needs file:line and a concrete fix.
- Very specific: line 95
Don't equalize priorities.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Typography Audit
78 rules in 10 categories for web typography. Every finding names file, rule, and fix.
- IS: typography only: font loading, sizing, punctuation, spacing, hierarchy, text layout, OpenType features, typeface pairing, brand type, display type.
- IS NOT: broad UI review (accessibility, forms, navigation: use
ui-designAudit mode), or a redesign (new typefaces, scales: useui-designDirection mode).
Audit Workflow
Track this checklist:
Audit progress:
- [ ] Step 1: Scope. List changed files (or full sweep), map signals to categories
- [ ] Step 2: Run CRITICAL rules in scope (font-, size-, punct-)
- [ ] Step 3: Run HIGH rules in scope (spacing-)
- [ ] Step 4: Run remaining in-scope categories by descending priority
- [ ] Step 5: Report per the contract; every finding has file:line, rule ID, fix- Scope to changed files unless a full sweep is requested. For a PR, use the diff against its actual base merge-base, including committed changes, filtered to
.css,.scss,.html,.tsx/.jsx, and template files. - Map code to categories via the signal table; skip categories with no signal.
- Load rule files by prefix (
rules/font-*.md, etc.), only for the categories the signals selected. - Run categories in priority order so CRITICAL findings surface even if the audit is cut short.
- After fixes, re-run only the rules that produced findings, then finalize the report.
Scoping Signals → Categories
| Signal in code | Categories to load |
@font-face, font-family, font files, variable fonts, font-stretch, transform: scaleX on text | font- |
font-size, clamp(), media-query type changes, max-width on text, <em>/<strong>, text-decoration | size- |
| Copy in HTML/JSX (headings, paragraphs, labels) | punct- |
line-height, letter-spacing, word-spacing, margin on text, text-transform: uppercase | spacing- |
Heading elements, type scale tokens, --text-* properties | hierarchy- |
text-align, lists, blockquotes, multi-column text | layout- |
font-feature-settings, font-variant-*, figures/fractions in copy | opentype- |
| Logo/wordmark styles, brand tokens, text color tokens, license comments | brand- |
Two or more distinct font-family values | pairing- |
Hero/display sizes, drop caps, initial-letter | display- |
Rule Categories by Priority
| Priority | Category | Impact | Prefix | Rules |
| 1 | Font Selection & Weights | CRITICAL | font- | 11 |
| 2 | Sizing & Measure | CRITICAL | size- | 6 |
| 3 | Punctuation & Special Characters | CRITICAL | punct- | 12 |
| 4 | Spacing & Rhythm | HIGH | spacing- | 8 |
| 5 | Hierarchy & Scale | MEDIUM-HIGH | hierarchy- | 8 |
| 6 | Alignment & Layout | MEDIUM | layout- | 6 |
| 7 | OpenType Features | MEDIUM | opentype- | 7 |
| 8 | Brand & Identity | MEDIUM | brand- | 8 |
| 9 | Typeface Pairing | MEDIUM | pairing- | 5 |
| 10 | Display & Headlines | LOW-MEDIUM | display- | 7 |
Category map and impact rationale: rules/_sections.md. Each rule file gives why it matters plus an incorrect and a correct example. Category impact reflects the category's worst-case rules; report findings with the rule's own frontmatter impact, which frequently differs (e.g. brand-color is HIGH inside the MEDIUM brand- category because it holds the WCAG contrast floor).
Review Output Contract
Report findings as:
## Typography Audit Findings
### path/to/file.css
- [CRITICAL] `punct-smart-quotes` (file.css:42): Straight quotes in heading copy.
- Fix: Replace `"` with `“`/`”` (or UTF-8 curly quotes).
- [CRITICAL] `size-line-height` (file.css:18): `line-height: 20px`, a fixed value the 48px `h1` inherits, so its lines overlap.
- Fix: Use unitless `line-height: 1.5`.
### path/to/clean-file.css
- ✓ pass- Group by file; order by impact within file.
- Every finding: impact tag, rule ID,
file:line, one-line issue, fix. - Include clean files as
✓ passso coverage is visible. - End with a summary: counts per impact level.
Gotchas
- Don't preload every rule file. Load only the prefixes the signal table selects; a full load spends the budget on categories with no signal in scope.
- Report the rule's frontmatter
impact, never the category's. Two rules get misreported most:brand-coloris HIGH (an accessibility floor, not a brand nicety) andpunct-daggersis LOW-MEDIUM (decoration, despite sitting in a CRITICAL category). - Punctuation rules apply to rendered copy only. Flagging straight quotes or
--inside<code>,<pre>, or JS/TS string literals is a false positive; "fixing" them breaks the code. - Confirm the rendered font and computed styles through
ui-verificationwhen a finding depends on them. A CSS declaration alone does not prove which face loaded. - Don't flag missing OpenType features without confirming the loaded font ships them. Browsers silently ignore unsupported
font-feature-settingstags, so the fix does nothing. - Every finding needs
file:lineand a concrete fix; an unactionable finding forces a redo. - An audit is not a redesign. Proposing new pairings or scales turns a 10-minute review into a design project; flag the issue and route redesign asks to
ui-design. - Don't equalize priorities. A LOW-MEDIUM
display-nit above a CRITICAL faux-bold finding buries what actually looks broken.
Related Skills
ui-designAudit mode: broad frontend quality (accessibility, forms, navigation, motion); its typography coverage is shallower.ui-designDirection mode: choosing typefaces, scales, and visual direction from scratch; run when a finding becomes a redesign request.ghostwriter: heading and label wording. This skill governs only the casing of that copy (punct-case-rules).
Maintenance only: evals/evals.json contains regression scenarios for changes to this skill; it does not load during a user task.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

