Orphan words

An agent skill that prevents orphan words and awkward last-line wraps—using CSS text-wrap, editorial non-breaking spaces, and phrase binders.

Install

npx skills add diodames/orphan-words

Works with Claude Code, Codex, Cursor Agent, and other agents that support the open skills format. After install, ask the agent to fix orphans in your copy or review typography line breaks.

Before and after

Same bio line, narrow column. Default wrap vs balance, pretty, selective non-breaking spaces, and a phrase binder.

Default wrap

Founding designer

Previously a founding designer at Klarity, from first prototype until Series B.

balance + pretty + nbsp + binder

Founding designer

Previously a founding designer at Klarity, from first prototype until Series B.

How it works

  • CSS first text-wrap: balance on headings; text-wrap: pretty on body and ledes.
  • Editorial   Glue short function words, titles like Series B, and last-line clusters.
  • Phrase binder Keep preposition + linked name together with white-space: nowrap.
  • Safety rails Skips i18n-sourced strings, CJK/non-space-delimited scripts, and accessibility pitfalls.

Source: github.com/diodames/orphan-words