next-slice
Advance to the next PRD slice after a merge: clean up the finished worktree and branch, fast-forward main, pick the next unblocked sub-issue of the PRD, set…
Skill by mia-cx
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mia-cx-next-slice
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/next-slice
What's inside
- Skill name
next-slice- Description
- Advance to the next PRD slice after a merge: clean up the finished worktree and branch, fast-forward main, pick the next unblocked sub-issue of the PRD, set up a fresh worktree, and hand off to address-issue. Use when the user says "next slice", "move on", "advance", or wants to start the next issue after a merge.
- License
- CC0-1.0
- Instructions
- 71 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Next slice
Transition from a just-merged slice to the next one. This skill handles the in-between (cleanup, branch hygiene, slice selection, fresh worktree), then hands the chosen issue to the `address-issue` skill, which owns planning, implementation, and the PR.
## Workflow
### 1. Verify the current slice is done
- Identify the repo root (the main worktree, not a `.worktrees/` child), the current worktree, and its feature branch.
- Confirm the PR for the current slice is merged. If not, stop and report: the slice isn't done (`review-relay` / `pr-merge` come first).
### 2. Clean up the finished slice
From the **repo root** (not from inside the worktree being removed):
```bash
cd <repo-root>
git worktree remove .worktrees/<current-name>
git branch -d <current-branch>
git pull --ff-only origin main
```
A `-d` warning about the branch not being merged to HEAD is expected; it merged to `origin/main` via the PR. Use `-D` only if `-d` fails and the PR is confirmed merged. Confirm the repo root ends up clean and tracking `origin/main`.
### 3. Pick the next slice
The parent PRD's sub-issues are the source of truth. A slice is eligible when it is **open** and **unblocked** (every issue in its "Blocked by" section is closed):
```bash
# Sub-issues of the PRD with their state
gh api graphql -f owner=OWNER -f repo=REPO -F number=PRD_NUMBER -f query='
query($owner:String!,$repo:String!,$number:Int!){
repository(owner:$owner,name:$repo){issue(number:$number){
subIssues(first:50){nodes{number title state}}}}}'
# Check a candidate's blockers via its body's "Blocked by" section
gh issue view <number> --json body,state
```
Pick the lowest-numbered eligible slice; prefer AFK slices when an HITL slice would otherwise block unattended progress. Without a PRD, fall back to `.plans/*.md` order or open implementation issues. Skip meta/tracking issues (PRDs, discussions, umbrella trackers).
If no eligible slice remains: report all slices complete, or name the HITL/blocked issues that need the user.
### 4. Set up the new worktree
Derive the worktree and branch names from the issue title:
```bash
cd <repo-root>
git worktree add .worktrees/<short-name> -b feat/<short-name> main
```
### 5. Report and hand off
```
Cleaned up: .worktrees/<old> (branch <old-branch> deleted)
Main: <commit> on origin/main
Next slice: #<N> <title> (sub-issue of PRD #<P>)
Worktree: .worktrees/<new> on branch <new-branch>
```
Then run the `address-issue` skill on issue `#<N>` in the new worktree; it owns the plan file, TODO-per-commit implementation, and the PR. Begin immediately if the user asked to advance and implement; otherwise wait for their go-ahead.
## Rules
- Always operate from the repo root when removing worktrees or pulling main.
- Never force-delete branches without confirming the PR is merged.
- Each slice gets its own worktree under `.worktrees/`; never implement directly on `main`.
- If the next eligible slice is HITL, surface the decision it needs instead of starting it unattended.From mia-cx/skills, CC0-1.0.
More from mia-cx/skills
- 0.624score
babysit
mia-cx
Use when the user asks to babysit a pull request: watch it for review comments from bots and human reviewers, fix what is real, resolve the threads, and keep…
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
critical-thinking
mia-cx
Use when the user gives a sparse or underspecified request, a multi-step or agentic task, an unfamiliar problem, or examples to learn from, and whenever you…
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
prd-to-issues
mia-cx
Use when the user asks to break down a PRD into issues or create implementation tickets.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
gh-comment
mia-cx
Use when posting, editing, or replying to anything on GitHub under the user's account: pull request and issue comments, inline comments on a diff line…
SkillAFreshness: A★ 5Claude Code +9 - 0.618score
codex-computer-use
mia-cx
Use when the user asks to test a flow, verify UI behavior, inspect a running app, or capture screenshots.
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
codex-review
mia-cx
Get an independent code review from Codex (gpt-6.1-sol) through T3's delegate_task — uncommitted changes, a branch diff, a commit, or a specific implementation.
SkillAFreshness: A★ 5Claude Code +9 - 0.598score
logo-design
mia-cx
Use when the user asks to design a logo, mark, or app icon for a project, or to draw a construction grid for a logo.
SkillAFreshness: A★ 5Claude Code +9 - 0.590score
address-issue
mia-cx
Use when the user asks to address or implement an issue.
SkillAFreshness: A★ 5Claude Code +9 - 0.583score
implement
mia-cx
Implement a piece of work based on a spec or set of tickets.
SkillAFreshness: A★ 5Claude Code +9 - 0.579score
how-to-review
mia-cx
Use stage 1 every time you write, edit, or audit code.
SkillBFreshness: B★ 5Claude Code +9 - 0.579score
momentum
mia-cx
Shape output for ADHD readers: lower the cost of starting and keep work visibly moving with a small first action, numbered steps, visible wins.
SkillBFreshness: B★ 5Claude Code +9 - 0.579score
git-commit-and-push
mia-cx
Splits uncommitted changes into a small set of logical, single-concern git commits, then executes the commits and pushes to remote.
SkillBFreshness: B★ 5Claude Code +9
Signals
- Stars
- 5
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 20, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- CC0-1.0
- Repository
- github.com/mia-cx/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from mia-cx
- 0.624score
babysit
mia-cx
Use when the user asks to babysit a pull request: watch it for review comments from bots and human reviewers, fix what is real, resolve the threads, and keep…
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
prd-to-issues
mia-cx
Use when the user asks to break down a PRD into issues or create implementation tickets.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
critical-thinking
mia-cx
Use when the user gives a sparse or underspecified request, a multi-step or agentic task, an unfamiliar problem, or examples to learn from, and whenever you…
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
gh-comment
mia-cx
Use when posting, editing, or replying to anything on GitHub under the user's account: pull request and issue comments, inline comments on a diff line…
SkillAFreshness: A★ 5Claude Code +9 - 0.618score
codex-computer-use
mia-cx
Use when the user asks to test a flow, verify UI behavior, inspect a running app, or capture screenshots.
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
codex-review
mia-cx
Get an independent code review from Codex (gpt-6.1-sol) through T3's delegate_task — uncommitted changes, a branch diff, a commit, or a specific implementation.
SkillAFreshness: A★ 5Claude Code +9
Cite this page
next-slice skill. Agent Mart. https://agentmart.dev/skills/mia-cx-next-slice (last updated 2026-10-24)