Token导航 LogoToken导航

Agent Skill · 研究检索

ui-typography(用户界面排版)

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

ui-typography 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 8,985。

总安装 15,176周安装 608GitHub Stars 196下载 4,913核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ui-typography(用户界面排版)
来源仓库:https://github.com/bencium/bencium-marketplace
仓库路径:skills/ui-typography
安装命令:
npx skills add https://github.com/bencium/bencium-marketplace --skill ui-typography
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/bencium/bencium-marketplace --skill ui-typography

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于优化用户界面中的字体排版与文字层级。适合调整字号、行高、字重和段落间距。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。提供可读性与视觉层次的设计建议。ui-typography 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

需结合品牌风格和屏幕阅读需求进行选择。主要用于提升文本内容的可访问性和美观度。

来源仓库内路径:skills/ui-typography

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/bencium/bencium-marketplace --skill ui-typogra…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ui-typography 怎么安装?

在终端执行 npx skills add https://github.com/bencium/bencium-marketplace --skill ui-typography。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ui-typography 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ui-typography 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

ui-typography 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

ui-typography 用的人多吗?

公开数据是累计安装 15,176 次,近一周安装 608 次,下载 4,913 次,GitHub 196 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ui-typography 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
ui-typography

用户界面排版 · 本页

15,176196调用外部服务未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

UI Typography Skill

Attribution

These rules are distilled from **Matthew Butterick's *Practical Typography*** (https://practicaltypography.com). Butterick is a typographer, writer, and type designer whose work bridges professional typography and everyday digital writing. Thank you, Matthew, for making this knowledge accessible and encyclopedic. If you find this skill valuable, consider supporting his work directly.

Mode of Operation

These are permanent rules — not trends, not opinions. They come from centuries of typographic practice, validated by how the human eye reads. They do not go out of style.

ENFORCEMENT (default): When generating ANY UI with visible text, apply every rule automatically. Use correct HTML entities, proper CSS. Do not ask permission. Do not explain. Just produce correct typography.

AUDIT: When reviewing existing code or design, identify violations and provide before/after fixes.

Reference files (read when generating CSS or looking up entities):

  • references/css-templates.md — Full CSS baseline template, responsive patterns, OpenType features
  • references/html-entities.md — Complete entity table with all characters and codes

Characters

Quotes and Apostrophes — Always Curly

Straight quotes are typewriter artifacts. Use “ ” for double, ‘ ’ for single.

Apostrophes always point down — identical to closing single quote ’. Smart-quote engines wrongly insert opening quotes before decade abbreviations ('70s) and word-initial contractions ('n'). Fix with explicit ’.

The <q> tag auto-applies curly quotes when <html lang="en"> is set.

Hawaiian okina points upward — it's a letter, not an apostrophe. Use opening single quote or anglicize.

JSX/React Implementation Warning

Unicode escape sequences (\u2019, \u201C, etc.) do NOT work in JSX text content. They render as literal characters — the user sees \u2019 instead of a curly apostrophe. This is because JSX text between tags is treated as string literals by the transpiler, not as JavaScript expressions.

What fails:

{/* WRONG — renders literally as \u2019 */}
<p>Don\u2019t do this</p>

What works (pick one):

  1. Actual UTF-8 characters (preferred): Paste the real character directly into the source file. <p>Don\u2019t do this</p> {/* This is the actual curly apostrophe character U+2019 */}
  2. JSX expression with string literal: Wrap in curly braces so the JS engine interprets the escape. <p>Don{'\u2019'}t do this</p>
  3. HTML entity (HTML files only): Use &rsquo; — but this does NOT work in JSX/React.

For bulk fixes via CLI, use sed with raw UTF-8 bytes (not escape sequences):

CURLY=$(printf '\xe2\x80\x99')  # U+2019 RIGHT SINGLE QUOTATION MARK
sed -i '' "s/don't/don${CURLY}t/g" file.tsx

In JavaScript data arrays and string literals, \u2019 works correctly because the JS engine processes the escape. The bug only affects JSX text content between tags.

Dashes and Hyphens — Three Distinct Characters

CharacterHTMLUse
- (hyphen)-Compound words (cost-effective), line breaks
– (en dash)&ndash;Ranges (1–10), connections (Sarbanes–Oxley Act)
— (em dash)&mdash;Sentence breaks—like this

Never approximate with -- or ---. If you open with "from", pair with "to" not en dash. Hyphen for compound names (marriage); en dash for joint authorship. Em dash typically flush; add &thinsp; if crushed. No slash where en dash belongs. Hyphenate phrasal adjectives (five-dollar bills). No hyphen after -ly adverbs.

Ellipses — One Character

Use &hellip; (…), not three periods. Spaces before and after; use `` on the text-adjacent side. For interrupted dialogue, prefer em dash over ellipsis.

Math and Measurement

Use &times; for multiplication, &minus; for subtraction. Use + and = from keyboard. En dash is acceptable as simple minus. Dimensions: 8.5″ × 14″ uses &times;.

Foot and inch marks — the ONE exception to curly quotes. Must be STRAIGHT: ' for foot, " for inch. Use ` between values: 6' 10"`.

Trademark and Copyright

Use real symbols: &copy; &trade; &reg;, never (c) (TM) (R). ™/® are superscripts, no space before. © is inline, followed by `` then year. "Copyright ©" is redundant — word OR symbol, not both.

Paragraph and Section Marks

&sect; (§) and &para; (¶) always followed by `: &sect; 1782. Spell out at sentence start. Double for plurals: &sect;&sect;`.

Accented Characters

Proper names: accents are MANDATORY (François Truffaut, Plácido Domingo). Loanwords: check dictionary — some naturalized (naive), some not (cause célèbre).

Other Punctuation

  • Semicolons join independent clauses. Colons introduce completion. Don't mix them
  • Question marks: underused — simplify topic sentences with them
  • Exclamation points: overused — budget ONE per long document. Never multiple in a row
  • Ampersands: correct in proper names only. Write "and" in body text
  • Parentheses/brackets: do NOT adopt formatting of surrounded material
  • Emoticons/emoji: OK in email/Slack. Never in formal documents or professional UI copy

Spacing

One Space After Punctuation — Always

Exactly one space after any punctuation. Never two. Not debatable. Two spaces create rivers and disrupt text balance. The period already contains visual white space.

Nonbreaking Spaces

` prevents line break. Use before numeric refs (&sect; 42, Fig. 3), after © (&copy; 2025), after honorifics (Dr. Smith`), between foot/inch values.

