AI Development Guide
Guide for building Motia applications with AI coding tools
Quick Setup
When you create a new Motia project, the AI development guides are automatically included:
Your project now has AI development guides in .cursor/rules/
that work with all major AI coding tools.
What's Included
Complete guides with TypeScript, JavaScript, and Python examples for:
- API Steps, Event Steps, Cron Steps
- State Management, Middleware, Real-time Streaming
- Virtual Steps, UI Steps
- Architecture & Error Handling
Supported AI Tools
Works Out of the Box
- Cursor IDE - Reads
.cursor/rules/
directly - Claude Code - Uses pre-configured subagents in
.claude/agents/
- OpenCode, Codex - Via
AGENTS.md
- Aider, Jules, Factory, Amp, GitHub Copilot, Gemini CLI - Via AGENTS.md standard
Coming Soon
- Windsurf, Cline
Usage
Just start coding - your AI tool will automatically read the guides and follow Motia patterns.
For Claude Code: Use /agents
to see available subagents, or invoke them directly:
Update Guides
Best Practices
- Commit
.cursor/
,AGENTS.md
, and config files to Git - Run
npx motia rules pull
after upgrading Motia - Customize guides for project-specific needs
View source: /cursor-rules
Need help? See our Community Resources for questions, examples, and discussions.