mastra-embeded-docs-look-up

Look up Mastra API documentation embedded in node_modules/@mastra/*/dist/docs/ for accurate API signatures. Use for Agent, Workflow, Tool, Memory configuration questions and code validation.

mastra-ai/skills41 installsApache-2.0Synced Aug 25

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: mastra-embeded-docs-look-up
description: Look up Mastra API documentation embedded in node_modules/@mastra/*/dist/docs/ for accurate API signatures. Use for Agent, Workflow, Tool, Memory configuration questions and code validation.
license: Apache-2.0
---

# 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
- Mastra is in active beta (APIs change frequently)
- Training data may be outdated
- Type definitions include JSDoc and examples

More Writing & Documentation skills

paper-context-resolver

lllllllama/rigorpilot-skills

Rigor Paper Context helper for README-first deep learning repo reproduction. Use only when the README and repository files leave a narrow reproduction-critical gap and the task is to resolve a specific paper detail such as dataset split, preprocessing, evaluation protocol, checkpoint mapping, or runtime assumption from primary paper sources while recording conflicts. Do not use for general paper summary, repo scanning, environment setup, command execution, title-only paper lookup, or replacing README guidance by default.

450.8k

repo-intake-and-plan

lllllllama/rigorpilot-skills

Rigor Intake helper for README-first deep learning repo reproduction. Use when the task is specifically to scan a repository, read the README and common project files, extract documented commands, classify inference, evaluation, and training candidates, and return the smallest trustworthy reproduction plan to the main orchestrator. Do not use for environment setup, asset download, command execution, final reporting, paper lookup, or end-to-end orchestration.

450.0k

minimal-run-and-audit

lllllllama/rigorpilot-skills

Rigor Run skill for README-first deep learning repo reproduction. Use when the task is specifically to capture or normalize evidence from the selected smoke test or documented inference or evaluation command and write standardized `repro_outputs/` files, including patch notes when repository files changed. Do not use for training execution, initial repo intake, generic environment setup, paper lookup, target selection, hidden scientific-meaning changes, or end-to-end orchestration by itself.

449.9k

← All Writing & Documentation skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY