| name | flow-cleanup |
| description | Clean up stale worktree references and merged branches |
Codex harness adaptations
Generated from a Claude Code command. Where the procedure references these Claude-only surfaces, adapt as follows:
- Codex worktrees: use the bundled resolver and plain git. Worktrees live at
$FLOW_WORKTREE_BASE/<repo>-<branch> when configured, otherwise as a visible sibling ../<repo>-<branch>; enter with cd and clean up with git worktree remove. Never use Claude's hidden worktree directory.
- Helper scripts referenced as
scripts/<name> are bundled under scripts/ in this skill directory (byte-identical copies from the claude-power-pack checkout); some expect sibling repo resources, so prefer a full checkout when one is available.
Flow: Cleanup - Prune Stale Worktrees and Branches
Clean up stale worktree references and merged branches
Full procedure
Read reference.md in this skill directory for the complete, authoritative procedure before acting on this skill.