# Mastra (agent skill)

> Mastra is an agent skill (a SKILL.md file) from mastra-ai/skills. Comprehensive Mastra framework guide for building agents, workflows, tools, memory, workspaces, and storage with current APIs. It works with Claude Code and has 95 GitHub stars. Install it by copying the skill folder into your agent's skills directory.

Comprehensive Mastra framework guide for building agents, workflows, tools, memory, workspaces, and storage with current APIs. Use for documentation lookup, API verification, TypeScript setup, common errors, migrations, and mastra api CLI tasks: inspect or call resources on local, Mastra platform, Trace Intelligence, or remote servers. For Mastra Factory operations, discover and activate the companion mastra-factory skill.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/mastra-ai/skills |
| Skill path | skills/mastra/SKILL.md |
| Skill name | mastra |
| GitHub stars | 95 |
| Installs on skills.sh | 66,386 |
| License | Apache-2.0 |
| Skills in repo | 1 |
| Plugin marketplace | mastra-agent-skills |
| Official | yes |
| Works with | Claude Code |
| Category | Docs & writing |
| Last commit | Oct 6, 2026 |

## When it triggers

- Use for documentation lookup, API verification, TypeScript setup, common errors, migrations, and mastra api CLI tasks: inspect or call resources on local, Mastra platform, Trace Intelligence, or remote servers.

## Add this skill

### Claude Code

```sh
/plugin marketplace add mastra-ai/skills
/plugin install mastra-skills@mastra-agent-skills
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
git clone --depth 1 https://github.com/mastra-ai/skills.git
cp -r skills/skills/mastra .agents/skills/mastra   # repo; ~/.agents/skills for all projects
```

### Cursor

```sh
git clone --depth 1 https://github.com/mastra-ai/skills.git
cp -r skills/skills/mastra .cursor/skills/mastra   # project; ~/.cursor/skills for all projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

skills.sh listing: https://www.skills.sh/mastra-ai/skills/mastra

---

Canonical page: https://appsgit.com/skills/mastra-ai-mastra
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
