pretext

Build single-file browser demos that measure and lay out text without DOM reflow.

Updated May 24, 2026
One-click install
npx skills add https://github.com/anxiety135790/hermes-skills --skill pretext-anxiety135790
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pretext
Source: https://github.com/anxiety135790/hermes-skills/tree/main/creative/pretext
Command: npx skills add https://github.com/anxiety135790/hermes-skills --skill pretext-anxiety135790

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you build browser-based creative demos where text layout is part of the visual design, especially when words need to flow around shapes, become obstacles, or animate as geometry instead of plain paragraphs.

Core Features & Use Cases

  • Obstacle-aware text flow: Lay out prose around moving objects, ASCII forms, or irregular corridors using precomputed line widths.
  • Creative typography demos: Build kinetic type, shatter effects, text-as-geometry games, and typographic generative art in a single self-contained HTML file.
  • Precision layout workflows: Measure multiline text, create shrink-wrapped cards, and render grapheme-level positioning without DOM reflow.
  • Use Case: Turn an editorial paragraph into a dramatic interactive scene where the text parts around a draggable orb or measured logo.

Quick Start

Ask for a single-file pretext demo that uses real prose and a dark, polished visual style, then specify the obstacle or motion you want the text to flow around.

Frequently Asked Questions about pretext

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

FAQPage Schema
How do I flow text around moving obstacles in canvas without DOM reflow?

You can flow text around moving obstacles by precomputing line metrics and applying layoutNextLineRange to measure text widths without DOM reflow, enabling smooth canvas rendering for kinetic typography.

What is kinetic typography and how does text-as-geometry work in browser demos?

Kinetic typography in browser demos treats text as geometry by using grapheme-aware segmentation and canvas rendering to animate shatter particles or editorial layouts within a single self-contained HTML file.

Can I build generative art with editorial text layouts in a single HTML file?

Yes, you can build generative art with editorial text layouts in a single HTML file by applying grapheme-aware segmentation and canvas rendering to create shrink-wrapped text cards and ASCII logo masking.

How do I measure multiline text for shrink-wrapped text cards in browser demos?

Measure multiline text for shrink-wrapped cards by using measureLineStats to capture precomputed line metrics, enabling grapheme-level positioning and precision layout workflows without triggering DOM reflow.

Does this creative typography approach support grapheme-aware segmentation for ASCII logo masking?

Yes, this creative typography approach supports grapheme-aware segmentation, allowing you to apply ASCII logo masking and layoutWithLines to render text-as-geometry effects directly on the canvas.

What's the best way to create interactive text that parts around a draggable orb on canvas?

The best way to create interactive text parting around a draggable orb is using precomputed line widths with layoutNextLineRange on canvas, allowing prose to dynamically flow around moving obstacles without DOM reflow.