What is the Mastra Factory skill?
Mastra Factory is a coding skill by mastra-ai for Claude Code, Cursor, Codex and other AI coding agents. Operate and supervise Mastra Factory through `mastra api factory`. Use for first-time Factory connection and login, status or queue summaries, project and work-item inspection, thread history and memory, metrics, health, decisions, attention, and user-authorized autonomous or interactive Factory operations on hosted, local, remote, or self-hosted servers.
Use mastra api factory as the operational control plane for Factory.
When to use it
Use for first-time Factory connection and login, status or queue summaries, project and work-item inspection, thread history and memory, metrics, health, decisions, attention, and user-authorized autonomous or interactive Factory operations on hosted, local, remote, or self-hosted servers.
What the SKILL.md covers
- First use: connect before inspecting
- Default behavior
- Required reference
- Safety boundary
- Author
- mastra-ai
- Pack
- mastra-ai/skills (2 skills)
- Category
- Coding, #1331 of 1826
- Alyn Score
- 58 / 99
- Files
- 4, includes references
- License
- Not stated
- Last updated
- 14 days ago
- Works with
- Claude Code, Claude, Cursor, Codex, Gemini CLI, Copilot
Mastra Factory compared to similar skills
| Skill | Alyn Score | GitHub stars | Updated |
|---|---|---|---|
| Mastra Factory · mastra-ai | 58 | 107 | 14 days ago |
| Identity Work · kangarooking | 66 | 13k | 2 months ago |
| Db List · Nikolay-Shirokov | 54 | 823 | 10 days ago |
| Factory Watchdog · BuilderIO | 67 | 4.7k | 4 days ago |
Install Mastra Factory
Pick your agent. Every command is ready to paste.
npx alyn-cli add mastra-factoryDetects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
npx skills add mastra-ai/skills --skill mastra-factoryOr use the open skills CLI directly.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads mastra-factory when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the mastra-factory skill”. In Codex, type $mastra-factory.
Mastra Factory
Use mastra api factory as the operational control plane for Factory.
First use: connect before inspecting
Read references/connection.md. Check CLI availability, establish the user's actual Factory URL, and for platform-hosted deployments run mastra auth whoami. If logged out, offer mastra auth login rather than silently starting browser login. Local/self-hosted authentication may differ.
An explicit mastra api --url "$FACTORY_URL" factory project list works from an empty directory; no deployed repository or .mastra-project.json is required. Never assume a shared host, organization, project name, or ID. Preserve the explicit target on subsequent commands.
Default behavior
For status, inspection, diagnosis, queue review, or recommendation requests:
- Stay read-only.
- Select the sole or explicitly named project; report choices when ambiguous.
- Inspect project state, work items, metrics, thresholds, decisions, and attention.
- Correlate stages, revisions, sessions, decisions, and attention items.
- Report active/queued work, blocked or unhealthy items, running sessions, pending decisions, human attention, and one recommended next action.
- Execute a recommendation only when the current request or a previously granted operating scope authorizes it.
Required reference
Read references/factory-cli.md before running Factory commands for output control, contracts, the read-only workflow, mutation protocol, governance constraints, durable-session limitations, and error handling.
For “my work,” actual execution progress, thread messages, memory, or health interpretation, also read references/session-inspection.md. Distinguish card stages from running agents, historical messages from current memory, and agent claims from verified repository outcomes.
Safety boundary
- Never read or reveal
.env, bearer tokens, saved login contents, or platform/provider credentials. - Never invent IDs, stages, revisions, request IDs, or sessions.
- Establish the user's operating scope before mutating. Authorization may cover one action or grant standing autonomy over named projects, resources, action types, or objectives.
- Within a clear delegated scope, act without asking for confirmation before every mutation. Ask only when an action is ambiguous, outside scope, or materially more destructive than the granted authority.
- Fetch current state before a write, make the smallest in-scope change, then refetch and report IDs, revisions, and final state.
- Use transitions—not metadata updates—for stage changes, with the current revision and a fresh UUID request ID.
- Never use private HTTP routes to bypass unsupported CLI operations.
- If
work-item startlacks a supported durable user session, report the block; never substitute another session or invent a session UUID.
Tips for Mastra Factory
- • Start a fresh session after installing so your agent picks up the new skill.
- • It bundles reference files. The agent reads them only when needed, so they cost no context until then.
- • It is part of a pack with 2 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Mastra Factory
What does the Mastra Factory skill do?
Operate and supervise Mastra Factory through `mastra api factory`. Use for first-time Factory connection and login, status or queue summaries, project and work-item inspection, thread history and memory, metrics, health, decisions, attention, and user-authorized autonomous or interactive Factory operations on hosted, local, remote, or self-hosted servers.
How do I install Mastra Factory?
Run "npx alyn-cli add mastra-factory" in your project. The Alyn CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Mastra Factory work in Cursor and Codex?
Yes. Mastra Factory uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
When should I use the Mastra Factory skill?
Use for first-time Factory connection and login, status or queue summaries, project and work-item inspection, thread history and memory, metrics, health, decisions, attention, and user-authorized autonomous or interactive Factory operations on hosted, local, remote, or self-hosted servers.
What is inside the Mastra Factory skill?
The SKILL.md covers First use: connect before inspecting, Default behavior, Required reference, Safety boundary, and the skill folder has 4 files.
What is a good alternative to Mastra Factory?
Identity Work by kangarooking is the highest-ranked similar skill from another creator, with an Alyn Score of 66 compared to 58 for Mastra Factory.
Is Mastra Factory free?
Mastra Factory is open source on GitHub. It is free to install; check the license before commercial use.
Who made Mastra Factory?
Mastra Factory is published by mastra-ai in the mastra-ai/skills repository, together with 1 other skills.




