Skip to content
Back to skills

Mastra Docs

ASecurity

USE THIS SKILL WHEN working with Mastra (TypeScript AI agent framework): building agents, workflows, RAG pipelines, memory, voice, evals, MCP tools, observability/tracing, deploying to Mastra Cloud/Cloudflare/Vercel, or using Mastra client SDK. Triggers on: mastra, Mastra agent, Mastra workflow, createAgent, createWorkflow, mastra.run, MastraClient, @mastra/core.

  • 10 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 26, 2026
ai-agentstypescriptbashgitapibackenddocumentation

Works with

  • cli
  • api
  • mcp

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add wenerme/ai --skill mastra-docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mastra Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mastra Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wenerme-mastra-docs/badge)](https://www.skillsdirectory.com/skills/wenerme-mastra-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mastra-docs
description: "USE THIS SKILL WHEN working with Mastra (TypeScript AI agent framework): building agents, workflows, RAG pipelines, memory, voice, evals, MCP tools, observability/tracing, deploying to Mastra Cloud/Cloudflare/Vercel, or using Mastra client SDK. Triggers on: mastra, Mastra agent, Mastra workflow, createAgent, createWorkflow, mastra.run, MastraClient, @mastra/core."
---

# Mastra Documentation

[Mastra](https://mastra.ai) is a TypeScript AI framework for building agents, workflows, and RAG pipelines with batteries-included integrations.

- [GitHub](https://github.com/mastra-ai/mastra) | [Docs](https://mastra.ai/docs)

CRITICAL: grep `references/` for detailed docs before answering.

## Quick Start

```bash
npx create-mastra@latest
# or
npm install @mastra/core
```

```typescript
import { Mastra, createAgent } from "@mastra/core";
import { openai } from "@ai-sdk/openai";

const agent = createAgent({
  name: "my-agent",
  instructions: "You are a helpful assistant.",
  model: openai("gpt-4o"),
});

const mastra = new Mastra({ agents: { myAgent: agent } });
const response = await mastra.getAgent("myAgent").generate("Hello!");
```

## Key Concepts

| Concept | Description |
|---------|-------------|
| **Agents** | LLM-powered agents with tools, memory, voice |
| **Workflows** | Durable step-based execution with branching |
| **RAG** | Vector search, chunking, embedding pipelines |
| **Memory** | Thread-based conversation history + semantic recall |
| **Evals** | LLM-as-judge evaluation framework |
| **MCP** | Model Context Protocol tool server integration |
| **Observability** | OpenTelemetry tracing, logging |
| **Voice** | Speech-to-text and text-to-speech |

## Key Topics

### Docs (Guides)
- `references/docs/getting-started/` — Installation, first agent, first workflow
- `references/docs/agents/` — Agent creation, tools, memory, voice
- `references/docs/workflows/` — Workflow steps, branching, suspension
- `references/docs/memory/` — Thread memory, semantic recall, storage
- `references/docs/rag/` — Chunking, embedding, vector search
- `references/docs/evals/` — Evaluation metrics, custom evals
- `references/docs/mcp/` — MCP server integration
- `references/docs/observability/` — Tracing, logging, datasets
- `references/docs/deployment/` — Deployment options
- `references/docs/mastra-cloud/` — Mastra Cloud
- `references/docs/server/` — Server setup, auth

### API Reference
- `references/reference/agents/` — Agent API
- `references/reference/workflows/` — Workflow API
- `references/reference/memory/` — Memory API
- `references/reference/rag/` — RAG (chunking, embedding, vector)
- `references/reference/evals/` — Eval metrics
- `references/reference/tools/` — Tool definitions
- `references/reference/voice/` — Voice API
- `references/reference/core/` — Core Mastra class
- `references/reference/client-js/` — Client SDK
- `references/reference/storage/` — Storage backends
- `references/reference/vectors/` — Vector store integrations
- `references/reference/processors/` — Document processors

### Models & Providers
- `references/models/` — Supported models index
- `references/models/providers/` — 94 provider integrations

### Guides
- `references/guides/guide/` — End-to-end tutorials
- `references/guides/getting-started/` — Getting started guides
- `references/guides/deployment/` — Cloudflare, Vercel, etc.
- `references/guides/migrations/upgrade-to-v1/` — v1 migration

## References

- `references/` — 561 MDX files covering full API and guides
- `references/docs/` — Concept guides and tutorials
- `references/reference/` — API reference (agents, workflows, memory, RAG, evals, voice, MCP)
- `references/models/providers/` — 94 model provider integrations
- `references/guides/` — End-to-end tutorials and deployment guides

Files in this skill

  • SKILL.md3.8 KB
  • references/docs/agents/code-mode.mdx9.5 KB
  • references/docs/agents/guardrails.mdx16.3 KB
  • references/docs/agents/human-in-the-loop.mdx32.2 KB
  • references/docs/agents/networks.mdx6.8 KB
  • references/docs/agents/overview.mdx6.3 KB
  • references/docs/agents/processors.mdx50.9 KB
  • references/docs/agents/resumable-streams.mdx14.7 KB
  • references/docs/agents/structured-output.mdx13.8 KB
  • references/docs/agents/tools.mdx34.2 KB
  • references/docs/auth/composite-auth.mdx6.4 KB
  • references/docs/auth/custom-auth-provider.mdx17.5 KB
  • references/docs/auth/fga.mdx15.7 KB
  • references/docs/auth/jwt.mdx3.3 KB
  • references/docs/auth/overview.mdx3.3 KB
  • references/docs/auth/simple-auth.mdx4.6 KB
  • references/docs/auth/workers.mdx5.7 KB
  • references/docs/browser.mdx6.8 KB
  • references/docs/channels.mdx27.6 KB
  • references/docs/classifier.mdx8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.