pan-foreman
The work-agent protocol for an issue whose xBRIEF plan has parallel waves. The foreman is the issue's work agent: it dispatches same-family workers as…
от eltmon★ 36 звёзд на GitHub
Установить pan-foreman в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
pan foreman
Use this when the issue's xBRIEF plan (pan task show <id>) has more than
one dispatchable item in a wave. A plan with a single linear chain of items
does not need this — just work the checklist item by item as the plain work
agent. This skill is the foreman's own protocol, not a separate role: the
foreman IS the work agent for this issue, holding the pane whose backend
metadata names role: work.
Same-family vs. cross-family
Same-family (same harness as you, e.g. another Claude Code instance) — dispatch as an in-harness subagent (the
Agenttool) in its own git worktree under the issue's workspace. Cheap, fast, shares your context window's tooling.Cross-family (a different harness, or you need it visible as its own terminal pane for the operator to watch or intervene) — dispatch as a terminal-backend pane:
pan spawn --issue <id> --item <item-id> --model <model> [--harness <h>] [--effort <level>]This creates a worker pane in its own item worktree
<workspace>/.swarm/<item-id>/on branch<feature-branch>-<item-id>.--sharedruns the pane in the issue workspace instead, on the feature branch. Use it only for strictly serial work, when no other worker is running in the workspace. Only the foreman or the operator may pass it:pan spawn --sharedfrom a worker pane exits 1.
Either way, give the worker an exact file-ownership map (which files/paths
this item owns) restated in its dispatch prompt — every worker has its own
worktree, but overlapping items still conflict when you integrate them.
Items whose ownership maps overlap run serially, in the same wave, never
concurrently; disjoint items run concurrently. pan task claim now enforces
the no-overlap rule itself: it refuses an item whose files_scope overlaps
another item a running agent already holds, so a dispatch mistake fails the
claim instead of silently clobbering files.
Per-item protocol (every worker follows this)
pan task claim <id> <item-id>— claims the item in the continue file. The claim refuses (exit 1, nothing written) when a running agent already holds this item, or holds another item whosefiles_scopeoverlaps it. A worker that gets refused runspan task nextand picks a different item — only the foreman or the operator passes--stealto override the refusal. Apan spawnworker pane claims under its own pane name (OVERDECK_CLAIM_ID, set bypan spawn), so its claim can be liveness-checked.- Implement. One item, one concern; run only the touched tests.
- One commit with the trailer
Item: <item-id>, on the worker's current branch — its item branch<feature-branch>-<item-id>(or the feature branch for a--sharedpane). Add one body lineItem: <item-id>.acNfor each acceptance criterion of the item. - Hand back: report the commit sha and branch to the foreman — an
in-harness subagent does this in its final result; a
pan spawnpane does it withpan tell <foreman-agent-id> "<item-id> committed <sha> on <branch>". Then stop. - The worker does not push, does not run
pan task done, and never runspan done.
Dispatch prompt for a worker
Fill this in and send it with pan tell <pane-id> after pan spawn prints
the pane id (or pass it as the Agent prompt for an in-harness subagent):
Issue: <issue-id>
Item: <item-id>
File ownership: <the file-ownership map for this item>
Foreman agent id: <$OVERDECK_AGENT_ID>
Steps:
1. `pan task claim <issue-id> <item-id>`.
2. Implement. One item, one concern; run only the touched tests.
3. One commit with the trailer `Item: <item-id>`, on your current branch,
plus one body line `Item: <item-id>.acN` for each acceptance criterion
of the item.
4. Hand back: report the commit sha and branch to the foreman — in your
final result if you are a subagent, or with
`pan tell <foreman-agent-id> "<item-id> committed <sha> on <branch>"` if
you are a pane. Then stop.
5. Do not push, do not run `pan task done`, and never run `pan done`.
Foreman-only responsibilities
- Integrate. For each handed-back item, confirm the commit from the
issue workspace with
git log --format=%H -E --grep='^Item: <item-id>:space:*$' <feature-branch>..<feature-branch>-<item-id>, cherry-pick or merge it onto the feature branch (re-add theItem:lines if you squash; nothing to pick for a--sharedworker),git push, then close the item and its ACs in one call:pan task done <id> <item-id> <item-id>.ac1 <item-id>.ac2 .... - Own messaging. Only the foreman's pane (
role: work) or an operator conversation maypan tella worker pane; a worker pane refuses a prompt from anything else (backend-enforced, FR-17). Workers do not message each other — route cross-item questions through the foreman. - Watch waves. Do not start wave N+1 items until wave N's file-ownership conflicts are clear (either wave N landed, or the con
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read - 03
Agent
FAQ
Что делает скилл pan-foreman?
The work-agent protocol for an issue whose xBRIEF plan has parallel waves. The foreman is the issue's work agent: it dispatches same-family workers as in-harness subagents in worktrees and cross-family workers as terminal-backend panes via `pan spawn`, has every worker commit on its own item branch and hand back, integrates each item onto the feature branch and runs `pan task done` for it, and runs `pan done` once at the end.
Как установить скилл pan-foreman?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pan-foreman запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…