Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

configure-factory-rules

БесплатноБез исполняемых скриптовНе проверен

Configure board-owned lifecycle, policy, phase-semantics, and tool-result rules, plus integration event rules

mastra-aiот mastra-ai★ 29 944 звезды на GitHub

Об этом скилле

Configure Factory Rules

Help the user change Factory policy in the typed deployment configuration. Factory rules are trusted server code. Never place deployment policy in this skill, repository instructions, browser code, or a parallel actions system.

Find the configuration

  1. Search for new MastraFactory, its boards option, factory.upsertBoard calls, defineBoard, configVersion, and the installed GithubIntegration, PlatformGithubIntegration, LinearIntegration, or PlatformLinearIntegration constructors and their rules options.
  2. Read the existing rule configuration and its tests before editing.
  3. Import rule helpers and types from the same local Factory module used by the deployment.
  4. For custom-board handlers or phase semantics (kind, role), edit the installed defineBoard() definition. For tool-result rules, add tools: { <toolName>: { onResult } } to the installed defineBoard() definition of the board whose seat produces the result. For GitHub or Linear rules, configure the installed integration constructor directly.

Do not guess a file path. Factory deployments can assemble MastraFactory from different entry points.

Preserve the public shape

A phase starts its work only through its stored runner (skill, context, instructions, goal); onEnter, onExit and an outcomes map in defineBoard() are ignored with a warning (a list of outcomes, [{ key, label, to }], is what a working phase's session reports). Work installs automatically with preferred defaults. Custom boards are installed through boards or written into projects with factory.upsertBoard(). includeDefaultBoards is deprecated and ignored: Factory adds Work only to a project with no boards.

Remove former global rules.work and rules.review configuration. There is no board override API. To customize Work, write a board under the work key with factory.upsertBoard(board, { projects: 'all' }) at every startup, preferably starting from the exported workBoard phases; projects created later get it instead of Factory's Work. The Review board is retired: its pull requests live in Work's Review phase (pr-review), and review can't be used as a board ID. Keep the built-in phase names and roles unless the changed runtime and UI behavior is intentional. There is no global rules tree; new MastraFactory({ rules }) throws. Set configVersion on MastraFactory for the audit label. Tool-result rules resolve only from the item's installed board: Work declares none, and custom boards inherit nothing.

By default, every integration arrival stays in its routed board's initial phase (Intake for Work) without starting or suggesting a run. This applies to GitHub, GitLab, Linear, Jira, and incident.io; explicit trusted GitHub review requests without an existing card go directly to Review (pr-review). Do not restore default arrival automation on the built-in boards.

authorTrusted and autoStartCandidate remain available as metadata for custom rules. To triage arrivals automatically, file them into a working triage phase with an intake route and let that phase's runner start on its own through autoStart: true, optionally narrowed with autoStartWhen (for example item.trusted equals true to limit it to trusted authors). Do not use a phase onEnter handler; it is ignored.

Configure GitHub on the installed GithubIntegration or PlatformGithubIntegration constructor, and Linear on LinearIntegration or PlatformLinearIntegration, instead:

new PlatformGithubIntegration({ rules: { issueCommentCreated: null } });
new PlatformLinearIntegration({ rules: { issueClosed: null } });

When Platform credentials are present the factory installs PlatformGithubIntegration itself, so forward the same options with new MastraFactory({ platform: { github: { rules, slug } } }) rather than constructing the integration; an explicit integrations entry with id github still takes precedence and makes that key a no-op, and the factory warns instead of ignoring it silently.

GitHub and Linear integrations exclusively own their event handlers; configure them through constructor rules[event], not the global Factory rules tree. Move former rules.linear[event].onEvent values to the Linear constructor's rules[event]. Every built-in handler is enabled automatically; never import or spread defaults just to install an integration. A function replaces the default, null disables that event's handler, and omitted or undefined values retain defaults. Constructors validate names and handler values, then copy and freeze the effective map per instance. Disabling a handler does not disable authentication, ingestion, or reconciliation bookkeeping. Linear fetch, platform polling, and reconciliation all use the owning instance's handlers.

Do not create an actions config or execute authoritative policy in React. Each handler returns one typed FactoryRuleDecision or undefined.

A

Полный SKILL.md на GitHub

Установить configure-factory-rules в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл configure-factory-rules?

Configure board-owned lifecycle, policy, phase-semantics, and tool-result rules, plus integration event rules

Как установить скилл configure-factory-rules?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл configure-factory-rules запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить configure-factory-rules с