Skill / SKILL.md

pretext

yaniv-golan/pretext-skill

Help developers use @chenglou/pretext 1.0+, which measures and lays out multiline text without DOM reflow. Use for pretext, /rich-inline, layoutNextLine, upgrading from 0.0.x, text height, line count, shrink-wrap, auto-fit font size, line clamp, inline chips, mentions or images computed in JS; text around obstacles, even sprites or masks moving every frame; and canvas text whose letters move on their own: particles, game pieces, kinetic type, ASCII art. Also for its errors: "font must be a font string Canvas takes", "Text measurement requires OffscreenCanvas", or a layoutNextLine loop that never ends. Do NOT use for CSS-only layout, generic typography, or CSS shrink-to-fit questions.
2 views 14 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Help developers use @chenglou/pretext 1.0+, which measures and lays out multiline text without DOM reflow. Use for pretext, /rich-inline, layoutNextLine, upgrading from 0.0.x, text height, line count, shrink-wrap, auto-fit font size, line clamp, inline chips, mentions or images computed in JS; text around obstacles, even sprites or masks moving every frame; and canvas text whose letters move on their own: particles, game pieces, kinetic type, ASCII art. Also for its errors: "font must be a font string Canvas takes", "Text measurement requires OffscreenCanvas", or a layoutNextLine loop that never ends. Do NOT use for CSS-only layout, generic typography, or CSS shrink-to-fit questions.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/yaniv-golan/pretext-skill' skill-source

Use the complete skill-source/pretext/skills/pretext directory with your client’s skill installer.

  • pretext/skills/pretext

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory pretext/skills/pretext

Compatibility & requirements

Declared compatibility

Written for @chenglou/pretext 1.0.0 or later. Pre-1.0 projects need references/migration.md first.

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
1f370072f62c46a9374b6ce8d083b3e39f7eb208b99db498f150b5b4473de34a
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills