AGENT SKILL

record-take

Record a reproducible screen video of a web page with CleanShot X from a scripted take. Use when the user wants a demo, showcase or looping video of a web app, or wants to write, change, rehearse or re-record a take.

License 许可
GPL-3.0
所属仓库
UNRULYEON/skills
最近更新
2026-11-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
record-take
description
Record a reproducible screen video of a web page with CleanShot X from a scripted take. Use when the user wants a demo, showcase or looping video of a web app, or wants to write, change, rehearse or re-record a take.

02 资源文件 12

03 SKILL.md 正文

A take is a TypeScript file that exports TAKE: a URL, a window size, and a list of steps. The runner opens the URL in the user's normal Safari, moves the real pointer and presses real keys, and records the Safari window with CleanShot X. The same take gives the same video on each run, because the delays come from a seeded random source.

bun <this skill's folder>/scripts/index.ts <take-file> --rehearse
  • --rehearse runs the steps without a recording.
  • --warmup stops after the page load until the user presses Enter, so that they can prepare the window by hand (sign in, close a banner).
  • No flag makes the recording.

Steps

  1. Find the take. For a take that the user names, search the project for a takes/ folder. Write a new take in a temp folder: your scratchpad when the session has one, $TMPDIR/record-take/ when it has none. Put it in the project only when the user asks for that, and then in the takes/ folder that is there, or in takes/ at the project root. Give the user the path of a new take. When the project has takes, read one before you write a new one: it shows the pace the user likes.
  2. Write or change the take. TAKES.md has every field, step and target. Read it before you write a step.
  3. Tell the user that the run starts, and that it takes control of the pointer and the keyboard until it ends. A touch on the mouse or a key during the run breaks the take.
  4. Rehearse until the run prints its last step and exits with code 0. The runner prints each step as n/total before it does the step, so the last printed line shows where a failure is.
  5. Record when the rehearsal is clean and the user wants the video. The runner prints The recording is on. when CleanShot X records, and only then plays the steps. The run is done when it exits with code 0 and a new video is in the CleanShot X export folder (defaults read pl.maketheweb.cleanshotx exportPath). Give the user that file path.

How to check a rehearsal

The terminal has no Screen Recording permission, so look at page state, not at screenshots. Add { eval: "return document.querySelector('h1')?.innerText" } steps where you want proof: the runner prints the returned value. Remove these probes before the recording.

A waitFor step after each action that loads or opens something is the usual fix for a step that fails on a slow run. It also makes the take independent of network speed, where a fixed wait is not.

What the machine must have

Give the user the applicable line when a run fails on it.

  • Safari > Develop > "Allow JavaScript from Apple Events" is on.
  • The terminal app has the Accessibility permission (System Settings > Privacy & Security). Without it the pointer and the keys do nothing.
  • CleanShot X is installed, and its "Record screen" shortcut is ctrl+alt+cmd+r. For a different shortcut, set CLEANSHOT_STOP_SHORTCUT. The runner uses this shortcut to stop the recording, so a wrong value leaves the recording on.
  • The screen is larger than the take's width and height plus the Safari toolbar. The runner prints a warning when the page area is not the requested size.

Ctrl+C stops the recording and closes the Safari window that the runner opened.

A run that fails with AppleEvent timed out had a Safari that did not answer. Run it again before you change the take.

The runner code

The code is in scripts/. bun test in that folder runs its tests. pointer.swift is compiled on the first run to ~/Library/Caches/record-take/pointer.

04 同仓库更多 Skills

UNRULYEON
UNRULYEON/skills

writing-for-agents

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

★ 0
UNRULYEON
UNRULYEON/skills

untangle-codebase

Untangle a whole codebase in one pass, so agents working in it read less per change, break less without noticing, and debug faster.

★ 0
UNRULYEON
UNRULYEON/skills

ui-sh

The ui.sh design system's tools for building and adapting UI: designing new UI from scratch, adding dark mode, generating a brand identity or marketing mockup board, cleaning up Tailwind classes, extracting reusable components, creating dark-mode raster image variants, comparing UI options in-browser with the ui.sh picker, making an existing UI responsive across breakpoints, and converting a screenshot, Figma export, mockup, or wireframe into semantic unstyled markup. Triggers on: design new UI, build a page or section, dark mode, add dark mode, brand kit, visual identity, marketing mockup, canonicalize Tailwind classes, clean up Tailwind, componentize, extract components, dark-mode image variant, ui.sh picker, compare UI options, make responsive, breakpoints, mobile/tablet/desktop layout, markup from image, screenshot to markup, Figma export to code, wireframe to markup.

★ 0
UNRULYEON
UNRULYEON/skills

transitions

Production-ready CSS transitions for web apps, plus tuning for motion that already exists. Use when implementing notification badges, dropdowns, modals, panel reveals, page transitions, card resizes, number pop-ins, text swaps, icon swaps, success checks, avatar group hovers, error state shakes, search/input clear, skeleton loaders, shimmer text, sliding tabs, tooltips, staggered text reveals, card hover tilt, plus-to-menu morph, or accordions. Triggers on "add a transition", "animate the dropdown", "make the modal open smoothly", "swap icon", "page slide", "stagger animation", "open / close transition", "make it animate", "fade between", "success animation", "form error", "shake on invalid", "hover lift", "avatar stack hover", "clear the search", "skeleton loader", "loading shimmer", "shimmer text", "sliding tabs", "segmented control", "tooltip", "reveal text", "tilt card", "3D hover tilt", "cursor glare", "plus to menu", "FAB morph", "accordion", "collapsible", "expand / collapse", "disclosure". Also covers polishing motion that already animates — "polish my transitions", "refine the motion", "tune the timing / easing", "make the animation feel better / less janky", "tighten the durations", "fix the stagger", "align to the motion tokens", "audit the motion", "review my animations", "scan for ad-hoc transitions", "tokenize my animations", "timing feels off", "too slow / too fast", "open close timing", "hover in out". Also the commands transitions reveal, transitions review, transitions apply, transitions polish.

★ 0
UNRULYEON
UNRULYEON/skills

simplify

Use this skill automatically when you feel your code is ready for human review, and whenever writing or reviewing code comments. Ready means the code works and achieves a stated goal, verified by your own tests and/or, if you deem it necessary, human testing.

★ 0
UNRULYEON
UNRULYEON/skills

review-pr

Review a pull request or local branch diff for correctness, security, lifecycle, error handling, tests, and meaningful performance risks. Use when asked to review PR changes, a branch, a commit range, or the current working tree and return a structured review.

★ 0