Command Palette

Search for a command to run...

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

moai-factory-foreman

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

One unattended factory foreman iteration: watch the backlog queue, dispatch the next operator-picked card to an isolated worker, collect completion evidence…

modu-aiот modu-ai★ 1 264 звезды на GitHub

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

Factory Foreman Loop Iteration

[HARD] Before the first action of a session running this skill, read BOTH role-gated rule files in full: .claude/rules/moai/workflow/factory-dispatch.md and .claude/rules/moai/workflow/cross-session-messaging.md. A Codex-only project deploys the same files under .moai/policies/ (for example .moai/policies/workflow/factory-dispatch.md) — read whichever layout this project carries. The always-loaded surface carries only their stubs; the dispatch protocol, the card classes, and the queue boundaries this loop consumes live in those two files.

One unattended pass of the factory foreman: watch the backlog queue, dispatch the next operator-picked card to an isolated worker, collect completion evidence, report. The queue surface is moai todo (the moai gtd spelling serves the same queue); the dispatch protocol and card classes live in the factory dispatch rule (.claude/rules/moai/workflow/factory-dispatch.md). foreman — an auxiliary role of the leader: the unattended watcher that dispatches the already-picked card to an isolated worker when no leader session is holding the queue.

Running unattended

AskUserQuestion is removed from the tool pool while this skill is active — that is the mechanical guarantee that the loop cannot stop and ask. Anything that would have been a question becomes a line in the iteration report, and anything that genuinely needs the operator's decision becomes a blocked card under Boundaries below.

Deployment: start a session in the project, run bare /loop, then background the session — loop tasks carry over to the background session and keep running without a terminal. Esc cancels the pending wakeup of a waiting loop. A recurring loop expires seven days after creation; restart it when the queue still needs a foreman. Background monitors do not survive a session resume — the first iteration after a resume re-arms the queue watch.

The session's permission settings must already allow what this loop uses (queue reads, git inspection, the worker spawn). A permission prompt that surfaces while unattended stalls the iteration until someone attaches; pre-approving that surface in project settings is the operator's setup step, not something this loop can do for itself.

Boundaries (hard)

  1. The operator admits and picks work. Only backlog items whose state is already picked are dispatchable. Never run moai gtd add; never run moai gtd next <n> — that mutation is the operator's pick. Never invent, reword, or reorder cards. An empty queue is a legitimate state: say so and idle. A batch authorization (/moai:todo --auto — the operator's typed invocation-as-approval) is the card-pick gate's autonomous form (.claude/rules/moai/workflow/auto-semantics.md §9): within it, serial consumption on its own judgment, outside the keep-set (bar a [보류 card, which is ranked last, not excluded), is authorized; queue ADMISSION stays the operator's. A lane takes its card through moai factory next --card <id>, never through this loop.
  2. No approval gate is answered on the operator's behalf. When a card's next step needs a human decision that is not already recorded as made (plan-to-run kickoff approval, a review severity call, a scope choice), do not proceed. Leave the card picked, name it blocked-for-operator in the report together with the decision it waits on, and move on.
  3. One write-capable worker at a time. While a worker is in flight the iteration only reads. This is the foreman's own serialization, stricter than the doctrine it sits under — one writer per tree, owned by .claude/rules/moai/core/agent-common-protocol.md § Background Agent Execution. The foreman keeps one worker in flight so a failed iteration has exactly one author to read.
  4. Every worker runs in its own worktree (isolation: "worktree" on the spawn; relative paths in the prompt — the worker's CWD is its worktree root). Nothing writes to the shared checkout.
  5. No integration actions. No push, no pull request, no merge, no branch deletion, no worktree disposal. The card's branch is unpushed and its worktree is the work's only instance; both stay until the operator integrates them. The report names the branch and the worktree path.
  6. Verification is lane-local. The worker runs only the checks its own change can affect; the full suite belongs to CI. Never spawn background CPU load — the queue watch below is the only long-running process this loop arms.
  7. Completion is read, never trusted. A card advances only on evidence this iteration actually read.

The iteration

  1. Queue watch. If no backlog monitor is live (first iteration, or after a resume), arm one Monitor on the queue file, re-arming it at each expiry:

    • command:

      # The queue directory, exactly as the project reports it: the can
      
Полный SKILL.md на GitHub

Установить moai-factory-foreman в Claude Code и Claude Desktop

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

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

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

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

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

Read
Grep
Glob
Bash(moai gtd:*)
Bash(git status:*)
Bash(git log:*)
Bash(git rev-parse:*)
Bash(git diff:*)
Bash(git show:*)

FAQ

Что делает скилл moai-factory-foreman?

One unattended factory foreman iteration: watch the backlog queue, dispatch the next operator-picked card to an isolated worker, collect completion evidence on read (not on claims), and report. This is the body the project's loop.md driver invokes each iteration of a bare /loop; it can also be invoked directly to test one cycle by hand.

Как установить скилл moai-factory-foreman?

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

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

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

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

Сравнить moai-factory-foreman с