Pretext Skill — AI skill for Claude Code
AI skill for @chenglou/pretext — exact text metrics without DOM reflows.
How to install Pretext Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open yaniv-golan/pretext-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Pretext Skill does
AI skill for @chenglou/pretext — exact text metrics without DOM reflows.
Alternatives in AI
- Xerj — Local-first search engine and MCP server for AI agents 12.5k ★
- BrowserSkill — Let AI agents use your real, logged-in browser without interrupting your work 9.1k ★
- Ccstatusline — by sirmalloc - A highly customizable status line formatter for Claude Code CLI that displays model info, git b 5.5k ★
README
Pretext Skill
[](https://yaniv-golan.github.io/pretext-skill/static/install-claude-desktop.html)
[](https://opensource.org/licenses/MIT) [](https://agentskills.io) [](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/plugins) [](https://cursor.com/docs/plugins) [](https://github.com/yaniv-golan/skill-creator-plus)
An AI agent skill that helps developers use **[@chenglou/pretext](https://github.com/chenglou/pretext)** — a small, tree-shakable TypeScript library that computes exact text metrics without DOM reflows.
Uses the open [Agent Skills](https://agentskills.io) standard. Works with Claude Desktop, Claude Cowork, Claude Code, Codex CLI, Cursor, Windsurf, Manus, ChatGPT, and any other compatible tool.
About @chenglou/pretext
[Pretext](https://github.com/chenglou/pretext) is a small, tree-shakable TypeScript library by Cheng Lou. It uses `CanvasRenderingContext2D.measureText` internally, segments text, measures once, caches, then does arithmetic for all subsequent layouts. Each `layout()` call is ~0.0002ms — safe to call every animation frame.
**Key capabilities:**
- Know text dimensions before rendering (virtual scrolling, masonry layouts)
- Auto-fit text to a container (find largest font that fits N lines)
- Flow text around obstacles (magazine-style layouts)
- Render rich inline text — mentions, chips, cod
Related Skills
Footnote
Agentic RAG: an AI research agent for your documents. It plans its own searches, retries, and every claim link
Raycast CLI Assistant
AI in Raycast without Raycast Pro: ask, chat, translate and rewrite text through the Claude Code or Codex CLI,
SciHumanizer
A Claude skill that writes and rewrites English and French prose without the measurable habits of AI text, the
Tauri Plugin MCP
Allows AI agents (e.g., Cursor, Claude Code) to debug within Tauri apps via screenshot capture, window managem
Axuse
Accessibility-first browser & computer use for AI agents — one MCP server for every harness (Codex, Claude Cod
Webframes
A native macOS workspace for web projects and AI coding agents: live pages on a canvas, DOM-aware comments, re
Related Agents
Compositor
Invoked for PDF rendering, text-layer setup, and annotation anchoring / coordinate math. Guards against coordi
UI Smoke
Fast, read-only smoke check of a running UI (Haiku, low effort): is the page or screen up, does it show text X
Innovation Brainstormer
Skill for generating ideas with 300% ROI for EITR, providing exact metrics, exactly 2 risks per idea, and exac