White-Space Characters

NeedTool
Space between wordsOne word space (spacebar)
Prevent line break``
New line, same paragraph<br>
New paragraph<p> tags
New page (print)page-break-before: always
Suggest hyphenation point&shy;

Never hold spacebar. Never double carriage returns for spacing. Never tabs for indentation in output. HTML collapses all whitespace to single space (except ``).


Text Formatting

Bold and Italic

Rule 1: Bold OR italic. Mutually exclusive. Never combine. Rule 2: Use as little as possible. If everything is emphasized, nothing is.

Serif: italic for gentle, bold for strong. Sans serif: bold only — italic sans barely stands out. Never bold entire paragraphs. Never use quotation marks for emphasis.

Underlining — Never

Never underline in a document or UI. Typewriter workaround. Use bold or italic. For web links, use subtle styling: text-decoration-thickness: 1px; text-underline-offset: 2px.

All Caps — Less Than One Line, Always Letterspaced

Caps are harder to read (homogeneous rectangles vs varied lowercase contour). Suitable for short headings, labels, captions. ALWAYS add 5–12% letterspacing. ALWAYS ensure kerning is on. NEVER capitalize whole paragraphs. letter-spacing: 0.06em in CSS.

Small Caps — Real Only

Never fake (scaled-down regular caps). Use font-variant-caps: small-caps with fonts that have real small caps (OpenType smcp). System fonts lack them. Add letterspacing + kerning.

Point Size

Print: 10–12pt. Web: 15–25px. The 12pt default is a typewriter relic. Half-point differences matter. Use smallest increment for emphasis. Use clamp() for fluid web sizing.

Letterspacing

5–12% extra on ALL CAPS and small caps. Nothing on lowercase. Never spread so far apart that letters could fit in the gaps. CSS: letter-spacing: 0.05em to 0.12em.

Kerning — Always On

No exceptions. font-feature-settings: "kern" 1; text-rendering: optimizeLegibility;

Ligatures

Mandatory only when fi/fl visually collide. Check bold and italic too. Otherwise optional. CSS: font-feature-settings: "liga" 1.

Alternate Figures

Tabular ("tnum") for data tables. Oldstyle ("onum") for body text. Default figures are fine for most uses. font-variant-numeric: tabular-nums lining-nums for numeric tables.

Font Selection

  1. No goofy fonts (novelty, script, handwriting, circus) in professional work
  2. No monospaced for body text — code only (and Courier is the worst monospaced)
  3. Print body: strongly prefer serif
  4. Web body: serif or sans both fine on modern screens
  5. Metrics spacing in InDesign, never optical (optical mangles kerning)

