Mastra File Agents

Migrate Mastra code-based agents (agents built with new Agent(...) and registered in a Mastra({ agents }) map) to the file-based convention: one directory per agent under src/mastra/agents. Use when the user wants to convert or refactor Mastra agents to the per-directory convention, mentions Mastra "file-based agents" or agentConfig, or wants to split a big src/mastra/index.ts or agents.ts into one folder per agent — even if they do not name this skill. Requires @mastra/core 1.48+.

shadcn-labs Updated
agentcn banner

File contents

shadcn-labs/agentcn commit cd5dd985e0

Frequently asked questions

npx get-skill add shadcn-labs/mastra-file-agents-2