What problem does it solve? Mastra evolves rapidly, so AI-generated code based on training data often uses outdated APIs, deprecated patterns, and wrong constructor signatures. This Skill forces verification against current documentation—embedded in node_modules or fetched remotely—before any Mastra code is written. ## Core Features & Use Cases - Version-accurate API lookup: Prioritizes embedded docs in node_modules/@mastra/*/dist/docs/ matching the installed version, with remote docs from mastra.ai as fallback. - Project scaffolding and migration: Step-by-step project creation with correct TypeScript ES2022 config, plus version upgrade workflows using official migration guides and codemods. - Error diagnosis and model validation: Catalogs common errors (tool registration, memory persistence, workflow commits, storage connections) and verifies provider/model names via a registry script. - Use Case: A developer asks to add memory to a Mastra agent. The Skill checks installed packages, reads the embedded type definitions for the current Memory API, and writes code that compiles against the actual installed version. ## Quick Start Ask the AI to create a Mastra agent with a weather tool and verify the model name against the provider registry before writing any code.