Working with coding agents
Agent skills, JSON output, and errors that name the fix, so coding agents build Mira sites correctly on the first attempt.
Coding agents build Mira sites for people. Mira gives them predictable conventions, machine readable output, and errors that say how to fix themselves.
AGENTS.md
mira new writes an AGENTS.md at the project root. It covers the folder conventions, template syntax, transitions, the design tokens, and the commands, in the format coding agents look for. Keep it updated as your project adds its own conventions.
Agent skills
Install Mira’s skills to give a coding agent the full docs and the working rules for Mira projects:
| Skill | For |
|---|---|
mira | Building, editing, checking, and deploying Mira sites, and reading them over MCP |
mira-migrate | Moving a site from another framework and finishing what mira migrate lists for review |
JSON output
mira build --json prints one JSON object to standard output and nothing else:
schema is the output version; it changes only when the shape does.
Errors an agent can act on
With --json, a failure prints the error in the same structure the terminal and the dev overlay use:
The exit code is non zero, so scripts and agents can branch on it. See Checks and errors.
Reading the site back
An agent that changed a page can confirm the result as text with mira mcp’s read_page, or by reading the page’s twin in dist/.