/roost:slice-handofffrom roost
Closes out a finished slice of an epic by sorting leftover work (tickets, bugs, unautomated scenarios) into the next slice or release, running all tests, updating tracker comments, and checking repo health.
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.
A slice rarely ends with nothing left over. Exploratory testing finds bugs that wait, code review produces "ticket for later" items, a later slice reopens an earlier slice's test, and the plan changes under the next slice's kickoff. This skill deals with all of it once, in one place, before the next slice starts.
It changes the tracker and reads GitHub. It changes no code. The one step that runs tests goes to the session in the repo that owns them.
First, load the team config with roost-config.
Read everything first; decide nothing yet. Don't trust that the slice recorded everything: look wider than its links, and compare the sources.
The slice's own record: DONE's "slice done" comment, with its Left open table, and its run-slice checkpoint: comments. Every checkpoint row should have an outcome you can check: a commit or PR for "fix now", a ticket key for "ticket for later", a reason for "skip". Every ticket in the Left open table should exist, be open, and have EPIC as its parent.
Open tickets, found two ways (the tracker adapter's common searches):
Include anything the epic's Carry-over comment already lists as "next slice" for DONE that wasn't done.
Compare them. Each difference is a possible record gap:
A concern that only ever lived in a session's report can't be found from the tracker. Step 2 asks the user about anything run-slice's state file mentions that has no tracker record.
Every test in the epic: each story's tests in EPIC so far ("A story's tests"), and each one's state: marked automated ("Mark a test automated"), closed by a manual run ("Manual tests"), or neither, leaving out retired tests (the tests adapter's "Retire a test").
The stacks: every PR for EPIC in each repo, its head, its base, and each check's newest completed result (gh pr view <n> -R <repo.github> --json statusCheckRollup; ignore runs a newer push cancelled).
Plan changes: commits on the plan branch since the slice started, and the decisions recorded in <team.state_dir>/DONE.md if it exists.
NEXT's kickoff comments, one per repo, titled with each repo's kickoff_title.
Leave the tests' shared setup out of the open tickets (the tests adapter's "Shared setup", where it's a ticket: it's part of the epic's tests), and close any whose tests are all done. Leave manual tests with When: after release out too ("Manual tests" in the tests adapter): they wait for the release, like person-owned tasks; name them in the report. Leave person-owned tasks (labelled tracker.person_task_label) out of all of this: they aren't carried-over work. If one's "When" is "after" DONE, put a reminder for its owner in the report's 🙋 Your turn block.
Put each open item in exactly one place, judging it the triage-ticket way (is it real, who does it hurt, how badly):
| Place | When |
|---|---|
| Next slice | NEXT changes the same code or screen, or NEXT can't be right without it. It's cheapest to fix while that code is open again. |
| Before release | It must be fixed before the epic ships (security, data loss, a 5xx from a public endpoint, a broken main flow) and NEXT doesn't touch it. |
| Later | Everything else. It keeps the epic as its parent but doesn't hold up the release. |
Show the user one table, with a recommendation and a one-line reason for each item:
| # | Item | From | Recommendation | Why |
|---|---|---|---|---|
| 1 | PROJ-2819 Get started names the wrong key | 2789 exploratory | Next slice | 2790 changes the key list Get started reads |
| 2 | PROJ-2830 Billing page spacing | From this slice? (found by the wide search) | Later, if from this slice; otherwise leave it alone | Created during the slice under the epic, but not linked to it |
This is the only stop in the skill. Wait for the user's decisions, then carry them out without asking again. A candidate the user confirms as this slice's gets its "relates to" link to DONE, and its parent and Components if missing; one they don't confirm is left untouched.
EPIC has one Carry-over comment (create it the first time), next to its Release order comment. It lists every carried item still open: item, slice it came from, place, and status. Update that comment in place by its ID (see "Edit a comment in place" in the tracker adapter), and read it back afterwards. Rewrite it as one current table each time; don't append history. A finished item leaves the table.
Link each "next slice" item to NEXT as "relates to".
A later slice can break an earlier slice's test. Prove each one still passes, against the local stack running the newest branch of every repo's stack:
repos[].e2e.run_tags with "@PROJ-A or @PROJ-B or …", tagged for the stack's real flag state, stack.flag_state). Each reports pass or fail per scenario.manual run: comment stays done. One of DONE's that isn't, and isn't When: after release, is carried over: sort it in step 2 like any open item, with what its description says to run.verify-slice-tests step 8; the checkpoint record names it): leave it as it is. It has no automation on purpose.The kickoffs were written before DONE ran. Read each one, keep a copy, and rewrite it in place (same edit as step 3) so someone could follow it cold today:
vcs.pr_title; each dependent repo's contract; e2e tags from the stack's real flag state (stack.flag_state); migrations applied to the local database the roost config names ("the stack.database.local in your roost config", never a database's name or address, since another machine may build the next slice); stack.how; screenshots on the story's ticket. Leave the stack rules out of a kickoff for a repo with local_stack: false. A kickoff for a repo with apply_gate says to post apply_gate.plan in the PR and never to apply without the user's approval ("The apply gate" in roost-config).Rewrite each comment as one whole, current text. Don't add "Update:" notes to the end.
main, and every PR's newest completed checks pass. Retitle any PR whose title doesn't follow vcs.pr_title.stacked-prs).stacked-prs, One deploy per stack). Fix NEXT's kickoff branch line if it says otherwise.deploy.migrations_run_on_deploy is false, every migration on the stacks is on the epic's deploy ticket: its Migrations to apply comment and the staging and production pre-deploy sub-tasks (stacked-prs). Compare the stack's migration files with the list, and add whatever is missing.local_stack: false): the local stack runs the newest branch of each repo that uses it, its migrations are applied to stack.database.local, and every stack.services URL answers, so NEXT's kickoff starts clean.apply_gate that DONE touched has DONE's plan applied and recorded, and a fresh plan shows no changes. Drift, or a plan nobody applied, is an open item for step 2.tracker.statuses.ready_for_release (without stacking, only once its PRs have merged; "Without stacking" in roost-config).Anything the user must do goes first, in a 🙋 Your turn block, one line per action; leave it out when there's nothing. Then one line: "PROJ-2789 handed off: 3 items into PROJ-2790, 1 before release, 4 later; all 9 epic tests pass." Then:
| Area | Result |
|---|---|
| Carry-over | links to the Carry-over comment, with counts per place |
| Epic tests | pass/fail per test, and anything reopened |
| NEXT kickoffs | what changed in each |
| Stacks | PRs and checks, rebased or not, local stack state |
If DONE was the last slice, end with: "Last slice done. Next: release-qa for EPIC."
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./build-epicBuild an epic from its tech lead prompt to release QA, through the user's repo sessions (one per repo in the team's roost config). If the stories have no kickoff comments yet, it first sends the epic's tech lead prompt to the lead repo's session, brings the plan to the user for approval, and has the kickoffs posted. Then it runs run-slice for each story in order, slice-handoff between stories, the epic's "before release" work, review-epic, close-out-epic and release-qa. Starts without asking and keeps going on its own; stops only for decisions that are the user's (the plan, each slice's checkpoints, each handoff's sorting table) and for real blockers. Answers "where are we on the epic?" from the tracker, GitHub and its state file. Use when the user says "build PROJ-X", "build the epic", "develop PROJ-X", "start building PROJ-X", "do all the slices", "take this epic to release", or the older "run the epic" and "run the rest of PROJ-X". Run it from a separate orchestrator session, not from inside any of the repos./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.Other plugins' skills for the same job