motion-lexicon
AGENTS.md46 starsChanged 4 months agoMITView on GitHub
This repository is Motion Lexicon, a static React + TypeScript product for visual animation vocabulary. Use these files as the current project context: SEO is generated during npm run build. The build flow is: scripts/prerender.ts enumerates static routes from src/data/site.ts, calls the React server renderer in src/entry-server.tsx, injects Helmet tags from src/components/Seo.tsx, writes dist/<route>/index.html, then writes dist/sitemap.xml and dist/robots.txt. The deployed artifact is static HTML, CSS, and JS. Runtime deployment can use static hosting such as Cloudflare Pages, Vercel static…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- public/llms-full.txtllms.txt
- public/llms.txtllms.txt
- motion-lexiconSkill
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Use these files as the current project context:
- Distinctive: line 16
Write Chinese by default.
- Distinctive: line 17
Use direct positive phrasing.
- Distinctive: line 22
Keep this as a static frontend application unless the user adds a server-side requirement.
- Distinctive: line 25
Keep the product workflow centered on browsing motion, previewing behavior, tuning parameters, copying prompt/code, and reading review …
- Distinctive: line 26
Treat React as the site implementation.
- Distinctive: line 27
Keep the V6 release contract at exactly 100 Components across 11 categories and 10 Page Blocks.
- Distinctive: line 57
Before handing work back, run the relevant checks:
- Distinctive: line 80
Default query values should stay omitted from the URL.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Instructions
Operating Context
This repository is Motion Lexicon, a static React + TypeScript product for visual animation vocabulary.
Use these files as the current project context:
README.md: project overview, commands, routes, SEO model, and delivery status.PRODUCT.md: product promise, user model, phase strategy, and quality bar.DESIGN.md: launch architecture, visual system, URL state, and acceptance criteria.prototype/motion-lexicon-prototype.html: archived phase-one reference; current production styling lives insrc/styles.cssandsrc/library.css.
Communication
- Write Chinese by default.
- Use direct positive phrasing. Avoid先否定再转折的表达方式。
- Be concrete about files, commands, routes, and verification results.
Product Boundary
- Keep this as a static frontend application unless the user adds a server-side requirement.
- Store content, assets, categories, recipes, and i18n data on the frontend.
- Preserve the V6 component-library system: a quiet chroma-zero shell, expressive Product Mono, Editorial Warm, and Spatial Dark scenes, black primary actions, a restrained blue state color, thin borders, compact radii, small mono metadata, dominant preview canvases, and dense documentation structure.
- Keep the product workflow centered on browsing motion, previewing behavior, tuning parameters, copying prompt/code, and reading review guidance.
- Treat React as the site implementation. User-facing exports are portable Prompt, HTML, CSS, and framework-independent JavaScript where interaction requires it.
- Keep the V6 release contract at exactly 100 Components across 11 categories and 10 Page Blocks. Preserve 44 canonical Primitives and all 91 source terms through canonical mappings and redirects; the Motion Lexicon Skill remains independently versioned at 4.2.0.
Technical Stack
- Vite, React, TypeScript.
- Tailwind CSS v4 plus the project stylesheet in
src/styles.css. - Local shadcn-style UI components backed by Radix primitives.
- lucide-react icons.
- TanStack Router.
- i18next and react-i18next.
- react-helmet-async for route metadata.
- Build-time static prerendering through
src/entry-server.tsxandscripts/prerender.ts. - Vitest and Playwright for verification.
SEO Model
SEO is generated during npm run build.
The build flow is:
tsc -bvite buildtsx --tsconfig tsconfig.app.json scripts/prerender.ts
scripts/prerender.ts enumerates static routes from src/data/site.ts, calls the React server renderer in src/entry-server.tsx, injects Helmet tags from src/components/Seo.tsx, writes dist/<route>/index.html, then writes dist/sitemap.xml and dist/robots.txt.
The deployed artifact is static HTML, CSS, and JS. Runtime deployment can use static hosting such as Cloudflare Pages, Vercel static output, Netlify, or any CDN-backed file server.
Quality Gates
Before handing work back, run the relevant checks:
npm run lint
npm run typecheck
npm run test
npm run i18n:check
npm run vocabulary:check
npm run seo:check
npm run motion:check
npm run a11y:check
npm run build
npm run bundle:check
npm run crawl:dist
npm run test:visualFor UI or routing changes, also inspect /zh/, /zh/components/, /zh/primitives/slide-in/, and /zh/guides/ in a browser.
Implementation Notes
- Recipe pages need stable H1 content, canonical URLs, localized metadata, and shareable query state.
- Preview markup, controls, Prompt, HTML, CSS, and reduced-motion behavior must come from the same motion specification.
- Default query values should stay omitted from the URL.
- Mobile layouts should put the active recipe workflow before the full catalog list.
- Interactive targets should stay at least 44px where users tap or click.
prefers-reduced-motionshould remove non-essential movement while preserving meaning.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

