This project uses Motia - a framework for building event-driven, type-safe backend systems.
This project has detailed development guides in .cursor/rules/ directory. These markdown files (.mdc) contain complete patterns, examples, and type definitions.
Before writing any Motia code, read the relevant guides from .cursor/rules/
A pre-configured subagent is ready!
The motia-developer subagent in .claude/agents/ automatically references all 11 cursor rules when coding.
Use it: /agents → select motia-developer
Learn more: Claude Code Subagents Docs
Explicitly reference cursor rules in your prompts:
Read .cursor/rules/motia/api-steps.mdc and create an API endpoint
for user registration following the patterns shown.
All guides in .cursor/rules/ with TypeScript, JavaScript, and Python examples:
Configuration (.cursor/rules/motia/):
motia-config.mdc- Essential project setup, package.json requirements, plugin naming
Step Types (.cursor/rules/motia/):
api-steps.mdc,event-steps.mdc,cron-steps.mdc
Features (.cursor/rules/motia/):
state-management.mdc,middlewares.mdc,realtime-streaming.mdcvirtual-steps.mdc,ui-steps.mdc
Architecture (.cursor/architecture/):
architecture.mdc,error-handling.mdc
See AGENTS.md in this directory for a quick overview and links to specific guides.
Important: Motia discovers steps from both /src and /steps folders. Modern projects use /src for a familiar structure.
npm run dev # Start development server (with hot reload)
npm run start # Start production server (without hot reload)
npx motia generate-types # Regenerate TypeScript typesRemember: The .cursor/rules/ directory is your primary reference. Read the relevant guide before implementing any Motia pattern.