workflow¶
The AI SDLC, carried out by skills: a work stream through the requirements, implementation and test flows, one issue to a green pull request, the model half of the quality gate, the owner's input and decisions, and parallel workers in worktrees. The approach — flows, parallel work, the gate, who decides what — is explained in docs/sdlc/; this page is the plugin.
It depends on git-flow (for babysit-pr, pull-request and github-issues) and on
superpowers@claude-plugins-official; Claude Code installs both with it. The Tech-Stack page for
plugins and skills is docs/stacks/claude.md.
Skills¶
workstream¶
Finds where a work stream stands and takes the next step of the requirements, implementation or test flow: epics, sub-issues, specs and mockups first, then the implementation, then the tests.
When: "work on the website stream", "what is next in epic 20?", "split this epic into
sub-issues". Example: /workflow:workstream B. The skill: plugins/workflow/skills/workstream/SKILL.md.
work-on¶
Carries one issue to a green pull request: checks the issue against the repository, claims it,
builds test first, runs ready, opens the pull request and babysits it; reports to the
coordinator that started it, or to the user. A question task ends instead in a decision page for
the owner. It never merges. The coordinator's workers run it through their handover.
When: "work on #76", "fix issue 76", "take #76". Example: /workflow:work-on 76. The skill:
plugins/workflow/skills/work-on/SKILL.md.
ready¶
The model half of the quality gate: simplify, code review, security review and, where it is installed, the Aikido scan, on the work of the current branch. It fixes what they find and hands anything that needs a decision to the user. The machine half is the repository's own checks (docs/sdlc/quality-gate.md).
When: "is this done?", "wrap up", "final check", "before I push", and before opening a pull
request. The skill: plugins/workflow/skills/ready/SKILL.md.
owner-feedback¶
Collects the owner's decisions on one published page per milestone, epic or issue — up to 3 options per question, the recommended one first, a free-text field, drafts and partial submission — and applies the submitted answers to their source issues once. It also renders the result page of a question task from a spec, in the same layout, linking to the decision page instead of collecting answers.
When: a question for the owner waits beyond the current exchange, or the owner says the answers
are in. The skill: plugins/workflow/skills/owner-feedback/SKILL.md.
owner-pr-review¶
The owner's own review of a pull request. A simple one gets a summary and its GitHub link, and
the owner approves there. A complex one is held for the owner (needs:owner-merge, auto-merge
off), gets the line that stops its worker, a worktree for its branch and VS Code; in that
worktree's new session the skill checks the diff against the issue's acceptance criteria and
makes the owner's changes. Each write waits for the owner's yes; it never merges.
When: "I want to review #512 myself", "open #730 in VS Code", and "owner review of this pull
request" in the worktree. The skill: plugins/workflow/skills/owner-pr-review/SKILL.md.
intake¶
Turns the owner's new input into checked, prioritized issues: restates it, checks for duplicates
and extensions, asks only what changes the result, proposes type, priority:* label with its
reason, milestone and dependencies, and writes nothing before the owner's yes. Before the owner
is asked, the intent-reviewer agent (on Fable, read-only, without the conversation) checks each
draft against plugins/workflow/skills/intake/intent-review.md, and intake fixes, asks or
rejects each finding; "review the intent of #n" runs the same review on an existing issue. It files
questions as [Question] tasks, proposes priorities for the backlog, and keeps the Question
Board of open questions.
When: "we should also…", "add this to the backlog", "rank the backlog". The skill:
plugins/workflow/skills/intake/SKILL.md.
research¶
Turns one piece of outside material — a book, a repository, a video, a concept — into a draft
page of the repository's research folder: reads the sources, sets the material beside what the
repository has, writes a Critical assessment whose critics each carry a link, has the
research-reviewer agent (read-only, on the session's model) check that chapter against
plugins/workflow/skills/research/review-checklist.md, and runs the folder's checks. The
folder and its checks come from the Research and Research checks keys of the ## Workflow
section; the page shape comes from the folder's index. The page stays uncommitted for the caller.
When: "make a research page for…", "write up this repo and compare it with ours", and a research
task that names it. The skill: plugins/workflow/skills/research/SKILL.md.
docs¶
Writes and reviews the repository's Markdown pages to Google's technical writing guidance and the
repository's docs rules: a summary first on the overview and on every section's first page, no
history of earlier states, the repository's voice, one topic per page, plain words, links instead
of copies. Write mode drafts or rewrites one page or folder, keeps the links and anchors other
pages use, runs the docs checks and leaves the change uncommitted. Review mode changes nothing and
reports each finding with file, line, rule, quote and fix, plus Vale's findings where Vale runs.
The repository's rules file and its checks come from the Docs rules and Docs checks keys of
the ## Workflow section; the skill's own rules are in plugins/workflow/skills/docs/rules.md.
When: "review the docs", "rewrite this page to our docs rules", "add a management summary to the
overview". Not for a skill's SKILL.md or a research page. The skill:
plugins/workflow/skills/docs/SKILL.md.
feedback¶
Turns a session's friction with the plugins — tool errors, blocked or denied commands, wrong or
missing skill instructions, workarounds — into issues or comments in the marketplace's own
repository, found from where the plugin was installed (WORKFLOW_FEEDBACK_REPO overrides it),
with no content of the project the session worked in. It files through intake, labelled
feedback, after the user's yes. The coordinator offers it at the end of a round and after an
hour of active work; workers record a Friction: line in their last report's note, which
coordinator friction lists.
When: "give feedback", "what went wrong with the plugins", "report this to the marketplace". Not
for a bug in the project itself: that is git-flow:github-issues. The skill:
plugins/workflow/skills/feedback/SKILL.md.
board-sync¶
Refreshes the Session Board — a published page of every Claude Code session with status,
machine, model, repository and coordinator/worker grouping — and applies the tag and archive
requests queued on it. The page cannot read the session list itself; a session with the
claude-code-remote tools writes it, in a Sonnet subagent. A coordinator schedules it every
10 minutes and runs it each round; a coordinator without those tools skips it.
When: "sync the Session Board", "the board is out of date". Example: /workflow:board-sync.
Needs coordinator config --set session_board=<link>. The skill:
plugins/workflow/skills/board-sync/SKILL.md.
coordinator¶
Runs parallel workers: chooses issues, starts one background session per issue in its own
worktree, tracks their reports, merges routine pull requests and asks before the rest, parks
tasks that wait, cleans up. Every worker starts on Haiku, Sonnet or Opus, chosen per issue by
the rule in plugins/workflow/reference/worker-model.md and set explicitly — never on the
account default model, never on Fable. Details in The coordinator below.
When: "work on these issues in parallel", "how are the workers doing?", "clean up after the
merged PRs". Example: /workflow:coordinator B for work stream B. The skill:
plugins/workflow/skills/coordinator/SKILL.md.
cloud-coordinator¶
The coordinator for a claude.ai cloud session, where gh is not logged in and claude --bg
workers would die with the container. It reads GitHub through the GitHub MCP tools and applies
the coordinator's own rules to that data with scripts/cloud_coordinator.py (candidates, the
claim and its race check, merge-kind, the release), so its claims and the machine
coordinators' are one record. Each issue gets a background subagent in its own worktree when it
is small, or a cloud session of its own (create_session) that drives its pull request to green,
either one started with its model set explicitly by the same rule.
Routine pull requests merge on the standing consent, owner paths wait for the owner. In an
environment whose network secret logs gh in, coordinator candidates and merge-kind replace
the script's commands (#191).
When: "run as coordinator", "work on these issues in parallel" in a cloud session. The skill:
plugins/workflow/skills/cloud-coordinator/SKILL.md.
maintenance¶
The coordinator's recurring housekeeping: an environment capability check, dev-doctor in
report-only mode, fast-forwarding a clean main checkout, updating outdated plugins, and a daily
sweep of Aikido's new SAST, secrets and IaC findings into proposed issues (each reported once;
created only after the owner's yes, through intake), closing the owner's host-step
issues whose check passes, and a daily backup of the claude.ai pages of this repository's issues
and milestones into docs/artifacts/ through a pull request; once an issue or milestone is
closed and its backup is on main, the owner confirms each page's deletion on claude.ai. All
but the artifact backup run at the coordinator's start; every task then runs on its cadence,
checked by an hourly tick (CronCreate, session-only), each in a subagent that reports only
problems and changes. Tasks, cadences and preconditions are listed in
plugins/workflow/skills/maintenance/registry.json.
When: a coordinator starts, or "run maintenance", "update the plugins", "is the main checkout up
to date?", "any new Aikido findings?", "back up the artifacts". Example:
/workflow:maintenance plugins. The skill:
plugins/workflow/skills/maintenance/SKILL.md.
The coordinator¶
workflow:coordinator turns one session into a coordinator for up to max_workers (default 3)
background sessions — fewer while the machine's free memory or load says so
(Worker slots) — one per issue, each in a worktree <base_dir>/<repo>-<n>-<slug>.
Coordinators of several repositories can share base_dir: each one only ever reports or cleans
up folders with its own repository's prefix. The settings, the state file and the worktree
directory are under Configuration.
The record is GitHub — agent:claimed and the claim comment, as in the agents' collaboration
guide — so a coordinator on another machine sees what is taken. The state file is a cache of
sessions and reports for this machine.
After a restart. Background workers die with the machine, and their uncommitted work stays in
the worktree. coordinator status keeps last_seen_live and orphaned_since per task in the
state file and counts what only the worktree holds (work_left); coordinator resume <task>
starts a new session in the same worktree and branch, told to continue from what it finds there.
On Linux, coordinator auto-resume does that without asking for every task the restart ended,
up to the free slots (owner decision l1, #273).
Which session is which. The state file records the coordinator's session (role:coordinator,
its session id and folder) and, per task, role:worker and coordinator:<id>. start, resume
and status re-register the calling session, so a /rename or a restart does not lose the
marker; coordinator register does it by hand. The plugin's SessionStart hook reads the same
file after a compaction only.
Session names (#277). Whoever starts a session names it once, <user>:<host>/<repo>#<issue>:
claude:<host> for the Linux host's home session, claude:<host>/claude for a repository's
session, which is its coordinator, claude:<host>/claude#276 for a worker and
claude:<host>/claude#278-2 for a follow-up; cloud/claude in the cloud. start and resume
pass the worker's with -n, the host's units theirs with --name, and register prints the
coordinator's. The user is the account the session runs under, the host the short machine name:
the host name's first label in lower case, or the session_board_machines alias it contains.
Claims and reservations carry the same short name, and one written under a renamed machine's old
name still counts for it. : stands for the @ the owner asked for: SendMessage reads
name@team and refuses a name with @. The plugin retitles no session — its titles never
reached claude --bg workers. candidates and the Session Board read these names and, while
sessions named so still run, the old forms <repo>-issue-<n>, [worker/<repo>/<n>] … and
[coordinator/<repo>] …. Where the claude-code-remote tools exist (sessions started through
claude.ai), the skill also sets the roles as dashboard tags.
What it does on its own. Using the skill is the owner's standing consent to the routine
steps: taking up work as it starts, starting on free slots (by work stream, or by priority:
Dependabot, dev-env, bug fixes, features), cleaning up after merges, parking a task that waits
(coordinator park, undone by resume) or, for a reversible one-line choice, continuing on a
working assumption the owner reviews later (coordinator assume), loading plugin updates, more review rounds, and merging
routine pull requests. coordinator merge-kind <pr> checks the merge criteria — a PR that
touches .github/, CI gates, CLAUDE.md, .claude/, hooks, secrets handling, systemd/ or an
ADR, or is labelled needs:owner-approval, needs the owner's Approve review on GitHub first; a
breaking change or needs:owner-merge stays the owner's to merge. Every open PR carries one merge
label (merge:agent, needs:owner-approval, needs:owner-merge). The full list and its bounds:
autonomy.md (plugins/workflow/skills/coordinator/autonomy.md).
Plugin updates across machines. After a merge that bumps a plugin, coordinator announce
<pr> prints a one-line coordinator-update — merged #<pr>: <plugin> <old> → <new> (affects …)
message, which the coordinator sends to every peer coordinator over Remote Control. It also names
the open PRs that change what the merge changed (overlaps, rebumps) and turns their
auto-merge off: main does not require up-to-date branches, so only those merge main first.
coordinator rebump <task> then merges main into each and raises the version again, in a
script, with no worker turn; a message to a worker that went idle goes through coordinator
wake, which starts a fresh session once the worker's 1-hour prompt cache is cold
(parallel-work.md).
As a fallback that needs no message, coordinator status compares the installed plugins, the
copy the session loaded and the copies a Desktop client shipped (~/.claude/remote/plugins/)
with origin/main and lists each older one under plugins.plugins_outdated, with the update
commands. A running session picks an update up only after /reload-plugins or a restart.
Lean messages. Every cross-session message stays in the receiver's context for the rest of
its session. Workers record their reports with coordinator report and send one line — state,
pull request, link — with the details in a comment; coordinator watch wakes on what the
coordinator acts on — a PR merged or closed, a worker ending or stalling, a merge label or the
owner's approval — and, while a worker is live, not on its own job (CI, review threads) or on
its recorded report, which the worker's message already announces (#791). It names only what
changed; the coordinator then reads the status once (coordinator status --brief --table), and
subscribes to no idle notices.
Surviving compaction. A coordinator runs for hours and relies on Claude Code's auto and idle
compaction; the model cannot compact on its own. coordinator config warns under
compaction.warnings when autoCompactEnabled or idleCompaction is off or
DISABLE_AUTO_COMPACT is set, and shows the auto-compact window in effect (compaction.window;
the sandboxes set 300k tokens, #787). What the owner decides in the conversation — the queue, holds,
waivers, approvals, questions still open — goes into the state file with coordinator decision.
After a compaction the plugin's SessionStart hook (matcher compact) adds a block with the
tasks, those decisions and the next commands to the coordinator's session; it reads only the
state file and prints nothing in any other session. The coordinator offers the owner
/compact <focus> at a natural break. Details: compaction.md (plugins/workflow/skills/coordinator/compaction.md).
A compaction also loses the friction the session had with the plugins: the PreCompact hook
records the findings since the last feedback (session-feedback mark-due), and the first context
after the compaction says, in any session with findings, that workflow:feedback is due (#263).
Away mode. When the owner says they are away, or stays silent for about 5 minutes while an
owner merge or question waits, coordinator away records it in its own state field — never as a
hold decision — and prints the message for the peer coordinators; coordinator owner-todo
builds the owner's to-do page from status. While away, candidates skips issues on a plugin
whose open pull request waits for an owner merge. The owner's next message ends it through the
UserPromptSubmit hook, and coordinator digest lists what happened meanwhile. Details:
autonomy.md (plugins/workflow/skills/coordinator/autonomy.md).
Ownership by machine. An issue labelled needs:linux or needs:windows is only offered to,
and only started by, a coordinator on that operating system; the label replaces any setting.
scripts/tools/create-github-labels.sh creates the labels in the aise-* repositories, and
coordinator labels --create in the current one.
Why our own. Claude Code's Agent Teams share one checkout and give teammates no worktrees,
and the agent-team pattern usually described (a lead plus a shared task file such as TASKS.md
in the project directory) has the same shape. Here the task list is GitHub, every worker has its
own worktree and branch, and every merge outside the routine criteria stays the owner's. The
research is in #40.
Hooks¶
| Event | Hook | Does |
|---|---|---|
SessionStart |
hooks/restore-exec-bit.sh (plugins/workflow/hooks/restore-exec-bit.sh) |
makes bin/coordinator executable again; a Desktop session on a remote host ships the plugins without their file mode (docs/setup/desktop-remote.md) |
SessionStart |
hooks/bin-on-path.sh (plugins/workflow/hooks/bin-on-path.sh) |
puts bin/ on the Bash PATH through CLAUDE_ENV_FILE; Claude Code does not do it on Windows (#265). Writes nothing where bin/ is on PATH already |
SessionStart (startup, resume, fork, clear, compact) |
coordinator session-start |
titles the registered coordinator and its workers; after /clear moves the coordinator marker to the new session id; after a compaction adds the coordinator's tasks and the owner's recorded decisions |
SessionStart (compact) |
session-feedback session-start |
adds one line when mark-due recorded findings with the plugins before the compaction: workflow:feedback is due, nothing is posted before the owner's yes. Once per compaction with findings, in any session; session-feedback mark clears it (#263) |
SessionEnd |
coordinator session-end |
notes that the registered coordinator was cleared, so the next SessionStart can take the marker over |
PreCompact (manual and auto) |
session-feedback mark-due |
records, for the session's transcript, that a compaction happens, where the transcript ends and the findings since the last feedback (due), in the feedback state file. Exits 0 and never stops the compaction (#263) |
PreToolUse (Bash, Monitor, a GitHub MCP server's merge_pull_request) |
hooks/guard-merge.sh (plugins/workflow/hooks/guard-merge.sh) → coordinator guard-merge |
refuses (exit 2) a merge in a session the state files mark as a worker: gh pr merge (not --disable-auto), a REST PUT …/pulls/<n>/merge, the GraphQL merge mutations, the MCP merge tool. The refusal names the coordinator. In the coordinator's own session it refuses the same merges and names coordinator merge <pr>, the path auto mode and the allow rules cover (#1024); a script file the command runs (bash loop.sh, ./loop.sh, source) is read too. Every other session is left to the permission rules; Python starts only when the call mentions a merge, runs a shell or sources a file, or runs a file by its path (#478, #1024) |
UserPromptSubmit |
coordinator back --quiet |
ends away mode on the owner's first message in the registered coordinator's session, and tells it to show the digest; messages from workers and peers, task notifications and the coordinator's own scheduled prompts do not count (#287) |
The coordinator hooks read only the state file and print nothing in a session it does not
know.
Commands on the PATH¶
coordinator, which Claude Code puts on the Bash PATH from the plugin's bin/ — on Windows
hooks/bin-on-path.sh does it. It is a bash launcher: by full path it runs as
bash <plugin>/bin/coordinator, never through python. It needs gh
(logged in), git, claude and Python 3, and prints JSON; coordinator --help lists the
commands. The skill runs it; run it yourself for config, status and statusline.
coordinator host-step file <spec.json> turns a step only the owner can do on a host into one
host-step issue assigned to the owner — or adds to the open one of the same step — and
coordinator host-step check closes it once its check passes on that host (#360). The spec and
the rules: plugins/workflow/reference/host-steps.md.
Configuration¶
A repository. Enable the plugin in the repository's .claude/settings.json
(docs/setup/marketplace.md) and add a ## Workflow section to
its CLAUDE.md. The keys, what each is for and an example are in
reference/workflow-section.md (plugins/workflow/reference/workflow-section.md) — the one copy; the skills read
the same file. What else a repository does to run the AI SDLC:
docs/sdlc/repository-setup.md.
The coordinator, per machine. It needs no ## Workflow keys: its settings are per machine,
because the worktree folder and the commit identity differ between the owner's workstation and the Linux host.
coordinator config --set 'base_dir=D:\worktrees' 'git_identity=Claude Agent <agent@example.org>'
coordinator labels # which agent labels (agent:claimed, agent:parked, needs:*) are missing
git_identity may stay unset where the host provides one (the sources are in step 1 of
plugins/workflow/skills/coordinator/setup.md); with none, the coordinator runs and holds its worker
starts.
max_workers (default 3) is the most workers at once; min_free_mem_gb is the
memory a new worker leaves free (unset: a quarter of the machine's total, at most 4 GB, so a
sandbox VM gets slots too), and a 5-minute load above 0.8 per CPU also holds new workers back
(Worker slots).
question_board and session_board take the links of the two boards; boards_owner=operator
leaves both to the operator desk (ops:operator of the ops plugin), and the coordinators then
neither schedule the Session Board sync nor refresh the Question Board (coordinator config
shows it under boards); session_board_machines
("thinkpad=laptop,srv=host") gives the short machine name for a host name that contains the
pattern — on the Session Board, in session names and in claims — for a machine not yet renamed
or a sandbox VM, whose host name is not the machine's. The settings live in ~/.config/workflow-coordinator/config.json ($XDG_CONFIG_HOME is
honoured; WORKFLOW_COORDINATOR_CONFIG points elsewhere). The state of the tasks lives in
<base_dir>/.coordinator/<owner>-<repo>.json. Every coordinator status and every poll of
coordinator watch also writes <owner>-<repo>.status.json beside it: a small snapshot of the
tasks, their pull requests, the open owner questions and the machine's load, readable by this
user only. The coordinator-mod plugin draws it. Its owner_desk
object is what the Owner Desk (#359) shows: for_you — decide (the Question Board rows
coordinator question-board saved, workers blocked on the owner, open questions), merge (the
owner's merges in the order to do them, each with order and why), host (open host-step
issues assigned to the owner), clean (the cleanup command, leftovers) — and work — running,
queued (the candidates order) and parked (parked tasks and hold decisions). The host
steps, the queue and origin's branches are fetched at most every 10 minutes and a merge kind once
per PR head, title, body and labels, cached in <owner>-<repo>.desk-cache.json; a failed fetch
keeps the last list with its as_of, age_min and error. coordinator owner-todo lists the
same items. Its peers object (#403) is what the other coordinators of the repository work on,
for the mods of a local session, which do not draw in a Remote Control view of a headless
coordinator: groups, one per host and session, each with its claims (issue, title, branch,
claimed since, and the open PR of the branch with its checks, review and merge_state) and
its reservations (issue, since, order), read from the claim and reservation comments of
writers on open agent:claimed and agent:reserved issues. This coordinator's own claims and
this machine's reservations are left out. It is read at most every 5 minutes with the same gh
login, never written, and cached in the desk cache with the same as_of, age_min and error.
One shared worktree directory. The dev-env plugin's WorktreeCreate and WorktreeRemove
hooks send the worktrees Claude Code creates itself to the same base_dir
(dev-env). A git worktree add run by hand or by a skill follows
the same layout: git worktree add <base_dir>/<repo>-<branch> -b <branch> origin/main, a / in
the branch becoming -.
The status line. It is a user setting a plugin cannot ship; to show
coordinator · 2/3 workers or worker · #65, point it at coordinator statusline in
~/.claude/settings.json:
"statusLine": {
"type": "command",
"command": "bash -c 'd=$(ls -d ~/.claude/plugins/cache/<owner>/workflow/*/ 2>/dev/null | sort -V | tail -1); [ -n \"$d\" ] || exit 0; exec \"${d}bin/coordinator\" statusline'"
}
On a host that loads the marketplace from a directory, use that checkout's
plugins/workflow/bin/coordinator instead. It prints nothing for other sessions; an existing
status line command can append its output.
Installation¶
claude plugin install workflow@<owner> # also installs git-flow and superpowers
The marketplace and how updates reach a machine: docs/setup/marketplace.md.
Running the evals¶
workflow has dependencies, so its evals run through scripts/tools/eval-plugin.sh, never a plain
claude plugin eval: docs/authoring/evals.md.
Limits and gotchas¶
- Not yet: notifications across machines (Slack, Remote Control) —
notify_channelexists as a setting and is off; coordinators on two machines talking to each other is #51. - The coordinator needs
ghandclaude --bgworkers on a machine that stays up; a claude.ai cloud session has neither (#191). - Each skill's own gotchas: coordinator (
plugins/workflow/skills/coordinator/SKILL.md), work-on (plugins/workflow/skills/work-on/SKILL.md), intake (plugins/workflow/skills/intake/SKILL.md), owner-feedback (plugins/workflow/skills/owner-feedback/SKILL.md), feedback (plugins/workflow/skills/feedback/SKILL.md), maintenance (plugins/workflow/skills/maintenance/SKILL.md), ready (plugins/workflow/skills/ready/SKILL.md).