Typography
Announce at start: "I'm using the humane:typography skill to separate safe typographic corrections from editorial choices."
Polish text without taking authorship away from its author. This skill owns
mechanical microtypography and an editorial/spelling review. It may apply only
corrections whose meaning, voice, and cadence do not change; everything else is
a proposal.
Boundary
| Concern |
Owner |
| What a string says, its vocabulary, voice, and purpose |
ux-writing |
| Nonbreaking spaces, protected pairs, quote/dash/space mechanics, obvious symbol residue |
typography |
| Typeface selection and script coverage |
type-specimen |
| Text measure, truncation, wrapping, and whether translated copy fits |
layout-rules |
| Product terminology or a disputed spelling fixed by a house dictionary |
The project's style guide; flag the conflict |
Do not rewrite for concision, vary repeated words, remove sentence fragments,
or reduce dash frequency under the label “cleanup.” Those are authorial choices.
Establish the contract
Before recommending a rule that differs by language or standard, establish:
- Language: English, Russian, or named spans of each in mixed text.
- Standard: the project's house style if one exists; otherwise the named
editorial/typographic standard (for example Chicago or New Hart's Rules for
English; Lopatin, Milchin, or a publisher's house style for Russian).
- Medium: plain text, Markdown, interface string, HTML source, or print.
Read nearby content, localization metadata, and the project style guide first.
If language or standard is unstated and the answer would materially change a
recommendation, ask the user before making that recommendation. Do not
silently choose US vs British spelling, quote style, serial-comma policy,
Russian ё policy, dash convention, or how aggressively short words are
protected. If the distinction cannot affect the requested mechanical check,
continue and state the narrow assumption instead of asking ceremonially.
For mixed-language text, apply each language's rules only inside the span whose
language is known. Never normalize a quoted title, command, URL, code span,
identifier, captured user quote, or brand spelling merely because it looks
foreign.
Quick reference
| Need |
Read |
| English spacing, protected pairs, quotes, dashes |
english.md |
| Russian spacing, protected pairs, quotes, dashes |
russian.md |
| Mechanical vs editorial decisions, spelling, artifact triage, report shape |
editorial-pass.md |
Read only the language reference that applies. Read both for mixed-language
text, and label the boundaries used.
Pass 1 — Mechanical corrections
Inspect the smallest complete source that preserves context. Protect code,
URLs, file paths, identifiers, Markdown destinations, placeholders, template
syntax, and verbatim quotations from automated replacement.
Classify a change as mechanical only when there is one valid correction under
the established contract and no plausible shift in meaning or voice. Typical
mechanical work includes:
- required nonbreaking spaces and protected pairs;
- spaces around punctuation and symbols under the chosen language standard;
- unambiguous quote, apostrophe, dash, ellipsis, multiplication-sign, degree,
number/unit,
№, and § corrections;
- invisible or damaged Unicode such as zero-width residue, a replacement
character, or a literal escaped Unicode sequence accidentally shown to a
reader;
- orphan Markdown emphasis markers or duplicated punctuation only when the
intended character is unambiguous.
The bundled helper provides a repeatable first pass and never writes source
files:
python3 scripts/typography.py check --language en --standard chicago path/to/text.md
python3 scripts/typography.py format --language ru --standard lopatin path/to/text.md
Use - for stdin. check emits a structured report; format emits corrected
text to stdout. Review its output before applying a patch. The helper is a
conservative detector, not an editorial authority: a clean run does not prove
the prose is correct. Its deliberately closed standard list is chicago,
new-harts, or ap for English and lopatin, milchin, or gost for Russian;
apply a project's custom house style in the human review rather than inventing
a CLI token for it.
Pass 2 — Editorial and spelling review
Read editorial-pass.md. Report these separately
from the mechanical pass:
- spelling that depends on locale, house dictionary,
ё, a proper name, or
product terminology;
- punctuation with more than one defensible reading;
- sentence rhythm, fragments, repetition, paragraphing, tone, and dash density;
- suspicious LLM habits that may be intentional: symmetrical three-part lists,
generic transitions, excessive headings, rhetorical contrasts, emoji, arrows,
or repeated em dashes.
Offer a small set of concrete alternatives and explain the effect of each.
Never apply one until the user chooses it or has already authorized that class
of editorial change.
Output contract
Always begin with Context: language, standard, medium, protected regions,
and assumptions.
For a formatting or apply request, keep Mechanical corrections (Location |
Before | After | Rule) and Editorial choices (Location | Current | Options |
Decision needed) in separate sections. “None” is valid; do not invent choices
to fill either table. End with Verification: helper command run, sources
inspected, and anything not verified.
For a standalone review, use the repository's shared review contract:
- Findings — one table with Severity | Location | Before | After | Why and
an added Category column whose value is
Mechanical or Editorial choice. The category keeps the two classes separate without producing two
reports. For an editorial choice, After contains the options, not a silent
rewrite. Cap at 15 and never pad.
- Considered but Rejected — two to five real candidates and why they were
left alone.
- Verification — what was actually checked; name any missing dictionary,
house guide, language boundary, or runtime rendering check.
- Verdict — exactly
Block, Needs changes, or Approve.
Under humane:review, return only findings in the orchestrator's required
shape; its severity scale, consolidation, cap, and verdict win.
When the user asked for a review, remain read-only. When the user asked to apply
fixes, apply the mechanical section only, then pause on unresolved authorial
choices. Preserve the original file format and line endings.
Safety and honesty
- A nonbreaking-space policy is not universal. Protect only pairs justified by
the selected language, standard, and medium.
- “Looks AI-generated” is not a defect and cannot be inferred from punctuation.
Report only the observable pattern and its reading cost.
- Never claim a full spelling check without the relevant dictionary or house
word list. Name what was checked manually.
- Never normalize code-like content or external quotations without explicit
authorization.
- The user's explicit words > the selected standard > the project's existing
system > this skill's defaults > personal taste. Surface conflicts.
1---2name: typography-23description: Review or mechanically format English and Russian text for microtypography, protected word pairs, punctuation and symbol artifacts, and spelling while keeping editorial choices separate from safe corrections. Use when polishing prose or UI copy after the wording is settled, or when an agent-generated draft contains suspicious dashes, symbols, spacing, or Markdown residue. Triggers on typography, microtypography, typographic cleanup, nonbreaking spaces, protected pairs, punctuation cleanup, spelling pass, editorial pass, LLM artifacts, smart quotes, Russian typography, английская типографика, русская типографика, неразрывные пробелы, редактура текста.4---56# Typography78**Announce at start:** "I'm using the humane:typography skill to separate safe typographic corrections from editorial choices."910Polish text without taking authorship away from its author. This skill owns11mechanical microtypography and an editorial/spelling review. It may apply only12corrections whose meaning, voice, and cadence do not change; everything else is13a proposal.1415## Boundary1617| Concern | Owner |18| --- | --- |19| What a string says, its vocabulary, voice, and purpose | `ux-writing` |20| Nonbreaking spaces, protected pairs, quote/dash/space mechanics, obvious symbol residue | `typography` |21| Typeface selection and script coverage | `type-specimen` |22| Text measure, truncation, wrapping, and whether translated copy fits | `layout-rules` |23| Product terminology or a disputed spelling fixed by a house dictionary | The project's style guide; flag the conflict |2425Do not rewrite for concision, vary repeated words, remove sentence fragments,26or reduce dash frequency under the label “cleanup.” Those are authorial choices.2728## Establish the contract2930Before recommending a rule that differs by language or standard, establish:31321. **Language:** English, Russian, or named spans of each in mixed text.332. **Standard:** the project's house style if one exists; otherwise the named34 editorial/typographic standard (for example Chicago or New Hart's Rules for35 English; Lopatin, Milchin, or a publisher's house style for Russian).363. **Medium:** plain text, Markdown, interface string, HTML source, or print.3738Read nearby content, localization metadata, and the project style guide first.39If language or standard is unstated and the answer would materially change a40recommendation, **ask the user before making that recommendation**. Do not41silently choose US vs British spelling, quote style, serial-comma policy,42Russian `ё` policy, dash convention, or how aggressively short words are43protected. If the distinction cannot affect the requested mechanical check,44continue and state the narrow assumption instead of asking ceremonially.4546For mixed-language text, apply each language's rules only inside the span whose47language is known. Never normalize a quoted title, command, URL, code span,48identifier, captured user quote, or brand spelling merely because it looks49foreign.5051## Quick reference5253| Need | Read |54| --- | --- |55| English spacing, protected pairs, quotes, dashes | [english.md](references/english.md) |56| Russian spacing, protected pairs, quotes, dashes | [russian.md](references/russian.md) |57| Mechanical vs editorial decisions, spelling, artifact triage, report shape | [editorial-pass.md](references/editorial-pass.md) |5859Read only the language reference that applies. Read both for mixed-language60text, and label the boundaries used.6162## Pass 1 — Mechanical corrections6364Inspect the smallest complete source that preserves context. Protect code,65URLs, file paths, identifiers, Markdown destinations, placeholders, template66syntax, and verbatim quotations from automated replacement.6768Classify a change as mechanical only when there is one valid correction under69the established contract and no plausible shift in meaning or voice. Typical70mechanical work includes:7172- required nonbreaking spaces and protected pairs;73- spaces around punctuation and symbols under the chosen language standard;74- unambiguous quote, apostrophe, dash, ellipsis, multiplication-sign, degree,75 number/unit, `№`, and `§` corrections;76- invisible or damaged Unicode such as zero-width residue, a replacement77 character, or a literal escaped Unicode sequence accidentally shown to a78 reader;79- orphan Markdown emphasis markers or duplicated punctuation only when the80 intended character is unambiguous.8182The bundled helper provides a repeatable first pass and never writes source83files:8485```bash86python3 scripts/typography.py check --language en --standard chicago path/to/text.md87python3 scripts/typography.py format --language ru --standard lopatin path/to/text.md88```8990Use `-` for stdin. `check` emits a structured report; `format` emits corrected91text to stdout. Review its output before applying a patch. The helper is a92conservative detector, not an editorial authority: a clean run does not prove93the prose is correct. Its deliberately closed standard list is `chicago`,94`new-harts`, or `ap` for English and `lopatin`, `milchin`, or `gost` for Russian;95apply a project's custom house style in the human review rather than inventing96a CLI token for it.9798## Pass 2 — Editorial and spelling review99100Read [editorial-pass.md](references/editorial-pass.md). Report these separately101from the mechanical pass:102103- spelling that depends on locale, house dictionary, `ё`, a proper name, or104 product terminology;105- punctuation with more than one defensible reading;106- sentence rhythm, fragments, repetition, paragraphing, tone, and dash density;107- suspicious LLM habits that may be intentional: symmetrical three-part lists,108 generic transitions, excessive headings, rhetorical contrasts, emoji, arrows,109 or repeated em dashes.110111Offer a small set of concrete alternatives and explain the effect of each.112Never apply one until the user chooses it or has already authorized that class113of editorial change.114115## Output contract116117Always begin with **Context**: language, standard, medium, protected regions,118and assumptions.119120For a formatting or apply request, keep **Mechanical corrections** (Location |121Before | After | Rule) and **Editorial choices** (Location | Current | Options |122Decision needed) in separate sections. “None” is valid; do not invent choices123to fill either table. End with **Verification**: helper command run, sources124inspected, and anything not verified.125126For a standalone review, use the repository's shared review contract:1271281. **Findings** — one table with Severity | Location | Before | After | Why and129 an added **Category** column whose value is `Mechanical` or `Editorial130 choice`. The category keeps the two classes separate without producing two131 reports. For an editorial choice, `After` contains the options, not a silent132 rewrite. Cap at 15 and never pad.1332. **Considered but Rejected** — two to five real candidates and why they were134 left alone.1353. **Verification** — what was actually checked; name any missing dictionary,136 house guide, language boundary, or runtime rendering check.1374. **Verdict** — exactly `Block`, `Needs changes`, or `Approve`.138139Under `humane:review`, return only findings in the orchestrator's required140shape; its severity scale, consolidation, cap, and verdict win.141142When the user asked for a review, remain read-only. When the user asked to apply143fixes, apply the mechanical section only, then pause on unresolved authorial144choices. Preserve the original file format and line endings.145146## Safety and honesty147148- A nonbreaking-space policy is not universal. Protect only pairs justified by149 the selected language, standard, and medium.150- “Looks AI-generated” is not a defect and cannot be inferred from punctuation.151 Report only the observable pattern and its reading cost.152- Never claim a full spelling check without the relevant dictionary or house153 word list. Name what was checked manually.154- Never normalize code-like content or external quotations without explicit155 authorization.156- The user's explicit words > the selected standard > the project's existing157 system > this skill's defaults > personal taste. Surface conflicts.