mastra-embeded-docs-look-up
40
总安装量
40
周安装量
#5219
全站排名
安装命令
npx skills add https://github.com/mastra-ai/skills --skill mastra-embeded-docs-look-up
Agent 安装分布
claude-code
33
opencode
21
codex
21
gemini-cli
21
cursor
19
antigravity
19
Skill 文档
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:
cat node_modules/@mastra/core/dist/docs/SOURCE_MAP.json | grep '"Agent"'
Returns: { "Agent": { "types": "dist/agent/agent.d.ts", ... } }
2. Read type definition:
cat node_modules/@mastra/core/dist/agent/agent.d.ts
3. Check topic docs:
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
# 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