/setup when you want an AI coding agent to add Migma to an existing app.
It is agent-guided. The agent still reviews and edits your codebase, then uses Migma to create or reuse emails and wire safe server-side sends.
Documentation Index
Fetch the complete documentation index at: https://docs.migma.ai/llms.txt Use this file to discover all available pages before exploring further.
Install
CLI and skills
Plugin
Add the marketplace once, then install the Migma plugin in your agent.Claude Code
Codex
Cursor
Open Settings, go to Plugins, paste
https://github.com/MigmaAI/migma-skills, then install Migma.Skill fallback
What setup does
- Audits existing email providers, templates, receipts, invites, campaigns, lifecycle jobs, queues, and webhooks.
- Resolves the correct Migma brand/project.
- Lists existing Migma emails and reuses matches.
- Creates missing emails with prompts grounded in trigger files, recipients, variables, subject copy, and CTAs.
- Stores each returned
emailId, subject, sender, and matching app trigger in server-side config or constants. - Wires sends only in trusted backend paths.
- Adds a dry-run or smoke test that verifies each trigger selects the right
emailIdwithout sending duplicates.
API access
Use a Migma API key server-side:https://api.migma.ai/auth.md.
REST fallback
If plugin or skill install is unavailable, use REST.| Task | Endpoint |
|---|---|
| List brands/projects | GET /v1/projects |
| List existing emails | GET /v1/projects/emails?projectId=<projectId> |
| Create emails | POST /v1/projects/emails/generate |
| Poll generation | GET /v1/projects/emails/{conversationId}/status |
| Fetch one email | GET /v1/emails/{emailId} |
| Send | POST /v1/sending |
https://api.migma.ai
Auth header: Authorization: Bearer $MIGMA_API_KEY
Guardrails
- Keep API keys and send calls server-side.
- Do not put Migma secrets in browser code.
- Ask before installing packages, calling Migma APIs, creating emails, or sending tests.
- Test before live sends.
- Add idempotency before transactional sends.
- Do not send cold email or email unsubscribed contacts.
- If the app is frontend-only, stop after audit/email creation and add a backend prerequisite before wiring sends.
Which tool to use
| Surface | Use it for |
|---|---|
setup skill | App audit, email mapping, backend send wiring |
| Migma plugin | Packaging setup, migma, and public API guidance for agents |
| CLI | Terminal workflows: generate, fetch, edit, send-test, send, campaign, export |
| MCP | Migma-side actions from MCP clients: list, generate, fetch, edit, send, campaign |
| REST or SDK | Production app integration |