/roost:build-epicfrom roost
Orchestrates an entire epic from tech lead prompt through release QA by coordinating per-repo sessions. Runs slices in order, handles handoffs, and tracks progress. Activates on commands like 'build PROJ-X' or 'take this epic to release'.
Ships in roost. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You coordinate a whole epic the way run-slice coordinates one story. You never edit, build or run tests in any repo yourself. One session per repo in the config's repos does the work, through SendMessage, exactly as run-slice describes. The lead session is the session of planning.lead_repo.
First, load the team config with roost-config.
Being asked to build the epic is the go-ahead. Don't ask for another one, at the start or between slices. Tell the user what you started and why, and keep going.
Use run-slice's Status for an epic: one row per story in story order, then the step table for the story in progress. Add one line under it: the counts from the epic's Carry-over comment ("before release: 2, later: 5"). Read-only; send nothing.
Before anything else, new build or resumed: work out which roost you run ("Which roost is running" in roost-config), then do run-slice's step 0: find the sessions and check every one runs the same roost as you, stopping if they don't. Record all of them in EPIC.md and say yours in your first report. Planning (step 2) and the before-release work (step 4) send work without going through run-slice, so this check can't wait for it.
tracker.statuses.ready_for_release or later is done; otherwise use run-slice's resume check for it.<team.state_dir>/EPIC.md if it exists: the story order, the current story, the session names, and the IDs of the epic's Release order and Carry-over comments. Check it against the tracker and GitHub the way run-slice checks its state file.kickoff_title), and whether a plan already exists: the plan path and stack in your state file, or a plan commit on a gh stack named for the epic in the lead repo.
Tell the user in one short table where the epic is and where you're starting, then start.
Only when the stories have no kickoff comments yet. The plan is written by the lead session, acting as the epic's tech lead, from the prompt shape-epic attached to the epic.
<EPIC> Tech Lead Prompt.md (see "Read an attachment" in the tracker adapter). If there isn't one, that's a blocker: tell the user to run shape-epic's handoff phase, and stop.file:line, or a query and its result; send any that doesn't back to the lead session before you show the plan, and never fill the gap from memory. Treat a claim inferred from names or dates (a migration's date as the age of the data, a code comment as the author's intent) as unchecked until it's checked against the data or the user. If the plan says no but it adds a migration, a backfill or a flag, say so and recommend yes. Recommend an answer for each open question. If the user asks for changes, send them to the lead session and show the updated plan; repeat until they approve.For each story, in order, from the first that isn't done:
run-slice for it. Its checkpoints stay the user's: the combined review list (step 3) and the exploratory bugs (step 5). Collect each checkpoint's decisions in one message; don't split them into several questions.run-slice runs slice-handoff for it. Show the handoff's sorting table; it's the only stop between slices.slice-handoff finish its remaining steps (the Carry-over comment, the epic's tests, the next story's kickoffs, the stacks). Then start the next story straight away, from those updated kickoffs. Don't ask whether to.Between slices, carry the same sessions on. Say at the top of each kickoff message which story it's for, since the sessions have just worked on another one.
Before QA, if deploy.migrations_run_on_deploy is false, check the epic's deploy ticket lists every migration on the stacks, with pre-deploy sub-tasks for staging and production (stacked-prs). Add whatever is missing.
After the last slice, slice-handoff runs with no next slice, so everything it sorts is "before release" or "later".
Manual tests with When: after release don't hold up the release call; list them in the final report with the user as their owner.
Person-owned tasks (labelled tracker.person_task_label) are never sent to a session. Those whose "When" is before release go in a 🙋 Your turn block for their owner, and the release call waits for them; those after release are listed in the final report.
Send each "before release" item to the session that owns its code, by kind:
bug-bash in that session.tracker.statuses.ready_for_release), with the usual report request.automate-tests, for the test they're in, in the session of the repo that holds that test's automation (the e2e repo's, or the repo with the eval cases). Never for a manual test.run-slice step 2 says.cross-repo-handoff, then send them in repos order. Send a dependent repo's part only when the repo it depends on reports done and the stack is restarted. Writing the parts isn't the fix; each has to be built.Wait for every report.
Refresh the epic's Carry-over comment, as slice-handoff step 3 does, so fixed items leave the table.
Run slice-handoff's step 4 once more, so every test in the epic passes against the newest branches.
Run review-epic for EPIC: a whole-epic /code-review at high effort in every repo (and /security-review in the lead repo), with its own checkpoint. Fixes it asks for go back to step 1, and the tickets it files for later are placed in step 5.
Run close-out-epic for EPIC. Every open ticket gets a place: fixed before release (back to step 1), moved to the epic's follow-up epic, or made standalone, each with a link back and a description that stands on its own. The epic ends with no open tickets except what's being fixed and the deploy ticket.
Refresh the rollout runbook, if the epic has one. Ask the session of deploy.runbooks.repo to run write-runbook again on the epic's deploy ticket, against the finished stack: check every command against the code, fill in the literal values, add the migrations and anything else the build changed, and take off the draft mark. The runbook and the deploy ticket's sub-tasks must still match. The new commit goes on top of that repo's stack and into the Release order comment.
Ask the e2e repo's session to run release-qa for EPIC; when the config has no e2e repo, ask the lead repo's session, and release-qa does its no-browser QA. It gives the release call, which also needs every manual test done on a passing run (except after-release ones), every apply: recorded with no drift, and every "before release" item done.
New release-blocking bugs from QA go back to step 1, with the user's decision first. Anything QA finds that can wait goes through close-out-epic again. If a fix changes a migration or a rollout command, refresh the runbook again (step 6).
Shipping (merging the stacks in Release order and deploying) isn't part of this skill. A repo with apply_gate is different: its plans are applied slice by slice through run-slice's apply checkpoint, so before the release call, check every one of its PRs has its apply: comment and a fresh plan shows no changes ("The apply gate" in roost-config). Whenever you tell the user a stack is ready to merge, name every PR the merge takes and check each belongs to that deploy (stacked-prs, One deploy per stack); if the repos release with a release PR (deploy.release_tool, for example Release Please), for the one that follows, run git fetch origin, then check git diff --name-only origin/main origin/<release branch> shows only the release files. End with the release call, the Release order comment, and the close-out comment saying what was deferred and where it went.
<team.state_dir>/EPIC.md holds the config the run uses (its path and team.name; on a resume, stop if a different one loaded, as "Orchestrators record their config" in roost-config says), the roost the run uses (the line from "Which roost is running" in roost-config, checked against every session as run-slice step 0 does), the story order, the story in progress, the sessions, the Release order and Carry-over comment IDs, and each story's outcome in one line (PRs, tests, what was carried over). Each story's own detail stays in <team.state_dir>/STORY.md, which run-slice keeps. Update it after every slice and every decision.
Use run-slice's progress updates: its three formats and its update prompt, word for word, with one log for the epic ({LOG} is EPIC, so <team.state_dir>/EPIC-updates.md). Each update names the story it's about: {STORY} is the story in progress, in the update's heading and its log line.
Lead with where the epic is ("PROJ-2306: slices 1 to 3 done, slice 4 frontend running"), then a 🙋 Your turn block if there's anything to do, then the epic Status table.
At the end: the release call, every PR in Release order with its checks, the tests and their status, the person-owned tasks and manual tests (When: after release) still to do after release (with their owners), and what was deferred, taken from the epic's Close-out comment (close-out-epic clears the Carry-over comment).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub beakpoint-insights/roost --plugin roost23 skills in this plugin
/automate-testsAutomate the tests linked to a story or slice. Read each test's scenarios, find which already have automation, write the missing automation at the right layer, run it, and only when every scenario passes mark the test automated. Use when a developer agent is asked to "automate the tests for PROJ-X", "figure out why these tests aren't automated", or to finish the e2e work for a slice./automate-xray-testsThe old name of automate-tests, kept so it still works. Use automate-tests./bug-bashFix a list of bugs from the tracker in this repo, one branch each, test-first, with each fix placed by its parent (on the epic's GitHub stack for a bug in an unreleased epic, or its own PR from main for a standalone bug), moving each ticket through In Progress and Ready for Release. When a fix needs another repo, hand it off with pasteable comments instead of touching it. Use when the user gives a list of bugs to fix, says "bug bash", or pastes a "Big Bug Fix Bash" prompt./close-out-epicClose out an epic before it's released, so that its open-ticket count means something. Lists every open ticket under the epic and proposes, for each, fix before release, move to the epic's follow-up epic, or make standalone, then waits for the user's decisions. Moves the deferred tickets out of the epic with a link back, rewrites each one's description so it still makes sense outside the epic, posts one closing comment on the epic saying what was deferred and where it went, and checks the epic has no open tickets left. Run it again after the release ships, to confirm production runs it, check each release workflow and its tracker sync, close any ticket left waiting to ship with the version it shipped in, rewrite the epic's Release order and Close-out comments as shipped, and offer to draft the epic's release notes. Use when the user says "close out PROJ-X", "get PROJ-X ready to release", "move the leftovers out of the epic", "what's still open in this epic", "wrap up the epic" or "the epic shipped", and from build-epic right before release QA./create-xray-testFile Cucumber scenarios you already have into Jira as Xray Test issues, or update the scenarios on an existing Xray Test, through the browser. Only for teams whose tests are Xray (tests.kind xray); with any other kind, tests are filed as that kind's tests adapter says, not with this skill. Sets the parent epic, Components and the link to the story, and checks what was saved. Doesn't write or check scenarios; use live-verified-bdd to write them for a feature that already runs, or shape-epic for a new epic./cross-repo-handoffWrite a prompt that another repo's agent can run cold, for work this repo needs but must not do itself (for example the API change a UI fix depends on, or the UI change an API fix needs). Posts it as a comment on the ticket or returns it for pasting. Use when the user asks for "a prompt for the API agent", "a prompt for the UI agent", "what should I share back", or when a fix needs changes in the other repo.Other plugins' skills for the same job