Prompt Guide For Agents And LLMs
An agent or LLM can create the first.motion draft. Motionly then lets you inspect, edit, preview, save, and export that draft visually. Strong prompts describe the story and constraints; they do not ask the model to invent .motion syntax.
Use The In-App Assistant
Open Motionly Assistant beside Assets:- Paste your own API key. Motionly detects Anthropic, OpenRouter, OpenAI, Google Gemini, and Hugging Face keys.
- Optionally enter the exact model ID. Leave it blank to use Motionly’s provider default.
- If the prefix is unknown, enable Custom endpoint and enter the base URL for an OpenAI-compatible service.
- Describe the animation. The assistant receives the current
.motionproject and imported asset list, so it can reuse real asset paths. - Review the response and choose Load into Editor. Motionly parses and validates the generated source before replacing the current project.
- Continue the same chat to refine the draft, then make final visual edits in the canvas, Properties panel, and timeline.
localStorage. Requests travel directly from the browser to the configured provider and are never sent through a Motionly server. A custom endpoint must allow browser requests from the Motionly origin.
The assistant asks for a brief explanation followed by one fenced .motion project. Generated projects use the same parser → scene graph → renderer pipeline as projects opened or edited manually.
AI Config Knowledge
Motionly gives the in-app assistant persistent knowledge through two rail items. Everything is stored in the browser and appended to the assistant’s system context on each request:- AI Config (AI/Bot icon) — enable or disable the built-in skills the assistant should follow. Each enabled skill loads its instructions into the context:
write-motionly— authoring workflow: storyboard, retime, validate.motion-graphics— motion design principles: one focal subject, restrained easing/timing, deliberate exits.motionly-rules— core product rules and.motionsyntax (this replaces a per-projectAGENTS.md).- A Context view previews what the assistant knows (enabled skills, brand, asset count, project info).
- Settings (gear icon) — the Brand Profile editor. Brand name, logo, colors, typography, visual style, motion style, and things to avoid are edited visually and Motionly generates
BRAND.md(or switch to Edit Markdown mode).
.motion.
Model quality matters. The AI model you choose directly affects composition, timing, and correct preset use. Smaller models may generate valid syntax but weaker visual decisions. Prefer a current, high-capability model with strong code-generation and instruction-following performance.
Use An External Agent
Agents that work directly inside a project folder can use Motionly’s installed skill instead of the in-app panel.Install The Skill
From your project, install the skill and its reference library for your agent:init installs it too (it asks which agent). Each install writes, under your agent’s skills folder — Codex (.agents/), Claude Code (.claude/), Gemini CLI (.gemini/), opencode (.opencode/), Kiro (.kiro/), or RAYU (.rayu/):
SKILL.md— the quick.motioncontract.references/llms.txt— a discovery index for the focused skills.references/skills/*/SKILL.md— the full library:motion-dsl,svg,animation,easing,camera,composition,typography,transitions,timeline,assets,rendering, andtemplates.
AGENTS.md and the installed SKILL.md first, then load references/llms.txt and only the reference skills the task needs (always motion-dsl for authoring or repair). Re-running the installer keeps your edits and never overwrites existing files.
Working inside a clone of this repository instead? The same guidance lives at AGENTS.md, .agents/skills/write-motionly/SKILL.md, and .agents/skills/write-motionly/references/motion-syntax.md.
Prepare Your Project
- Create a folder such as
video-motion/assets/my-project/. - Add the images, SVGs, logos, videos, and audio references needed for the story.
- Keep original aspect ratios and use clear filenames.
- Provide the story, audience, goal, and script. Motionly can infer format, duration, and technical defaults.
- Tell the agent which text must appear exactly and provide narration timestamps when available.
.motion format. You can also drag assets from the Assets panel onto the timeline in the editor to create clips visually.
Prompt Template
Replace the bracketed creative fields that matter. Delete sections that do not apply. Motionly infers file placement, canvas settings, duration, FPS, and renderer details.What To Include For Better Results
Story and timing
Give narration timestamps, audio, or required holds when they matter. Otherwise let Motionly establish the pacing.
Asset intent
Separate required assets from optional assets and say which file is the hero in each shot.
Copy rules
Mark text that must remain verbatim. State whether the agent may shorten or split anything else.
Visual boundaries
Provide brand colors, typography, motion character, and treatments the agent must avoid.
Refinement Prompt
For a second pass, name the observed problem and timestamp instead of asking for a generic improvement:Replace The Sample
To start from the included sample:- Copy
video-motion/motionly.motionto a new project name. - Remove only the sample assets you no longer need.
- Put your own files in a dedicated asset folder.
- Ask the agent to replace all old imports and remove unused layers.
- Open the generated project in Motionly and refine it visually.
Review Any Generated Result
Before export:- Confirm the canvas size, FPS, and duration.
- Scrub every scene transition.
- Check text wrapping, image aspect ratios, and layer overlap.
- Confirm entrances and exits match the script.
- Save the edited
.motionfile. - Confirm project audio starts at the intended timeline offset and is present in MP4 export.
