SkillsReviewed · mastra-ai

Mastra Framework Guide skill

Mastra Framework Guide is an instruction skill for coding assistants helping developers build Mastra apps, but it needs documentation matching the project's installed packages to give reliable coding advice. It covers TypeScript agents, workflows, tools, memory, troubleshooting, CLI operations and Mastra Platform deployment.

Researched 19 Nov 2026

In short.

Mastra Framework Guide is a coding-assistant skill for developers building Mastra apps, but its instructions extend beyond writing code to deployment and automatic bug reporting. Its strongest design feature is prioritizing installed-package documentation and type definitions over remembered APIs. It also includes detailed CLI guidance and a local model-registry helper, not a live model-discovery service. Runtime correctness, deployment success and improvements in assistant output are not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete skills/mastra directory at revision 045740138738bee82d5c9bbebea2f4373b5ca2dc: SKILL.md, all eleven reference documents and scripts/provider-registry.mjs, together with the repository-level LICENSE notice. Other repository folders, the companion mastra-factory skill, installed runtime packages, registry data and linked websites or services are excluded. Execution, installation success, runtime compatibility, feedback delivery and deployment outcomes are not assessed.

The overview

What it is

This is the mastra instruction skill in the mastra-ai/skills repository, not the Mastra framework runtime or a standalone application. Its front matter names Mastra as author and identifies skill version 2.5.0. The package contains SKILL.md, eleven reference documents and one JavaScript helper.

The original source location is [https://github.com/mastra-ai/skills/tree/main/skills/mastra]. The corresponding fixed revision is [https://github.com/mastra-ai/skills/tree/045740138738bee82d5c9bbebea2f4373b5ca2dc/skills/mastra]. The companion mastra-factory skill is separate and is not included here.

Practical assessment

The skill is most useful for a coding assistant working inside an existing Mastra project. Rather than treating static examples as authoritative, it directs the assistant to inspect the installed documentation, exports and TypeScript declarations. This addresses a specific failure mode: generating code against APIs that differ from the project's dependencies.

It is less suitable as a self-contained beginner course or an unrestricted autonomous operator. Much of its value depends on access to project files or current documentation, and its operational instructions include external reporting and deployment. No measured reduction in coding errors or development time is established.

Who it suits

Beginners get a project-creation walkthrough and a basic distinction between agents, which choose actions for open-ended tasks, and workflows, which organize defined sequences. Some familiarity with JavaScript or TypeScript, package management and environment variables is still needed.

Experienced developers get more targeted material for debugging package mismatches, inspecting running servers, managing memory and storage, and investigating traces. Teams not using Mastra will find much of the guidance framework-specific rather than generally reusable.

What it guides

The references cover project scaffolding, agents, workflows, tools, memory, storage, common errors and version migrations. Troubleshooting examples address missing imports, tool assignment, conversation persistence, workflow completion, schema validation, provider credentials and model identifiers. Questions about logging, metrics, estimated model cost, datasets and experiments are routed to package documentation rather than implemented by the skill itself.

Operational guidance covers mastra api calls to local or remote servers, Platform provisioning and deployment, and workspace filesystem and sandbox configuration. Advanced observability references distinguish trace queries from individual-span queries and grouped aggregation. These are instructions for using installed capabilities, not evidence that every CLI, server or storage backend supports them.

Using it

Requirements

Active use assumes a coding assistant that can read the skill and relevant project files. Shell access is needed for the documented package and CLI commands; network access is needed for remote documentation and services. The files do not establish a complete supported-assistant matrix or host-specific installation procedure.

The project guide points to Node.js 20+ and specifies TypeScript target and module ES2022 with bundler module resolution, warning against CommonJS. Model calls require credentials for the chosen provider. The registry helper additionally requires an installed @mastra/core package containing dist/provider-registry.json; remote documentation alone does not supply that file.

How it works

SKILL.md routes tasks to supporting references. For coding questions, the preferred sequence is installed documentation under node_modules/@mastra/*/dist/docs, then installed source and type declarations. When local documentation is unavailable or newer features are being explored, the fallback is the documentation index at [https://mastra.ai/llms.txt]. Remote documentation may describe APIs newer than the installed packages.

The provider-registry helper reads a local JSON registry, lists provider keys and model counts, and lists models for a selected provider. It searches upward from its own location through up to ten directories, then falls back to the current working directory. Its source contains local file reads and console output, not an HTTP lookup.

Although the reference describes model lists as sorted newest first, the implementation sorts numeric sequences extracted from model names. That heuristic does not establish release chronology, live provider availability, account access or model quality.

Getting started

Obtain the complete skills/mastra directory from the original repository, preserve the references and scripts directories alongside SKILL.md, and retain the accompanying repository license notice. Registering the directory with a particular coding assistant is host-specific; these files do not supply an installation command for this mastra skill.

Installing the skill is separate from creating an application. The documented npm create mastra@latest command creates a Mastra project. The manual alternative installs TypeScript, the Mastra CLI, @mastra/core and Zod, configures ES2022 modules and project scripts, and adds a provider key through an environment file. The walkthrough then starts Studio with npm run dev and uses [http://localhost:4111].

A concrete example

The supplied walkthrough creates a weather tool with Zod input and output schemas, attaches it to a weather agent, and registers that agent in a Mastra instance. It illustrates the relationship between tool definitions, agents and the application entry point.

The tool returns the fixed text 'The weather is sunny' and does not use the requested location. Despite the agent's weather-oriented instructions, this is a wiring example, not a live weather service. A useful application would need an actual data source and appropriate error handling. No successful weather lookup or application execution is established.

Assessment & evidence

Important limits and risks

The skill explicitly directs assistants to submit qualifying bugs and documentation defects automatically to [https://mastra.ai/api/feedback], without asking permission for each report. Its reporting reference limits submissions to anonymized facts, excludes secrets and private project material, and honors instructions not to report. This is nevertheless an external data transfer, not merely local documentation lookup; compliance depends on the assistant following those restrictions.

Credential guidance is inconsistent. The project-creation guide offers automatic setup phrased as 'give me your API key', while the Platform and API references prohibit requesting secret values in chat. Keep credentials in user-managed environment variables or appropriately ignored files rather than providing them conversationally.

Deployment can replace an existing project's running application. The Platform reference also warns that app environment files are uploaded as-is, environment buckets are shared across requests, and a statically configured PlatformSandbox is shared. These details require deliberate credential separation and isolation choices.

Advanced trace and span operations return completed records only and depend on server and storage capabilities. A CLI command or schema entry does not prove backend support. These limits matter when using the skill for live incident investigation.

Why the design matters

The practical rationale is version-aware assistance: advice based on a different package version can produce incorrect imports, constructor arguments or method calls. Looking at installed documentation and types first addresses that mismatch directly. Preferring existing Mastra capabilities can also avoid unnecessary custom infrastructure.

Those are useful design choices, not demonstrated outcome improvements. Static examples, migration suggestions and generated changes still need validation against the actual project and its dependencies.

Other ways to approach the work

For an exact API signature, developers can inspect installed @mastra package documentation and TypeScript declarations directly without loading this skill. For conceptual learning, the linked documentation site [https://mastra.ai/docs] and index [https://mastra.ai/llms.txt] are the documented entry points; their live contents are not assessed here.

For visual debugging, the skill points humans toward Mastra Studio rather than requiring CLI-only investigation. For Factory operations, it points to the separate mastra-factory skill, whose implementation is outside this resource. No comparative performance evidence establishes an advantage over other coding-assistant skills.

Evidence and confidence

The source material consists of the complete skill directory: SKILL.md, eleven reference files and scripts/provider-registry.mjs, accompanied by the repository-level LICENSE. The instructions establish intended assistant behavior; the helper source establishes how its local registry lookup is written.

The package does not include the Mastra runtime, registry data, companion Factory skill or linked documentation pages. Installation success, runtime behavior, model reachability, feedback delivery and deployment outcomes remain unassessed. No benchmark or comparative quality result is established.

Access & freshness

Costs

No purchase price or subscription fee for the skill is specified. Its source license does not establish that the coding assistant, model calls, database, Platform hosting or workspace services are free. Rates and total operating costs are unknown.

The observability references describe token and cost aggregation, but these figures depend on recorded usage and pricing coverage. Low cost.coverage means incomplete spend, and a null cost must not be presented as zero. Such aggregates should not be treated as a complete bill.

License and reuse

SKILL.md declares Apache-2.0. The repository LICENSE names Kepler Software, Inc., copyright 2026, and states that use is subject to Apache License 2.0. It also includes an as-is disclaimer without warranties.

Redistribution should retain the captured copyright and license notice and comply with the full terms referenced at [http://www.apache.org/licenses/LICENSE-2.0]. The declaration for these files does not establish reuse rights for linked websites, hosted services or third-party content.

Version and freshness

The files were captured on 19 November 2026 at repository revision 045740138738bee82d5c9bbebea2f4373b5ca2dc. Skill metadata reports version 2.5.0; that is not the installed Mastra framework version. A release date and latest-version guarantee are not established.

The references repeatedly warn that APIs and Platform behavior change. They also identify version-dependent CLI behavior, including automatic EU observability targeting from mastra@1.34.2. Treat model names and command examples as starting points, and verify compatibility with the installed CLI, target server and storage capabilities.

Recommended next steps

Begin with a narrowly scoped task in an existing project and have the assistant identify the installed packages and relevant documentation before proposing changes. State whether dependency changes, remote calls, deployment and feedback submissions are allowed. Explicitly prohibit feedback submission if anonymized project descriptions must not leave your environment.

Before deployment, confirm the organization, project and environment, protect any existing deployment, and keep control-plane credentials out of app environment files. Check persistent storage and workspace isolation requirements. Validate generated changes with the project's type checks, tests and Studio, and verify a deployed agent separately rather than treating deployment status alone as proof that it works.

Evidence for this report

LICENSEnotice · checked 2026-11-19
skills/mastra/SKILL.mdselected · checked 2026-11-19
skills/mastra/references/common-errors.mdselected · checked 2026-11-19
skills/mastra/references/core-concepts.mdselected · checked 2026-11-19
skills/mastra/references/create-mastra.mdselected · checked 2026-11-19
skills/mastra/references/embedded-docs.mdselected · checked 2026-11-19
skills/mastra/references/feedback.mdselected · checked 2026-11-19
skills/mastra/references/mastra-api.mdselected · checked 2026-11-19
skills/mastra/references/migration-guide.mdselected · checked 2026-11-19
skills/mastra/references/model-selection.mdselected · checked 2026-11-19
skills/mastra/references/platform.mdselected · checked 2026-11-19
skills/mastra/references/remote-docs.mdselected · checked 2026-11-19
skills/mastra/references/trace-query.mdselected · checked 2026-11-19
skills/mastra/scripts/provider-registry.mjsselected · checked 2026-11-19