AI skill for @chenglou/pretext text measurement library
npx claudepluginhub yaniv-golan/pretext-skillAI skill for @chenglou/pretext — the 15KB TypeScript text measurement library that computes exact text metrics without DOM reflows
An AI agent skill that helps developers use @chenglou/pretext — the 15KB TypeScript library that computes exact text metrics without DOM reflows.
Uses the open Agent Skills standard. Works with Claude Desktop, Claude Cowork, Claude Code, Codex CLI, Cursor, Windsurf, Manus, ChatGPT, and any other compatible tool.
Pretext computes exact text dimensions using pure math — no DOM reflows. This skill teaches AI agents how to use it correctly, covering:
pretext-skill.zip— or install manually —
yaniv-golan/pretext-skill and click SyncFrom your terminal:
claude plugin marketplace add https://github.com/yaniv-golan/pretext-skill
claude plugin install pretext@pretext-marketplace
Or from within a Claude Code session:
/plugin marketplace add yaniv-golan/pretext-skill
/plugin install pretext@pretext-marketplace
https://github.com/yaniv-golan/pretext-skill into the Search or Paste Link boxpretext-skill.zipNote: ChatGPT Skills are currently in beta, available on Business, Enterprise, Edu, Teachers, and Healthcare plans only.
pretext-skill.zipUse the built-in skill installer:
$skill-installer https://github.com/yaniv-golan/pretext-skill
Or install manually:
pretext-skill.zippretext/ folder to ~/.codex/skills/Works with Claude Code, Cursor, Copilot, Windsurf, and 40+ other agents:
npx skills add yaniv-golan/pretext-skill
Download pretext-skill.zip and extract the pretext/ folder to:
.agents/skills/ in your project root~/.agents/skills/The skill auto-activates when you mention pretext, @chenglou/pretext, text measurement without DOM, auto-fit font size, layoutNextLine, or text around obstacles. Examples:
I need to measure text height without triggering a reflow
How do I auto-fit a headline to 3 lines using pretext?
Help me flow text around a circular image using layoutNextLine