Pretext Motion Bubble

VerifiedCaution

Generate or refine a standalone preview page that shows animated text reflow around a moving video subject inside a chat-style bubble.

Sby Skills Guide Bot
DevelopmentAdvanced
7/24/2026
Claude CodeCursorCodex
#pretext#text-reflow#video-mask#motion-layout#vite-preview

Recommended for

Automated summary

Produces a standalone preview page in which paragraph text reflows in real time around a moving video subject, presented as a chat-style response bubble and powered by the @chenglou/pretext layout engine.

Strengths

  • Lays out a concrete ordered pipeline: demo config, blocked horizontal intervals per line band, per-frame video mask, then layoutNextLine().
  • Keeps the preview shell focused and the local run trivial (npm run dev, plus a LAN variant for sharing).
  • States a clear extension contract: every frame must resolve to blocked horizontal intervals per line, even for richer shapes.
  • Explicitly avoids scope creep such as ASCII art or live app integration unless the user asks for it.

Limitations

  • Assumes familiarity with the @chenglou/pretext API (prepareWithSegments(), layoutNextLine()) and its specific file layout.
  • Requires a Node/Vite setup and an actual video clip of the subject for the mask to work.
  • Does not cover wiring the effect into a real application, which is deferred to a separate adapter layer.
When to use it

Use it when you need a locally runnable, shareable demo of text re-laying itself around an animated video subject inside a chat-bubble presentation.

When not to use it

Avoid it if you want character-art conversion, direct integration into an existing app, or you have no video subject clip to drive the effect.

Security analysis

Caution
Quality score82/100

The skill is a legitimate local preview workflow with no destructive commands, secret exfiltration, obfuscation, or safety-disabling instructions. However, it includes package installation and network-exposing dev-server commands, so it warrants caution rather than a fully safe rating.

Findings
  • •SKILL.md instructs `npm install` and running Vite dev servers despite no allowed-tools being declared; `npm install` can execute dependency lifecycle scripts.
  • •The `npm run dev:lan` command exposes the preview server on the LAN, which may be unintended in shared or untrusted networks.
How this analysis is made

Examples

Chat-bubble reflow demo
Build a standalone preview page where a clip of a dancing person pushes paragraph text around in real time inside a chat-style response bubble, using @chenglou/pretext for layout, and start the local Vite server so I can open it.
Clean up blocked intervals
My text still overlaps the subject in the preview. Keep the same contract — every frame resolving to blocked horizontal intervals per line — but make the reflow cleaner around the silhouette.
Share on LAN
Make this Pretext motion bubble preview easy to open from another machine on my network with npm run dev:lan, without turning the effect into ASCII art or adding extra UI panels.

name: pretext-motion-bubble description: Use when generating or refining a standalone preview page that shows Pretext-driven animated text reflow around a moving video subject inside a chat-style bubble, especially when the effect should be easy to run and share locally.

Pretext Motion Bubble

This skill is for standalone preview demos where text must re-layout around an animated subject, instead of being converted into ASCII art or injected into a live app. Favor a focused preview shell that foregrounds the moving subject and the live text reflow itself.

When to Use

  • The user wants a moving person, clip, or silhouette to push paragraph text around in real time.
  • The user wants the output presented like a model response bubble, but as a standalone preview page.
  • The user wants @chenglou/pretext used as the layout engine, especially prepareWithSegments() and layoutNextLine().
  • The user wants something that can be launched locally and shared without adapting a target app first.

First Pass Workflow

  1. Put demo-wide knobs in src/core/demoConfig.ts.
  2. Compute blocked horizontal intervals per line band with src/core/textFlow.ts.
  3. Extract a per-frame subject mask with src/core/videoMask.ts.
  4. Feed each remaining slot into layoutNextLine() from src/app.ts.
  5. Render the positioned lines inside a focused preview shell and start the local preview server.

Extension Rules

  • Do not switch to video-to-ASCII unless the user explicitly wants character art.
  • Prefer using the actual video subject as the obstacle if the user names a real person, meme, or clip.
  • If a user wants richer shapes later, keep the same contract: every frame should resolve to blocked horizontal intervals per line.
  • Preserve the chat-bubble presentation unless the user asks for a full-screen editorial layout instead.
  • Prefer removing explanatory chrome over adding more panels when the effect itself is the main point of the page.
  • Treat real app integration as a separate future adapter layer, not part of the default preview workflow.

Local Run

npm install
npm run dev

Then open the local URL printed by Vite.

For LAN preview:

npm run dev:lan

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/pretext-motion-bubble-mryiqiuu/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/pretext-motion-bubble-mryiqiuu' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/pretext-motion-bubble-mryiqiuu/download' --output '.skill-downloads/pretext-motion-bubble-mryiqiuu/SKILL.md.part' && mv '.skill-downloads/pretext-motion-bubble-mryiqiuu/SKILL.md.part' '.skill-downloads/pretext-motion-bubble-mryiqiuu/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/pretext-motion-bubble-mryiqiuu/SKILL.md' && test -s '.skill-downloads/pretext-motion-bubble-mryiqiuu/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pretext-motion-bubble' && cp -R '.skill-downloads/pretext-motion-bubble-mryiqiuu' '.claude/skills/pretext-motion-bubble'

Cursor
test -f '.skill-downloads/pretext-motion-bubble-mryiqiuu/SKILL.md' && test -s '.skill-downloads/pretext-motion-bubble-mryiqiuu/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/pretext-motion-bubble' && cp -R '.skill-downloads/pretext-motion-bubble-mryiqiuu' '.cursor/skills/pretext-motion-bubble'

Codex
test -f '.skill-downloads/pretext-motion-bubble-mryiqiuu/SKILL.md' && test -s '.skill-downloads/pretext-motion-bubble-mryiqiuu/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/pretext-motion-bubble' && cp -R '.skill-downloads/pretext-motion-bubble-mryiqiuu' '.agents/skills/pretext-motion-bubble'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/pretext-motion-bubble-mryiqiuu'

openskills read 'pretext-motion-bubble-mryiqiuu'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/pretext-motion-bubble-mryiqiuu/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills