mastra-plugin

Generate Mastra plugin scaffolds with agents, tools, memory, workflows, evals, and UI.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/justsml/llm-module-pattern --skill mastra-plugin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mastra-plugin
Source: https://github.com/justsml/llm-module-pattern/tree/main/skills/mastra-plugin
Command: npx skills add https://github.com/justsml/llm-module-pattern --skill mastra-plugin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a complete scaffolding workflow for Mastra.ai plugins, enabling rapid creation of modules with agents, tools, memory, workflows, evals, and UI components.

Core Features & Use Cases

  • Automated plugin skeletons: generate a full project layout including config.ts, agent.ts, tools.ts, memory.ts, workflow.ts, evals.ts, UI, tests, and packaging metadata.
  • Workspace-ready: supports multi-workspace setups with workspace-specific variants and overrides.
  • Quality scaffolding: includes vitest tests, tsup build config, type definitions, and linting setups to speed up delivery.

Quick Start

Install the scaffold, run the generator for a new Mastra plugin, and integrate the resulting package into your Mastra application.

Frequently Asked Questions about mastra-plugin

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

FAQPage Schema
How do I scaffold a Mastra plugin with agents and tools?

Scaffolding a Mastra plugin generates a complete TypeScript project with agents, tools, memory, workflows, evals, and UI components. The output includes config, processor, and test files ready for immediate development.

What files are included when generating a Mastra plugin workspace?

Generating a Mastra plugin workspace outputs config.ts, agent.ts, tools.ts, memory.ts, workflow.ts, processors.ts, ui.tsx, evals.ts, tests, a README, and packaging scripts. This structure supports multi-workspace configurations for variant deployments.

Can I use this scaffolding for multi-workspace TypeScript plugin deployments?

Yes, the scaffolding supports multi-workspace TypeScript setups with workspace-specific variants and overrides. This allows you to manage modular AI plugin packages across different deployment configurations.

Does the generated Mastra plugin include testing and build configurations?

Yes, the generated plugin includes vitest tests, tsup build config, type definitions, and linting setups. This quality scaffolding speeds up delivery by providing a ready-to-use testing and build pipeline.

How do I set up evals and memory for a modular AI plugin package?

Setting up evals and memory for a modular AI plugin package is handled automatically during project generation. The scaffold outputs dedicated evals.ts and memory.ts files alongside agent and workflow modules.

Why use an automated scaffold instead of manually creating a Mastra plugin skeleton?

Automated scaffolding avoids manually creating a Mastra plugin skeleton by generating a complete project layout with agents, tools, UI, and packaging metadata. This provides a standardized structure with build configs and tests to speed up delivery.