Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

mastra-embedded-docs-look-up

verified

Look up current API signatures from installed Mastra packages in node_modules/@mastra/*/dist/docs/. Use this skill to verify exact parameters, constructor arguments, and function signatures that match the installed version. Mastra APIs evolve rapidly - embedded docs ensure accuracy. Covers: Agent constructor parameters, Workflow API, Tool API, Memory configuration, Storage options, and all @mastra/* package exports. Returns actual TypeScript definitions and JSDoc from installed packages. Always use for API verification questions to prevent outdated answers.

View on GitHub

Marketplace

mastra-agent-skills

mastra-ai/skills

Plugin

mastra-skills

Repository

mastra-ai/skills
16stars

skills/mastra-embedded-docs-look-up/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/mastra-ai/skills/blob/main/skills/mastra-embedded-docs-look-up/SKILL.md -a claude-code --skill mastra-embedded-docs-look-up

Installation paths:

Claude
.claude/skills/mastra-embedded-docs-look-up/
Powered by add-skill CLI

Instructions

# Mastra Embedded Docs Lookup

Look up API signatures from embedded docs in `node_modules/@mastra/*/dist/docs/` - these match the installed version.

---

## Documentation Structure

```
node_modules/@mastra/core/dist/docs/
├── SKILL.md           # Package overview, exports
├── SOURCE_MAP.json    # Export→file mappings
└── [topics]/          # Feature docs (agents/, workflows/, etc.)
```

---

## Lookup Process

**1. Find the export:**
```bash
cat node_modules/@mastra/core/dist/docs/SOURCE_MAP.json | grep '"Agent"'
```

Returns: `{ "Agent": { "types": "dist/agent/agent.d.ts", ... } }`

**2. Read type definition:**
```bash
cat node_modules/@mastra/core/dist/agent/agent.d.ts
```

**3. Check topic docs:**
```bash
cat node_modules/@mastra/core/dist/docs/agents/01-overview.md
```

---

## Common Packages

| Package | Path | Contains |
|---------|------|----------|
| `@mastra/core` | `node_modules/@mastra/core/dist/docs/` | Agents, Workflows, Tools |
| `@mastra/memory` | `node_modules/@mastra/memory/dist/docs/` | Memory systems |
| `@mastra/rag` | `node_modules/@mastra/rag/dist/docs/` | RAG features |

---

## Quick Commands

```bash
# List installed packages
ls node_modules/@mastra/

# Find export in SOURCE_MAP
cat node_modules/@mastra/core/dist/docs/SOURCE_MAP.json | grep '"ExportName"'

# Read type definition
cat node_modules/@mastra/core/dist/[path-from-source-map]

# List available topics
ls node_modules/@mastra/core/dist/docs/
```

---

## Why Use This

- Embedded docs match installed version exactly
- Mastra evolves quickly — installed docs stay in sync
- Training data may be outdated
- Type definitions include JSDoc and examples

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1614 chars