跳到正文
cccskills
免费在 GitHub 公开

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.

中文简介正在准备中。当前显示原文说明。

mblode/agent-skills星标 166(GitHub 166 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(82)

  • SKILL.md6.2 KB
  • evals/evals.json1.4 KB
  • rules/_sections.md3.2 KB
  • rules/_template.md1.3 KB
  • rules/brand-capitalization.md957 B
  • rules/brand-color.md1.4 KB
  • rules/brand-cross-medium.md814 B
  • rules/brand-dark-backgrounds.md1.0 KB
  • rules/brand-equity.md1.3 KB
  • rules/brand-identifiable-body.md1013 B
  • rules/brand-licensing.md1.4 KB
  • rules/brand-logo-typeface.md1.1 KB
  • rules/display-drop-caps.md1.2 KB
  • rules/display-grid-breaking.md1.0 KB
  • rules/display-headline-opentype.md1.1 KB
  • rules/display-headline-spacing.md1.0 KB
  • rules/display-large-type.md1.0 KB
  • rules/display-lead-paragraph.md1.0 KB
  • rules/display-swashes.md892 B
  • rules/font-body-selection.md1.1 KB
  • rules/font-condensed-extended.md1.6 KB
  • rules/font-face-setup.md1.2 KB
  • rules/font-fallbacks.md1.1 KB
  • rules/font-monospaced.md839 B
  • rules/font-optical-sizes.md1.6 KB
  • rules/font-quality.md1.3 KB
  • rules/font-rendering.md966 B
  • rules/font-true-styles.md2.0 KB
  • rules/font-variable-fonts.md1.0 KB
  • rules/font-weight-body.md973 B
  • rules/hierarchy-body-first.md1.2 KB
  • rules/hierarchy-caps-subheads.md900 B
  • rules/hierarchy-consistent-system.md1.2 KB
  • rules/hierarchy-heading-color.md1.0 KB
  • rules/hierarchy-heading-levels.md1.0 KB
  • rules/hierarchy-modular-scale.md1.2 KB
  • rules/hierarchy-size-contrast.md951 B
  • rules/hierarchy-weight-contrast.md1016 B
  • rules/layout-center-alignment.md959 B
  • rules/layout-justified-text.md1.0 KB
  • rules/layout-lists.md1.5 KB
  • rules/layout-optical-balance.md995 B
  • rules/layout-proximity-dividers.md1.1 KB
  • rules/layout-widows-orphans.md1.5 KB
  • rules/opentype-body-features.md1.0 KB
  • rules/opentype-kerning.md1.2 KB
  • rules/opentype-ligatures.md1.1 KB
  • rules/opentype-monoscript-kerning.md1.1 KB
  • rules/opentype-oldstyle-figures.md1.1 KB
  • rules/opentype-small-caps.md1.1 KB
  • rules/opentype-tabular-figures.md933 B
  • rules/pairing-contrast-harmony.md1.9 KB
  • rules/pairing-limit-typefaces.md983 B
  • rules/pairing-stress-skeleton.md2.2 KB
  • rules/pairing-superfamilies.md1.0 KB
  • rules/pairing-ui-fonts.md1.0 KB
  • rules/punct-abbreviations.md767 B
  • rules/punct-ampersands.md732 B
  • rules/punct-case-rules.md1.3 KB
  • rules/punct-daggers.md796 B
  • rules/punct-dashes.md1.4 KB
  • rules/punct-diacritics.md860 B
  • rules/punct-fractions.md895 B
  • rules/punct-midpoints.md670 B
  • rules/punct-primes.md950 B
  • rules/punct-single-space.md642 B
  • rules/punct-smart-quotes.md1.3 KB
  • rules/punct-symbols.md946 B
  • rules/size-body-text.md1.3 KB
  • rules/size-emphasis.md1.7 KB
  • rules/size-hanging-punctuation.md1.0 KB
  • rules/size-line-height.md1.0 KB
  • rules/size-line-length.md1022 B
  • rules/size-responsive.md1.2 KB
  • rules/spacing-hair-thin-spaces.md1.1 KB
  • rules/spacing-letterspacing-body.md1.3 KB
  • rules/spacing-letterspacing-uppercase.md1.6 KB
  • rules/spacing-nav-items.md1.0 KB
  • rules/spacing-paragraph-indent.md639 B
  • rules/spacing-paragraph-margins.md1.5 KB
  • rules/spacing-paragraph-separation.md831 B
  • rules/spacing-subhead-proximity.md799 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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 codeCategories to load
@font-face, font-family, font files, variable fonts, font-stretch, transform: scaleX on textfont-
font-size, clamp(), media-query type changes, max-width on text, <em>/<strong>, text-decorationsize-
Copy in HTML/JSX (headings, paragraphs, labels)punct-
line-height, letter-spacing, word-spacing, margin on text, text-transform: uppercasespacing-
Heading elements, type scale tokens, --text-* propertieshierarchy-
text-align, lists, blockquotes, multi-column textlayout-
font-feature-settings, font-variant-*, figures/fractions in copyopentype-
Logo/wordmark styles, brand tokens, text color tokens, license commentsbrand-
Two or more distinct font-family valuespairing-
Hero/display sizes, drop caps, initial-letterdisplay-

Rule Categories by Priority

PriorityCategoryImpactPrefixRules
1Font Selection & WeightsCRITICALfont-11
2Sizing & MeasureCRITICALsize-6
3Punctuation & Special CharactersCRITICALpunct-12
4Spacing & RhythmHIGHspacing-8
5Hierarchy & ScaleMEDIUM-HIGHhierarchy-8
6Alignment & LayoutMEDIUMlayout-6
7OpenType FeaturesMEDIUMopentype-7
8Brand & IdentityMEDIUMbrand-8
9Typeface PairingMEDIUMpairing-5
10Display & HeadlinesLOW-MEDIUMdisplay-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 the loaded font ships them. Browsers silently ignore unsupported font-feature-settings tags, so the fix does nothing.
  • Every finding needs file:line and 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-design Audit mode: broad frontend quality (accessibility, forms, navigation, motion); its typography coverage is shallower.
  • ui-design Direction 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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Implements agent-readiness on public sites and docs from Mintlify Agent Score, AFDocs, Is Agentic, Is It Agent Ready, or url-discovery-bench reports, or from server logs of agents 404ing on guessed URLs. Use when asked to "make our site agent-ready", "improve Agent Score", "fix llms.txt coverage", "agents keep 404ing on our docs", or when a pasted scorecard is the brief.

中文简介正在准备中。当前显示原文说明。

mblode/agent-skills1662026年10月26日 更新

Creates and improves portable Agent Skills with a validator, routing scenarios, and evidence-based keep, cut, merge, or retire decisions. Use when asked to "write a skill", "update all skills", "audit my SKILL.md", "remove redundant instructions", or fix skill triggering.

中文简介正在准备中。当前显示原文说明。

mblode/agent-skills1662026年10月26日 更新

agents-md

免费

Audits and edits agent instruction files, verifies repository commands, and migrates repositories to AGENTS.md as the single shared source. Use when asked to "improve my AGENTS.md", "migrate CLAUDE.md to AGENTS.md", or make instructions work across agents.

中文简介正在准备中。当前显示原文说明。

mblode/agent-skills1662026年10月26日 更新

Builds and maintains a repo's own verification harness (verify CLI, doctor, worktree isolation, feature map, seed data) and a reproduce-first bug handoff. Use when asked to "build a verification harness", "add a doctor command", "prove every feature still works", or "reproduce this bug report".

中文简介正在准备中。当前显示原文说明。

mblode/agent-skills1662026年10月26日 更新

autoship

免费

Runs a changesets npm release through the version PR, CI publish, and registry verification. Use when asked to "release this package", "autoship", "merge Version Packages", or diagnose a release that did not publish.

中文简介正在准备中。当前显示原文说明。

mblode/agent-skills1662026年10月26日 更新

ax-audit

免费

Audits agentic products for tool parity, authority, approval payloads, recovery, and trust using 24 rules and a ship verdict. Use when asked for an "AX audit", to review an agent approval flow, or whether an agent can operate the product.

中文简介正在准备中。当前显示原文说明。

mblode/agent-skills1662026年10月26日 更新

查看 mblode 的全部技能

报告此技能的问题