Skip to content

A Claude Code skill that reverse-engineers any animation frame by frame, then proves the copy moves the same.

Document the monorepo layout

NiazMorshed200769991471026f
diff --git a/README.md b/README.md
index 49f0e3a..4ca65e3 100644
--- a/README.md
+++ b/README.md
@@ -100,21 +100,24 @@ Name the thing, where it is and where it should go. Narrow it to one section, on
## What's inside
+This repo holds the skill and the site that shows it off. Only `skills/motion-clone/` is installed by the skills CLI.
+
| Path | What it is |
|---|---|
-| `SKILL.md` | The workflow Claude follows: scope, capture, spec, build, verify, report. |
-| `references/` | Capture recipes per source type, how to read frames into a spec, implementation patterns per stack, pass criteria and fixes. |
-| `scripts/capture.ts` | Records a page: video, frames, declared animations, computed styles, fonts, libraries, per-frame element tracks. Triggers: load, scroll, hover, leave, pointer path, drag, click, none. |
-| `scripts/frames.ts` | Extracts and crops frames from a video or gif. |
-| `scripts/compare.ts` | Frame-by-frame comparison: alignment, timing error, mismatch, activity curves, diff images. |
-| `scripts/easing.ts` | Fits a tracked property to named easings, detects overshoot and springs, diffs two tracks. |
-| `scripts/sheet.ts` | Labelled contact sheets and reference / clone / diff comparison sheets. |
+| `skills/motion-clone/SKILL.md` | The workflow Claude follows: scope, capture, spec, build, verify, report. |
+| `skills/motion-clone/references/` | Capture recipes per source type, how to read frames into a spec, implementation patterns per stack, pass criteria and fixes. |
+| `skills/motion-clone/scripts/capture.ts` | Records a page: video, frames, declared animations, computed styles, fonts, libraries, per-frame element tracks. Triggers: load, scroll, hover, leave, pointer path, drag, click, none. |
+| `skills/motion-clone/scripts/frames.ts` | Extracts and crops frames from a video or gif. |
+| `skills/motion-clone/scripts/compare.ts` | Frame-by-frame comparison: alignment, timing error, mismatch, activity curves, diff images. |
+| `skills/motion-clone/scripts/easing.ts` | Fits a tracked property to named easings, detects overshoot and springs, diffs two tracks. |
+| `skills/motion-clone/scripts/sheet.ts` | Labelled contact sheets and reference / clone / diff comparison sheets. |
+| `site/` | The showcase website (Next.js, static export on Cloudflare Workers) with the cloned examples running live. See [`site/README.md`](site/README.md). |
## Requirements
- [Bun](https://bun.sh) 1.1 or later.
- macOS or Linux. Windows is untested.
-- About 250 MB on first run for Chromium and ffmpeg, installed by `scripts/setup.sh` into the skill's own folder.
+- About 250 MB on first run for Chromium and ffmpeg, installed by `skills/motion-clone/scripts/setup.sh` into the skill's own folder.
The skills CLI can install it for other agents that read `SKILL.md`, but it has only been tested with Claude Code.
@@ -128,4 +131,4 @@ The skills CLI can install it for other agents that read `SKILL.md`, but it has
## License
-[MIT](LICENSE). The gallery recreates three cards from stripe.com as a study of the technique; it is not affiliated with or endorsed by Stripe. Stripe and Visa are trademarks of their respective owners.
+[MIT](LICENSE). The gallery and the site's examples recreate three cards from stripe.com as a study of the technique; it is not affiliated with or endorsed by Stripe. Stripe and Visa are trademarks of their respective owners.
diff --git a/site/README.md b/site/README.md
index a058ff9..2f7ee28 100644
--- a/site/README.md
+++ b/site/README.md
@@ -1,6 +1,6 @@
# motion-clone site
-The website for [motion-clone](https://github.com/NiazMorshed2007/motion-clone), a Claude Code skill that clones animations frame by frame. Next.js 16, exported as static files and served by a Cloudflare Worker (static assets only, no server code).
+The showcase website for the motion-clone skill in [`../skills/motion-clone`](../skills/motion-clone), a Claude Code skill that clones animations frame by frame. Commands below run from this `site/` folder. Next.js 16, exported as static files and served by a Cloudflare Worker (static assets only, no server code).
## Develop
@@ -29,7 +29,7 @@ SITE_URL=https://motion-clone.<your-subdomain>.workers.dev
Then either:
- **From this machine:** `npx wrangler login` once (or export `CLOUDFLARE_API_TOKEN` with the "Edit Cloudflare Workers" template), then `bun run deploy`.
-- **On every push:** in the Cloudflare dashboard, Workers & Pages → Create → Import a repository → this repo. Build command `bun run build`, deploy command `npx wrangler deploy`. Add `SITE_URL` as a build variable.
+- **On every push:** in the Cloudflare dashboard, Workers & Pages → Create → Import a repository → `NiazMorshed2007/motion-clone`. Root directory `site`, build command `bun run build`, deploy command `npx wrangler deploy`. Add `SITE_URL` as a build variable.
`wrangler.jsonc` names the Worker `motion-clone` and serves `./out`, with `404.html` for unknown paths.