ShadowKingYT444/motion-debugger / plugin/motion-debugger/skills/motion
motion
VerifiedCreate and verify polished website motion from a normal website or app prompt. Use when the user tags Motion Debugger or asks for expressive animations, spatial scenes, scroll choreography or refined microinteractions. Includes runnable spring, scroll chapter, articulated colony, task handoff, elapsed task sequence, kinetic identity field and modal drawer recipes, then actual browser evidence.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.9 KB |
| agents/openai.yaml | config | 269 B |
| recipes/colony-scene.mjs | script | 12.9 KB |
| recipes/drawer.mjs | script | 3.5 KB |
| recipes/elapsed-sequence.mjs | script | 6.2 KB |
| recipes/kinetic-field.mjs | script | 12.6 KB |
| recipes/scene-actor-adapter.mjs | script | 3.2 KB |
| recipes/scroll-chapters.mjs | script | 2.1 KB |
| recipes/spring.mjs | script | 3.1 KB |
| recipes/task-handoff.mjs | script | 2.5 KB |
| recipes/transition-bindings.mjs | script | 6.4 KB |
| recipes/transition-patterns.mjs | script | 7.1 KB |
| references/evidence.md | markdown | 5.5 KB |
| references/transition-authoring.md | markdown | 4.9 KB |
| references/usage.md | markdown | 8.3 KB |
recipes/task-handoff.mjs
View on GitHubimport {animateSpring} from './spring.mjs';
/** A persistent task token retargets between worker cards without position resets. */
export function createTaskHandoff({stage, token, workers, gap = 12, onArrive = () => {}}) {
if (!stage || !token || !workers?.length) throw new TypeError('stage, token and worker elements required');
if (!Number.isFinite(gap) || gap < 0 || gap > 128) throw new TypeError('Token gap must be 0–128 pixels');
let current = 0, generation = 0, notified = -1, disposed = false, initialized = false;
const destinations = () => {
const root = stage.getBoundingClientRect();
return workers.map(worker => {const rect = worker.getBoundingClientRect(); return {x: rect.left - root.left + rect.width / 2 - token.offsetWidth / 2, y: rect.top - root.top - token.offsetHeight - gap};});
};
let sx, sy;
const paint = () => {
if (!initialized) return;
token.style.transform = `translate3d(${sx.state.value}px, ${sy.state.value}px, 0)`;
const settled = sx.state.settled && sy.state.settled;
stage.dataset.handoff = settled ? 'arrived' : 'traveling'; token.dataset.worker = String(current);
if (settled && notified !== generation) {notified = generation; onArrive({index: current, worker: workers[current]});}
};
const initial = destinations()[0];
sx = animateSpring(paint, {value: initial.x, frequency: 2.4}); sy = animateSpring(paint, {value: initial.y, frequency: 2.4}); initialized = true;
const send = index => {
if (disposed) throw new Error('Handoff disposed');
if (!Number.isInteger(index) || index < 0 || index >= workers.length) throw new RangeError('Worker index out of range');
current = index; generation++; const point = destinations()[current];
// Avoid an intermediate callback if reduced motion snaps X before Y is retargeted.
initialized = false; sx.retarget(point.x); sy.retarget(point.y); initialized = true;
workers.forEach((worker, i) => {worker.dataset.assigned = String(i === current);}); paint();
};
const listeners = workers.map((worker, index) => {const activate = () => send(index); worker.addEventListener('click', activate); return () => worker.removeEventListener('click', activate);});
const resize = () => send(current); globalThis.addEventListener('resize', resize); paint();
return {send, get state() {return {worker: current, x: sx.state, y: sy.state};}, dispose() {if (disposed) return; disposed = true; listeners.forEach(remove => remove()); globalThis.removeEventListener('resize', resize); sx.dispose(); sy.dispose();}};
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |