pretext

Generate single-file HTML demos with dynamic text layout using pretext and Canvas.

1|Updated Jun 25, 2026
One-click install
npx skills add https://github.com/Signmanal/VIGIL --skill pretext-signmanal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pretext
Source: https://github.com/Signmanal/VIGIL/tree/main/skills/creative/pretext
Command: npx skills add https://github.com/Signmanal/VIGIL --skill pretext-signmanal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Standard web layout tools cannot efficiently create dynamic, interactive text effects like text flowing around moving obstacles, kinetic typography, or text-as-geometry gameplay, requiring complex workarounds that break performance or limit creative possibilities.

Core Features & Use Cases

  • DOM-free text measurement: Uses the pretext library to calculate line breaks, glyph positions, and text height without touching the DOM, enabling 60fps dynamic layout.
  • Creative demo generation: Builds self-contained single-file HTML demos for use cases including text reflow around draggable objects, breakout games with word-based bricks, shatter typography effects, and ASCII art with real prose.
  • Guided workflow: Includes pre-built templates, pattern libraries, and verification checklists to ensure demos are polished, performant, and visually striking.

Quick Start

Use the pretext skill to build an interactive single-file HTML demo where a paragraph of real prose flows around a draggable glowing orb with smooth 60fps performance.

Frequently Asked Questions about pretext

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

FAQPage Schema
How do I make text flow around moving obstacles in a browser at 60fps without DOM reflow?

To achieve dynamic text reflow around moving obstacles at 60fps, you can use DOM-free text measurement combined with HTML5 Canvas rendering. This approach calculates line breaks and glyph positions independently, enabling smooth interactive text layout effects without browser reflow.

What is kinetic typography and how can I build interactive demos for it?

Kinetic typography is the animation of moving, interactive text layouts in the browser. You can build self-contained single-file HTML demos for it by using specialized text measurement libraries and HTML5 Canvas to dynamically render and animate glyph positions.

Can I create text-based geometry games like Breakout using real prose without CSS layout constraints?

Yes, you can create text-as-geometry games like Breakout using real prose without CSS layout constraints. By measuring text dynamically and rendering via Canvas, the game calculates precise glyph collisions for interactive word-based gameplay.

Does generating interactive ASCII art with real prose require a complex build step?

No, generating interactive ASCII art with real prose does not require a complex build step. You can produce self-contained single-file HTML demos directly using text measurement and Canvas, ensuring performant visual output with zero build dependencies.

What are the limitations of using standard web layout tools for dynamic text effects?

Standard web layout tools are limited by DOM reflow and CSS constraints, which break performance and restrict creative possibilities for dynamic text effects. They cannot efficiently handle complex interactions like text reflow around moving obstacles or shatter typography at 60fps.