mastra-factory — скилл для Claude Code: управление Mastra Factory
Скилл для работы с Mastra Factory через CLI: смотрит статус, очередь, проекты и сессии, а по разрешению запускает операции.
npx skills add mastra-ai/skills --skill mastra-factory -a claude-codeЧто делает mastra-factory
Скилл превращает mastra api factory в пульт управления Factory. Агент проверяет состояние проекта, рабочие элементы, метрики, пороги, решения и здоровье супервизора, а потом сводит всё в короткий отчёт: что в работе, что в очереди, что заблокировано, какие сессии идут и какое решение висит на человеке.
По умолчанию скилл работает только на чтение. Прежде чем что-то менять, он уточняет вашу зону ответственности — разрешение может покрывать одно действие или давать постоянную автономию по названным проектам и типам операций. Внутри этой зоны агент действует без подтверждения на каждый шаг. Перед записью он заново читает состояние, делает минимальную правку, затем перечитывает и показывает ID, ревизии и итог.
Перед первым запуском прочитайте references/connection.md: нужно проверить доступность CLI и установить фактический URL вашей Factory. Для платформенных развёртываний используется mastra auth whoami, а если вы не залогинены, скилл предложит mastra auth login, а не запустит браузерный вход сам. Локальная и self-hosted аутентификация может отличаться. Смена стадии делается переходами, а не правкой метаданных, и требует текущей ревизии и свежего UUID запроса. Скилл не читает .env, bearer-токены и сохранённые данные входа, не выдумывает ID и сессии и не ходит в приватные HTTP-маршруты в обход CLI.
Какие задачи решает
- понять, что сейчас в работе и что стоит в очереди
- найти заблокированные и нездоровые рабочие элементы
- посмотреть историю треда и текущую память агента
- свести метрики, пороги и решения в один отчёт
- запустить операцию Factory в пределах выданных полномочий
Примеры запросов агенту
- Подключись к моей Mastra Factory и покажи статус проекта
- Какие рабочие элементы заблокированы и какие решения ждут меня?
- Покажи историю треда и память по этому рабочему элементу
Как установить mastra-factory
1Через Skills CLI (Vercel)
npx skills add mastra-ai/skills --skill mastra-factory -a claude-code2Вручную: положить файлы
~/.claude/skills/mastra-factory/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/mastra-factory/
1Через Skills CLI (Vercel)
npx skills add mastra-ai/skills --skill mastra-factory -a codex2Вручную: положить файлы
.agents/skills/mastra-factory/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add mastra-ai/skills --skill mastra-factory -a cursor2Вручную: положить файлы
.cursor/skills/mastra-factory/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install mastra-ai/skills mastra-factory2Вручную: положить файлы
.github/skills/mastra-factory/SKILL.md1Через Skills CLI (Vercel)
npx skills add mastra-ai/skills --skill mastra-factory -a gemini-cli2Командой платформы
gemini skills install https://github.com/mastra-ai/skills --path skills/mastra-factoryВручную: положить файлы
.devin/skills/mastra-factory/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add mastra-ai/skills --skill mastra-factory -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о mastra-factory
Как установить mastra-factory в Claude?
Выполните npx skills add mastra-ai/skills --skill mastra-factory -a claude-code. Скилл окажется в ~/.claude/skills/mastra-factory/SKILL.md.
Что делает mastra-factory?
Даёт агенту доступ к mastra api factory как к панели управления: статус, очередь, проекты, рабочие элементы, метрики, решения и сессии супервизора. По умолчанию всё только на чтение.
Нужен ли развёрнутый репозиторий для работы скилла?
Нет. Явный вызов с --url работает и из пустой директории, файл .mastra-project.json не обязателен. Главное — не полагаться на общий хост или имя проекта, а указывать цель явно.
Исходный текст
SKILL.md · Apache-2.0
--- name: mastra-factory description: "Operate and supervise Mastra Factory through `mastra api factory`. Use for first-time Factory connection and login, status or queue summaries, project and work-item inspection, thread history and memory, metrics, health, decisions, attention, supervisor sessions, and user-authorized autonomous or interactive Factory operations on hosted, local, remote, or self-hosted servers." license: Apache-2.0 metadata: author: Mastra version: "1.0.0" repository: https://github.com/mastra-ai/skills --- # Mastra Factory Supervisor Use `mastra api factory` as the operational control plane for Factory. ## First use: connect before inspecting Read [`references/connection.md`](references/connection.md). Check CLI availability, establish the user's actual Factory URL, and for platform-hosted deployments run `mastra auth whoami`. If logged out, offer `mastra auth login` rather than silently starting browser login. Local/self-hosted authentication may differ. An explicit `mastra api --url "$FACTORY_URL" factory project list` works from an empty directory; no deployed repository or `.mastra-project.json` is required. Never assume a shared host, organization, project name, or ID. Preserve the explicit target on subsequent commands. ## Default behavior For status, inspection, diagnosis, queue review, or recommendation requests: 1. Stay read-only. 2. Select the sole or explicitly named project; report choices when ambiguous. 3. Inspect project state, work items, metrics, thresholds, decisions, attention, and supervisor health/session. 4. Correlate stages, revisions, sessions, decisions, and health findings. 5. Report active/queued work, blocked or unhealthy items, running sessions, pending decisions, human attention, and one recommended next action. 6. Execute a recommendation only when the current request or a previously granted operating scope authorizes it. ## Required reference Read [`references/factory-supervisor.md`](references/factory-supervisor.md) before running Factory commands for output control, contracts, the read-only workflow, mutation protocol, governance constraints, durable-session limitations, and error handling. For “my work,” actual execution progress, thread messages, memory, or health interpretation, also read [`references/session-inspection.md`](references/session-inspection.md). Distinguish card stages from running agents, historical messages from current memory, and agent claims from verified repository outcomes. ## Safety boundary - Never read or reveal `.env`, bearer tokens, saved login contents, or platform/provider credentials. - Never invent IDs, stages, revisions, request IDs, or sessions. - Establish the user's operating scope before mutating. Authorization may cover one action or grant standing autonomy over named projects, resources, action types, or objectives. - Within a clear delegated scope, act without asking for confirmation before every mutation. Ask only when an action is ambiguous, outside scope, or materially more destructive than the granted authority. - Fetch current state before a write, make the smallest in-scope change, then refetch and report IDs, revisions, and final state. - Use transitions—not metadata updates—for stage changes, with the current revision and a fresh UUID request ID. - Never use private HTTP routes to bypass unsupported CLI operations. - If `work-item start` lacks a supported durable user session, report the block; never substitute the supervisor session or invent a session UUID.
© Mastra · Apache-2.0 · mastra-ai/skills