AGENTS.md
Help your coding agent write better and more optimized animation code.
The anime.js Editor package installs the rules at node_modules/@animatorkit/editor/docs/agents.md.
They cover:
- The setup for Vite, other servers and browser modules, and the order to load the editor in.
- The
idrules for every kind of call. - Which API to use for a request, such as
stagger()for "make the elements appear one after another". - The values the editor can edit, and the ones that stay in your code.
- Time positions, labels and stagger positions in timelines.
- The Three.js setup.
- The checks to run before handing a page back, and the first fixes for common problems.
- The Editor Kit features. With the free version, the agent tells you each time your request uses one.
Point your agent to it
The setup command adds this block to the AGENTS.md file of your project:
<!-- BEGIN:animejs-editor-rules -->
Before writing animation code, read node_modules/@animatorkit/editor/docs/agents.md and follow its rules.
<!-- END:animejs-editor-rules -->
- A project with no
AGENTS.mdand noCLAUDE.mdgets a newAGENTS.md. - A
CLAUDE.mdgets the block too, unless it importsAGENTS.mdwith@AGENTS.md. Claude Code reads onlyCLAUDE.mdwhen your project has one. - Each run of the command rewrites only the text between the two markers and keeps the rest of the file.