pretext

Generate dynamic geometric text layouts as single-file HTML demos.

3|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/DarkArty07/Aether-Agents --skill pretext-darkarty07
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pretext
Source: https://github.com/DarkArty07/Aether-Agents/tree/main/home/skills/creative/pretext
Command: npx skills add https://github.com/DarkArty07/Aether-Agents --skill pretext-darkarty07

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Standard web layout tools like CSS and DOM APIs cannot efficiently create dynamic, geometric text interactions such as text flowing around moving obstacles, per-glyph kinetic typography, or text-as-geometry gameplay, as they lack pre-render line break measurement and per-grapheme positioning without expensive DOM reflows.

Core Features & Use Cases

  • DOM-free text measurement: Uses the @chenglou/pretext library to calculate line breaks, per-line widths, and per-grapheme positions without touching the DOM, enabling 60fps interactive text layouts.
  • Creative demo templates: Includes pre-built single-file HTML templates for common patterns like text reflow around a draggable orb, ASCII obstacle typography, and shatter particle effects.
  • Use case example: Build an interactive editorial demo where a real manifesto flows around a morphing 3D wireframe shape, or a breakout game where bricks are measured words from a poem.

Quick Start

Ask the AI to generate a creative pretext demo for your needs, such as a text reflow effect around a moving object or a kinetic typography animation, and it will produce a ready-to-open single HTML file you can run locally with a simple Python server.

Frequently Asked Questions about pretext

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create kinetic typography and text reflow around moving objects in the browser?

Kinetic typography and text reflow around moving obstacles require DOM-free text measurement to calculate per-grapheme positions without reflows. Using the @chenglou/pretext library with HTML5 Canvas enables 60fps interactive geometric text layouts unachievable with standard CSS.

What is the best way to build generative art with ASCII art using real prose?

Generative ASCII art using real prose is best built by measuring text line breaks and per-glyph positions independently of the DOM. This approach allows real words to act as geometric obstacles or game bricks within self-contained single-file HTML demos.

Why does text layout around moving obstacles cause performance issues with standard DOM and CSS?

Standard DOM and CSS text layout causes performance issues around moving obstacles because dynamic geometric interactions require expensive DOM reflows for line break measurement and per-grapheme positioning, lacking the pre-render measurement needed for 60fps updates.

Can I generate text-as-geometry games like breakout using measured words from a poem?

Yes, you can build text-as-geometry games like breakout where bricks are measured words from a poem. By calculating per-line widths and per-grapheme positions via DOM-free measurement, text naturally functions as interactive game geometry on HTML5 Canvas.

Do I need a build step to run interactive kinetic typography demos locally?

No build step is required to run interactive kinetic typography demos locally. The output is a self-contained single-file HTML demo that you can execute immediately using a simple local Python server without any complex bundling or compilation.

What are the limitations of using CSS for multiline shrink-wrap UI components?

CSS limitations for multiline shrink-wrap UI components include the inability to perform pre-render line break measurement and per-grapheme positioning without triggering expensive DOM reflows, making it unsuitable for dynamic 60fps interactive text layouts.