Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

typography-audit

БесплатноБез исполняемых скриптовНе проверен

Audits font loading, type scales, measure, spacing, OpenType, and rendered punctuation with 78 scoped rules. Use when asked to "audit typography", "fix the…

mblodeот mblode★ 230 звёзд на GitHub

Об этом скилле

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-design Audit mode), or a redesign (new typefaces, scales: use ui-design Direction 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
  1. 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.
  2. Map code to categories via the signal table; skip categories with no signal.
  3. Load rule files by prefix (rules/font-*.md, etc.), only for the categories the signals selected.
  4. Run categories in priority order so CRITICAL findings surface even if the audit is cut short.
  5. 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 `&ldquo;`/`&rdquo;` (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 ✓ pass so 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-color is HIGH (an accessibility floor, not a brand nicety) and punct-daggers is 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-verification when a finding depends on them. A CSS declaration alone does not prove which face loaded.
  • Don't flag missing OpenType features without confirming
Полный SKILL.md на GitHub

Установить typography-audit в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

evals/evals.jsonevals/files/copy-punctuation/landing.htmlevals/files/font-loading/post.htmlevals/files/font-loading/site.cssevals/files/reading-measure/docs.cssevals/files/reading-measure/guide.htmlevals/files/terms-page/legal.cssevals/files/terms-page/terms.htmlrules/_sections.mdrules/_template.mdrules/brand-capitalization.mdrules/brand-color.mdrules/brand-cross-medium.mdrules/brand-dark-backgrounds.mdrules/brand-equity.mdrules/brand-identifiable-body.mdrules/brand-licensing.mdrules/brand-logo-typeface.mdrules/display-drop-caps.mdrules/display-grid-breaking.mdrules/display-headline-opentype.mdrules/display-headline-spacing.mdrules/display-large-type.mdrules/display-lead-paragraph.mdrules/display-swashes.mdrules/font-body-selection.mdrules/font-condensed-extended.mdrules/font-face-setup.mdrules/font-fallbacks.mdrules/font-monospaced.mdrules/font-optical-sizes.mdrules/font-quality.mdrules/font-rendering.mdrules/font-true-styles.mdrules/font-variable-fonts.mdrules/font-weight-body.mdrules/hierarchy-body-first.mdrules/hierarchy-caps-subheads.mdrules/hierarchy-consistent-system.mdrules/hierarchy-heading-color.md

FAQ

Что делает скилл typography-audit?

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.

Как установить скилл typography-audit?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл typography-audit запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить typography-audit с