# Repository Briefing: mastra-ai/skills
> Source: https://repoforai.com/repo/mastra-ai/skills (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/mastra-ai/skills
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: JavaScript
- **License**: See repository
- **Engineering Health**: B+ (64/100 · Maintenance 35/35 · Adoption 12/25 · Releases 11/20 · License 6/20)
- **Review Snapshot**: 2026-11-30
- **Deployment / Stack Signals**: CLI
- **Momentum**: 108 ★ total (+0 24h / +1 7d) · 14 forks
- **When to Use**: Best for: Teams using a supported coding agent for recurring Mastra API lookup, migrations, deployment work, or authorized Factory diagnostics. Skip if: You need a callable MCP endpoint, a self-contained operations runtime, or a deployment that must operate entirely offline while relying on hosted Mastra services.

## Overview
```text
### Architecture & Core Mechanics
This is a file-based skill bundle for coding agents working with Mastra, a TypeScript application framework. The general `mastra` skill introduces core concepts and routes tasks to focused files under `references/` for setup, API lookup, migrations, and operations. The standalone `mastra-factory` skill covers the separate `mastra api factory` CLI workflow. The host agent loads the instructions and decides which references or external commands to use.

The `.well-known/skills/index.json` index and the two `SKILL.md` entrypoints provide skill discovery, not a tool RPC interface. The root tree includes `.claude-plugin/`, but its presence does not establish a server runtime. Despite the MCP taxonomy label, the observed integration is skill installation: the exposed artifacts do not establish an MCP transport, tool-registration endpoint, or standalone server process.

### Key Capabilities & Differentiators
For development, `mastra` covers project creation, common errors, and version migrations. For version-sensitive API questions, it directs the agent to embedded docs at `node_modules/@mastra/*/dist/docs/` or to `https://mastra.ai/llms.txt` for remote lookup. Its operational references cover using the Mastra API CLI to inspect and call resources on local, Platform, or remote servers, as well as `mastra deploy` and Platform workspaces.

The Gateway reference covers shared credentials across providers, failover, spend tracking, and `mastra/` model identifiers. Trace guidance covers selecting completed traces with recursive predicates and cursor pagination. Factory guidance covers first-use CLI and login checks, URL-based connection, project and queue summaries, and work-item session, thread, and memory inspection. It separates evidence that an item needs attention from permission to perform a repair. These are workflows the skills teach; the bundle does not itself implement the Gateway, trace engine, or Factory service.

### Trade-offs & Limitations
Compared with asking an agent to browse framework docs directly, a single Mastra entrypoint gives recurring tasks more consistent routing across API lookup, migrations, and operations. The trade-off is that the host must load the skill, choose the right reference, and respect CLI authorization boundaries. For a version-sensitive question, checking the docs shipped with the installed package is more reliable than assuming a remote example matches that version. For a one-off API lookup, direct documentation access may be simpler.

Compared with a true MCP integration, this bundle does not expose structured callable tools through a server contract; it guides an agent in using a separate CLI where appropriate. That leaves no skill server to operate, but also no uniform invocation or permission boundary supplied by the bundle. Installation is not an authorization mechanism for mutations. The root contains a `LICENSE` file, but the license type and terms are not established here, so commercial reuse or repackaging requires checking the file itself.

### Hardware & Deployment Guide
The primary install path is `npx skills add mastra-ai/skills`, which requires an environment with `npx` available. Other documented paths use `gh skill install mastra-ai/skills`, `.well-known` discovery via `npx skills add https://mastra.ai/`, or a manual clone followed by agent configuration. Add `--skill mastra-factory` to install only Factory. Select the supported agent and scope explicitly for a global install. PromptScript requires project scope; check the target agent after multi-agent installs because only some integrations may succeed.

Use `npx skills list` (add `-g` for global scope) and check that the target agent has the expected skill references linked. Local copies and docs embedded in installed Mastra packages can support lookup without fetching remote docs; remote discovery and hosted workflows still require connectivity. Factory operations also depend on the Mastra CLI, the relevant login, and a reachable target. There is no documented GPU or persistent service prerequisite for the bundle itself, no verified runtime version minimum, and no listed release milestone to use as a compatibility anchor.
```

## Key Capabilities
```text
- Skill layout: mastra routes general framework work to topic references; mastra-factory is independently installable.
- Version-aware lookup: Inspect docs under node_modules/@mastra/*/dist/docs/ for installed APIs; use https://mastra.ai/llms.txt when remote lookup is needed.
- Discovery: The .well-known index lists the mastra and mastra-factory SKILL.md entrypoints under the same URL prefix.
- Factory operations: Connect by URL without a project link file, inspect queues and sessions, and treat mutations as separately authorized actions.
- Trace queries: Guidance covers completed traces, recursive predicates, and cursor pagination.
- Install verification: Use npx skills list with -g for global scope; a copied but unlinked skill is not active.
```

## Quick Start / Clone
```bash
npx skills add mastra-ai/skills
```