Mixing Fonts

Max 2 fonts. Each gets a consistent role. Can mix serif+serif or sans+sans. Rarely mix within a paragraph. Lower contrast often more effective than high contrast.


Page Layout

Body Text First

Set body text BEFORE anything else. Four decisions determine everything: font, point size, line spacing, line length. All other elements calibrate against these.

Line Length — 45–90 Characters

The #1 readability factor designers get wrong. The #1 flaw in responsive web layouts. Measure in characters, not inches. Alphabet test: fit 2–3 lowercase alphabets per line. CSS: max-width: 65ch on text containers.

Line Spacing — 120–145% of Point Size

line-height: 1.2 to 1.45. Single-spaced (~117%) is too tight. Double (~233%) is too loose. Word processor "Single" and "Double" both miss the optimal range.

Page Margins

One inch is not enough for proportional fonts. Print: 1.5–2.0″ at 12pt. Web: max-width on text containers plus padding. Don't fear white space — generous margins look professional.

Text Alignment

Left-align for web (default). Justified requires hyphens: auto — browser engines are crude. Centered: sparingly, only for short titles (< 1 line). Never center whole text blocks.

Paragraph Separation — Indent OR Space, Never Both

First-line indent: 1–4× point size. text-indent: 1.5em. Optional on first paragraph. Space between: 50–100% of font size. margin-bottom: 0.75em. Never double <br> tags.

Headings — Max 3 Levels

  1. Don't all-caps headings (unless very short + letterspaced)
  2. Don't underline headings
  3. Don't center headings (rare exceptions)
  4. Emphasize with space above and below — subtle and effective
  5. Use bold, not italic — stands out better
  6. Smallest point-size increment needed (body 11pt → heading 13pt, not 18pt)
  7. hyphens: none on headings
  8. Space above > space below (heading relates to text that follows)
  9. Keep heading with next paragraph (page-break-after: avoid)
  10. Tiered numbers (1.1, 2.1) over roman numerals (I.A.1.a.i)

Block Quotations

Reduce size + line spacing slightly. Indent 2–5em. No quotation marks (indent signals the quote). Keep line length readable. Use sparingly — long block quotes signal lazy writing.

Lists

Semantic markup (<ul>, <ol>), never manual bullets. Prefer hollow bullets. Asterisks are too small for bullets. Don't over-indent.

Tables — Remove Borders, Add Padding

Data creates an implied grid. Borders add clutter. Keep only thin rule under header row. padding: 0.5em 1em. Tabular figures for numeric columns. Right-align numbers.

Rules and Borders

Try space above and below first. Border thickness: 0.5–1pt. No patterned borders. Thick lines are chartjunk.

Flow Control

Widows (last line alone at top of page) and orphans (first line alone at bottom). CSS print: orphans: 2; widows: 2. Headings: page-break-after: avoid. Soft hyphens &shy; for words that confuse hyphenation engines.

Columns and Grids

Print columns: 2–3 on letter paper, never 4. Web columns: awkward (indefinite bottom edge). Grids guide, not guarantee — simpler grids enforce more consistency. Aligning ugly to a grid still produces ugly.


Responsive Web Typography

The rules don't change with screen size. Same line length, line spacing, hierarchy.

  1. Scale font-size and container width together
  2. Always max-width on text containers — never edge-to-edge text
  3. Don't use ch unit for exact measurement (only measures zero width)
  4. clamp() for fluid scaling: font-size: clamp(16px, 2.5vw, 20px)
  5. Mobile minimum: padding: 0 1rem on text containers
  6. The common failure: images/nav scale carefully, body text ignored

Screen Considerations

Modern screens render type nearly as well as print. "Sans serif for screens" was true for 72dpi and is now obsolete. Serif fonts work fine on modern screens. Dark mode: reduce weight slightly. Test on macOS and Windows (antialiasing differs).


Maxims of Page Layout

  1. Body text first — its 4 properties determine everything
  2. Foreground vs background — don't let chrome upstage body text
  3. Smallest visible increments — half-points matter
  4. When in doubt, try both — make samples, don't theorize
  5. Consistency — same things look the same
  6. Relate new to existing — each element constrains the next
  7. Keep it simple — 3 colors and 5 fonts? Think again
  8. Imitate what you like — emulate good typography from the wild

平台分布

Codex

33.66%
按下载量换算1,654

Claude

30.04%
按下载量换算1,476

Cursor

20.57%
按下载量换算1,011

Gemini CLI

10.14%
按下载量换算498

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills