Ghost record
Describe an interaction in one sentence. The skill records a ghost-cursor demo, checks it and hands you the snippet.
Turns one sentence into a recorded ghost-cursor demo of a React component. It records with human-like input, replays the take to check it and prints the snippet to paste.
- Finds the component from your sentence: an export with that name, then a file, then JSX text or an
aria-labelthat matches. - Turns each verb into a step aimed at something stable:
data-ghost-idfirst, then role and name, then text. Never a class name. - Runs one script that starts the dev server if needed and records with human-like mouse and keyboard input.
- Replays the take and checks that the final DOM matches the live run. If it doesn’t, it records again, slower, up to three times.
- Saves
<component>.take.jsonnext to the component, prints a<GhostReplay>snippet and cleans up. It doesn’t edit your pages.
The story behind it is in Issue 02: A demo should let go.
When you want a live demo of a React component in a post or a docs page, and you can say in one sentence what the cursor should do. It only stops to ask when no component matches.
It works in Next.js projects that use @imuratalpay/ghost-cursor. In other setups, point it at a page that already renders the component inside a <GhostReplay>.
A real run on the ghost-cursor site, recording its filter list.
Plain English works.
- /type-taste Set the type before recording.
- /ui-diff Show the change in the PR.
The full skill
The instructions your agent reads, from SKILL.md.
- 011. Find the component
- 022. Write the steps
- 033. Run it
- 04Defaults
- 05Failure modes