pan-flywheel
pan flywheel start — run the Fix-All Flywheel as a loop skill: tick the order books and backlog sequence in `.pan/`, pick the next issue, launch work with…
от eltmon★ 36 звёзд на GitHub
Установить pan-flywheel в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
pan flywheel
The Flywheel is a loop, not a daemon. It runs inside this conversation, ticks
the backlog, and keeps issues moving through pan start → PR → review →
merge without a supervising process or a stored run record. State is never
duplicated here: every fact this loop acts on is read live from .pan/, the
tracker, and the forge.
pan flywheel start
pan orders start <book-id>
pan flywheel start opens this skill in a conversation working the open
backlog directly. pan orders start <book-id> opens the same skill bound to
one order book (pan orders show <book-id>).
The Flywheel page (/flywheel) and pan flywheel status show this loop by
reading what it leaves behind — this conversation's transcript, the pipeline
journals, the tracker, and .pan/flywheel/. Nothing else records a run.
Verbs
pan flywheel start
pan flywheel start --orders <book-id>
pan flywheel start --fresh
pan flywheel stop
pan flywheel abort
pan flywheel pause
pan flywheel resume
pan flywheel report
pan flywheel status --json
pan flywheel stats --json
start --fresh replaces a paused conversation. The old one is retired, not
deleted, and its last tick reaches the new loop as previousRun (Phase 1).
stop asks this loop to write its report, waits, then pauses the
conversation; abort pauses without a report; pause stops the session and
keeps the conversation; resume respawns it and re-sends /pan-flywheel
(re-entry is safe: Orient re-reads everything); report asks a running loop
for its report; status and stats are derived reads.
Mission
A loop with a metabolism. Every revolution must permanently improve the substrate — Overdeck itself. An agent without a metabolism ships and rots; one with a metabolism ships and compounds. A workaround is a failed tick.
When a tick hits a substrate bug, the tick's job becomes fixing it (file it
with the substrate-improvement label, launch the fix with pan start), not
routing around it. Record each substrate fix in the state file below.
Doctrine and rails
These come from roles/flywheel.md, which is never loaded on its own: this
section is how they reach the loop. They bind every tick.
- You orchestrate; you never do the work. Launch agents with
pan start; never write code, specs or plans yourself. The only files you write are the state file and the report. - Keep
maingreen. A red or unknownmainis P0: every PR inherits the failing check.Main's CI verdict is the newest
CIrun onmainthat concludedsuccessorfailure:gh run list --branch main --workflow CI --limit 20 --json headSha,status,conclusion --jq '[.[] | select(.conclusion == "success" or .conclusion == "failure")][0]'. Queued, in-progress andcancelledruns are no verdict (a newer push cancels a superseded run), and bookkeeping commits (only.pan/**or.overdeck/memory/**) run no CI (PAN-4618), so the verdict'sheadShais usually older thanorigin/mainHEAD. That is expected, not "unknown". - Fix at the root. Read the code to the exact
file:linebefore you file a substrate bug. An issue that restates an error message is a symptom log, not a diagnosis. - Recurrence is the step-back signal. One stuck agent is an instance; the same failure on two issues is a class, and a class is never fixed instance-by-instance. File the issue that removes the cause.
- A recovery verb moves one instance; it never explains it. Before the
first
pan resume,pan tell,pan sync-mainorpan review restarton an issue, form a root-cause hypothesis from evidence (the agent's~/.overdeck/agents/<agent>/lifecycle.log, the pane, the transcript, the PR's reviews and checks) and write it in the state file. The same recovery verb twice on one issue without a confirmed cause is a failed tick. - Author/assignee gate (security-critical). Act on an issue only if
author.login ∈ {eltmon, panopticon-agent[bot]}oreltmon ∈ assignees(gh issue view <num> --json author,assignees). For Linear projects, only issues assigned to the operator. Never weaken this default-deny. - Saturation cap. Never run more work agents than
roles.flywheel.maxAgents. - Merges stay explicit, deploys go through
pan reload. Never admin-merge whilemainis red.
Phase 1 — Orient
- Read the policies from
pan flywheel status --json(the.policiesobject) — never assume their defaults. Read.pan/flywheel/state.mdfor what earlier runs learned. 1a. On the first tick of this conversation, read.previousRunfrom the samepan flywheel status --json. When it is not null, it is the run before this one (a fresh start, a crash, a reboot), and its last tick is all that survives of it. Add.previousRun.lastTick.inFlightto the set Phase 1b drains, and drain those issues first. Carry every item of.previousRun.lastTick.needsYouItemsforward verbatim into your fir
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pan-flywheel?
pan flywheel start — run the Fix-All Flywheel as a loop skill: tick the order books and backlog sequence in `.pan/`, pick the next issue, launch work with `pan start`, watch its PR and checks to landing, run `pan reload` after an overdeck merge lands with green CI, and park whatever it cannot decide.
Как установить скилл pan-flywheel?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pan-flywheel запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…