mastra-dev

Generate Mastra agent, workflow, and tool boilerplate and update config registrations.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/artsmc/codex-agentic --skill mastra-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mastra-dev
Source: https://github.com/artsmc/codex-agentic/tree/main/skills/mastra-dev
Command: npx skills add https://github.com/artsmc/codex-agentic --skill mastra-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Mastra Dev automates the creation and registration of Mastra agents, workflows, and tools, streamlining boilerplate generation and config synchronization across mastra.config.ts and MCP.

Core Features & Use Cases

  • Generates TypeScript boilerplate for agents, workflows, and tools from templates.
  • Automatically updates mastra.config.ts and mcp.config.ts registrations.
  • Provides CLI-driven development workflow for rapid prototyping and debugging.

Quick Start

Run mastra-dev to generate a new agent, workflow, or tool and then review and test the resulting files.

Frequently Asked Questions about mastra-dev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate boilerplate code for Mastra agents and workflows?

You can generate TypeScript boilerplate for Mastra agents, workflows, and tools by running the mastra-dev CLI. It renders templates and updates registration configurations to streamline rapid prototyping.

What is the best way to update mastra.config.ts registrations automatically?

The best way to update mastra.config.ts registrations automatically is using a CLI-driven template engine. It performs safe, idempotent updates to configuration files while parsing schemas and substituting TypeScript templates.

Do I need an existing TypeScript project to use Mastra code generation?

Yes, you need an existing project using Mastra with MCP and Studio workflows. The code generation tool applies TypeScript template substitution and config synchronization within your established project environment.

How does template rendering work for Mastra tools and agents?

Template rendering for Mastra tools works by parsing schemas and applying TypeScript template substitution. This process generates boilerplate code and safely updates configuration files like mastra.config.ts and mcp.config.ts.

Can I use this workflow tooling with MCP configurations?

Yes, you can use Mastra workflow tooling with MCP configurations. It automatically updates mcp.config.ts registrations alongside mastra.config.ts, ensuring your generated agents and tools are properly synchronized.

Why are my Mastra boilerplate updates not synchronizing with config files?

Updates may fail if the safe, idempotent update process encounters schema parsing issues. Ensure your templates match expected TypeScript substitution patterns and that your configuration files are valid.