Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

emil-ask-lapse

БесплатноБез исполняемых скриптовНе проверен

Answer questions about Lapse — the drop-in animation inspector that slows time, records takes, scrubs frames, names moments, diffs motion, and exports…

freekmurzeот freekmurze★ 1 019 звёзд на GitHub

Об этом скилле

Lapse

Lapse is a drop-in animation inspector for web apps: slow every animation down, record an interaction as a take, scrub it frame by frame against the real DOM, pin notes to the frame that feels wrong, and copy structured animation state an agent can act on. Framework-neutral — React is one integration, not a requirement.

It answers the one question a screenshot, a video, or the source file cannot: what did this element actually look like 184ms into the transition, and how did that differ from a moment earlier?

Answering posture

Answer from this skill. When a question reaches past it — an exact type, a method signature, a default you're unsure of — read the installed package rather than guessing: node_modules/@aiforui/lapse/dist/*.d.ts is ground truth, and the panel's own behavior is in dist/panel.mjs. Never invent an API surface. Lapse's data contracts are deliberately honest about what they don't know (see Grades), and a plausible-sounding invented method is the one failure mode this skill exists to prevent.

If the user's project has Lapse installed, check the installed version before answering version-sensitive questions.

Name and install

The package is @aiforui/lapse, and it is not on npmjs.org — it ships with the course from a private registry at aiforui.dev. Anyone reading a public npm install lapse line is reading the unscoped public naming; in this course everything is scoped.

# project .npmrc — safe to commit, holds no secret
@aiforui:registry=https://aiforui.dev/npm/
# the token lives USER-level, never in the project
npm config set "//aiforui.dev/npm/:_authToken" "$AIFORUI_TOKEN"
npm install -D @aiforui/lapse

Three rules that cause nearly every install failure:

  1. Never ${AIFORUI_TOKEN} in the project .npmrc. pnpm 11 refuses to expand credentials from a committed file (a committed .npmrc can point a scope at any host) and warns instead. Keep the credential user-level and npm, pnpm, and Bun all read it identically. Yarn Berry ignores .npmrc entirely and needs npmScopes.aiforui in .yarnrc.yml — Yarn does expand env vars, so that one keeps the ${AIFORUI_TOKEN} form.
  2. Never alias it to a bare lapse with npm's npm: syntax. The MCP server and the Playwright adapter both depend on the scoped name, so an alias installs two copies and getSharedEngine() returns a different engine in each — the panel would drive one and app code the other.
  3. 401 means the token isn't reaching npm (nearly always an unexported variable, not a bad token). 404 from npmjs.org means the scope line isn't being picked up — check .npmrc is in the project root.

The companions live in the same scope and are covered by the same .npmrc: @aiforui/lapse-mcp, @aiforui/lapse-playwright.

Mounting

Entry points: @aiforui/lapse (React + core re-exports) · /core (headless, dependency-free) · /panel (framework-neutral mount, React bundled inside) · /install (side-effect timing patches only).

import { Lapse } from '@aiforui/lapse'
;<><YourApp /><Lapse /></>
// any framework, or none — React ships inside this entry
import { mountLapse } from '@aiforui/lapse/panel'
const lapse = mountLapse({ position: 'top-right' })  // await lapse.unmount() later
<!-- no build step; first in <head>. The IIFE build exposes window.lapse.
     Serve dist/panel.global.js from the installed package — a scoped private
     package is not on a public CDN. -->
<script src="/vendor/lapse-panel.global.js"></script>
<script>lapse.mountLapse()</script>

mountLapse() is idempotent, returns { engine, unmount() }, and takes the same options as <Lapse> (full prop table in API.md): position (8 edge slots, default 'bottom-left' — the panel is draggable, snaps, and the dragged slot persists and wins over the prop), engine (defaults to the process-wide shared singleton, so getSharedEngine() in app code drives the same instance the panel does), enter, and defaults.

The early-load race — the reason people think slow-mo "doesn't work"

Lapse slows time by patching requestAnimationFrame, performance.now, Date.now, setTimeout, and setInterval. Any library that cached a reference to those before the patch keeps the real clock and keeps running at full speed. Framer Motion and GSAP both cache.

mountLapse() and import '@aiforui/lapse/install' patch immediately (the panel itself waits for the DOM), so either can go first in the entry. But <Lapse> patches only when the component mounts — after everything imported above it. With the React component, the side-effect entry goes first:

// main.tsx — must be the first import
import '@aiforui/lapse/install'

import { createRoot } from 'react-dom/client'
import { App } from './App'

GSAP imported as an ES module is invisible to auto-detection — window.gsap doesn't exist — so hand Lapse your instance once:

im
Полный SKILL.md на GitHub

Установить emil-ask-lapse в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AGENTS.mdAPI.mdTROUBLESHOOTING.md

FAQ

Что делает скилл emil-ask-lapse?

Answer questions about Lapse — the drop-in animation inspector that slows time, records takes, scrubs frames, names moments, diffs motion, and exports animation state for agents — and wire it into a project. Use when the user mentions Lapse, @aiforui/lapse, lapse-mcp, lapse-playwright, the Lapse panel or extension; asks how to slow a page's animations down, record or scrub an interaction, scope a take to elements, record a page load, annotate a frame, copy the LLM export, address time by named moments, diff two moments or two builds, read a take's jank report or trigger causality; or when slow-mo, a take, or the panel isn't behaving.

Как установить скилл emil-ask-lapse?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл emil-ask-lapse запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить emil-ask-lapse с