mastra
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.
npx skills add majiayu000/claude-skill-registry --skill mastra-terminalskills-skills --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 ```typescript import { Agent } from "@mastra/core"; import { openai } from "@mastra/openai"; import { z } from "zod"; const supportAgent = new Agent({ name: "Customer Support", model: openai("gpt-4o"), instructions: `You are a customer support agent for a SaaS product. Use the knowledge base to answer questions. Create tickets for issues you can't resolve. Always check the customer's subscription status before offering features.`, tools: { searchKnowledgeBase: { description: "Search the product knowledge base", parameters: z.object({ query: z.string() }), execute: async ({ query }) => { const results = await vectorStore.search(query, { topK: 5 }); return results.map(r =
- Core Capabilities
- Agent Definition
- RAG Pipeline
- Workflows
- Installation
- Best Practices
npm install @mastra/core @mastra/openai @mastra/rag
What does the mastra skill do?
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.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill mastra-terminalskills-skills --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
