skills/mastra/SKILL.md
Mastra TypeScript AI agent framework for building production-ready agents, workflows, tools, RAG, memory, evals, voice, and multi-agent systems. MANDATORY TRIGGERS: mastra, Mastra, @mastra/core, mastra-ai, createTool, createWorkflow, createStep. Also trigger when user wants to build TypeScript AI agents with tools and memory, create graph-based workflows with suspend/resume, implement RAG pipelines in TypeScript, build multi-agent supervisor systems, add voice to AI agents, or deploy AI agent servers. When in doubt about whether to use this skill for TypeScript AI agent tasks, use it.
npx skillsauth add abhisheksharma-17/skills-graph mastraInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
TypeScript AI agent framework for building production-ready applications with agents, workflows, tools, and memory.
Source: mastra.ai/docs | Package: @mastra/core v1.37.x | License: ELv2
| Reference | File | Read When |
|-----------|------|-----------|
| Overview & Setup | references/00-overview.md | Getting started, installation, project structure, when to use Mastra |
| Agents | references/01-agents.md | Agent creation, generate/stream, instructions, model routing |
| Tools | references/02-tools.md | createTool, input/output schemas, MCP servers, tool control |
| Workflows | references/03-workflows.md | createWorkflow, createStep, execution, state, streaming |
| Control Flow | references/04-control-flow.md | Parallel, branching, loops, foreach, map, nested workflows |
| Suspend & Resume | references/05-suspend-resume.md | Human-in-the-loop, suspend/resume, sleep, approval patterns |
| Memory | references/06-memory.md | Message history, working memory, semantic recall, observational memory |
| RAG | references/07-rag.md | Document processing, chunking, embeddings, vector stores, retrieval |
| Structured Output | references/08-structured-output.md | Typed responses, output schemas, streaming, error handling |
| Multi-Agent Systems | references/09-multi-agent.md | Supervisor agents, delegation, memory isolation, networks |
| Guardrails & Safety | references/10-guardrails.md | Processors, prompt injection, PII detection, moderation, cost guards |
| Evals & Observability | references/11-evals-observability.md | Scorers, live evals, tracing, logging, metrics, Studio |
| Voice | references/12-voice.md | TTS, STT, real-time voice, providers, composite voice |
| Server & Deployment | references/13-server-deployment.md | Hono server, API routes, middleware, auth, deployment options |
# Create new project
npx create-mastra@latest
# Or add to existing project
npm install @mastra/core@latest
npm install @mastra/memory@latest # Memory support
npm install @mastra/libsql@latest # Storage provider
npm install @mastra/evals@latest # Evaluation scorers
npm install @mastra/observability@latest # Tracing & metrics
mastra devdevelopment
High-throughput LLM inference and serving engine with PagedAttention, continuous batching, and OpenAI-compatible API. MANDATORY TRIGGERS: vLLM, vllm, LLM serving, LLM inference engine, PagedAttention. Also trigger when the user wants to serve LLMs in production, deploy models with tensor parallelism, use speculative decoding, quantize models for inference, build OpenAI-compatible API servers, or optimize LLM throughput and latency. When in doubt about whether to use this skill for LLM serving tasks, use it.
tools
Type-safe Python agent framework for building production-grade GenAI applications with Pydantic validation, structured outputs, and dependency injection. MANDATORY TRIGGERS: pydantic-ai, pydantic_ai, PydanticAI, pydantic ai agent. Also trigger when the user wants to build type-safe AI agents in Python, create structured LLM outputs with Pydantic models, implement dependency injection for agents, use tools/capabilities with LLMs, or build multi-agent systems with Python type safety. When in doubt about whether to use this skill for Python AI agent tasks, use it.
development
Durable execution platform for building fault-tolerant workflows, long-running processes, and resilient distributed applications. MANDATORY TRIGGERS: temporal, temporal.io, temporalio, durable execution, workflow orchestration engine. Also trigger when the user wants to build fault-tolerant workflows, implement saga patterns, create long-running distributed processes, orchestrate microservices with retries and timeouts, or build durable AI agent pipelines. When in doubt about whether to use this skill for workflow orchestration or durable execution tasks, use it.
tools
AI framework for building RAG pipelines, agents, workflows, and data-augmented LLM applications with 300+ integrations. MANDATORY TRIGGERS: llamaindex, llama-index, llama_index, LlamaIndex, VectorStoreIndex, SimpleDirectoryReader, LlamaHub, LlamaParse. Also trigger when the user wants to build RAG applications with LlamaIndex, create document indexing pipelines, build agentic workflows with tool calling, implement structured data extraction from documents, or connect LLMs to custom data sources. When in doubt about whether to use this skill for RAG, document indexing, or LLM data augmentation tasks, use it.