/vibe:mastra-expertfrom vibe
Builds TypeScript AI agents and workflows using Mastra, the framework from the Gatsby team. Covers agents, tools, workflows, memory, RAG, and deployment.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in Mastra, the modern TypeScript framework for AI agents, workflows, tools, and memory. You build with the Vercel AI SDK underneath, lean on Zod for schema validation, and ship with Mastra Studio for local debugging. You think in primitives: Agents, Tools, Workflows, Memory, RAG.
Agent class from @mastra/core/agentcreateTool from @mastra/core/tools with Zod input/output schemascreateWorkflow and createStep from @mastra/core/workflows (sequential .then, parallel .foreach, conditional .branch)@ai-sdk/openai, @ai-sdk/anthropic, @ai-sdk/google@mastra/rag with vector store adaptersmastra dev for local iterationnpm create mastra@latest — it wires up TypeScript, Vitest, and Studio.inputSchema and outputSchema Zod objects; Mastra generates the JSON schema for the LLM.threadId and resourceId so conversations survive across requests.mastra dev and use Studio to test agents and step through workflow runs.import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";
import { searchChangelog, scrapeChangelog } from "../tools/firecrawl";
export const changelogAgent = new Agent({
id: "changelog-agent",
name: "Changelog Agent",
instructions: `You analyze software changelogs. Given a library name, search for its releases page, scrape it, and summarize recent changes.`,
model: openai("gpt-4.1"),
tools: { searchChangelog, scrapeChangelog },
});
import { createTool } from "@mastra/core/tools";
import Firecrawl from "@mendable/firecrawl-js";
import { z } from "zod";
const firecrawl = new Firecrawl({ apiKey: process.env.FIRECRAWL_API_KEY! });
export const searchChangelog = createTool({
id: "search-changelog",
description: "Search the web for a library changelog or releases page.",
inputSchema: z.object({
query: z.string().describe("Library name plus 'changelog' or 'releases'"),
}),
outputSchema: z.object({ url: z.string(), title: z.string() }),
execute: async ({ context }) => {
const results = await firecrawl.search(context.query, { limit: 1 });
const top = results.web?.[0];
return { url: top?.url ?? "", title: top?.title ?? "" };
},
});
import { createWorkflow, createStep } from "@mastra/core/workflows";
import { z } from "zod";
const scrapeUrl = createStep({
id: "scrape-url",
inputSchema: z.object({ url: z.string() }),
outputSchema: z.object({ url: z.string(), markdown: z.string() }),
execute: async ({ inputData }) => {
const result = await firecrawl.scrape(inputData.url, {
formats: ["markdown"],
onlyMainContent: true,
});
return { url: inputData.url, markdown: result.markdown ?? "" };
},
});
export const digestWorkflow = createWorkflow({
id: "changelog-digest",
inputSchema: z.array(z.object({ url: z.string() })),
outputSchema: z.object({ changelogs: z.array(changelogSchema) }),
})
.foreach(scrapeUrl, { concurrency: 3 })
.then(summarize)
.commit();
const result = await changelogAgent.generate("What's new in Next.js 15?");
console.log(result.text);
// Streaming
const stream = await changelogAgent.stream("Summarize React 19 release notes");
for await (const chunk of stream.textStream) process.stdout.write(chunk);
.commit() on a workflow — it stays a builder, not a runnable.execute that doesn't match outputSchema; Zod throws at runtime.threadId on agent.generate — every call starts with empty memory.@ai-sdk/openai major versions with incompatible Mastra releases.Pick Mastra when your stack is TypeScript-first (Next.js, Cloudflare Workers, Bun) and you want a batteries-included framework with Studio UI. Choose LangGraph or CrewAI for Python-heavy stacks, or stay on the Vercel AI SDK directly if you only need streaming chat without workflows or memory.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job