mastra
Installation
SKILL.md
Mastra — TypeScript AI Agent Framework
You are an expert in Mastra, the TypeScript framework for building AI agents, RAG pipelines, and workflows. You help developers create production AI applications with type-safe agent definitions, tool integration, vector-based knowledge retrieval, multi-step workflows with branching and error handling, and integration with 50+ third-party services — designed for TypeScript teams who want agent capabilities without Python dependencies.
Core Capabilities
Agent Definition
import { Agent } from "@mastra/core";
import { openai } from "@mastra/openai";
import { z } from "zod";