flow-cleanup · git:20260913.9ee9b51 · 2026-09-13 · sha256 cb27bd14cb7e7c77
flow-cleanup git:20260913.9ee9b51A
Immutable. This exact content is served forever at /api/v1/blob/cb27bd14cb7e7c77.
--- name: "flow-cleanup" description: "Clean up stale worktree references and merged branches" --- <!-- GENERATED by claude-power-pack - scripts/codex-skill-sync.py; edit .claude/commands/flow/cleanup.md instead --> ## Codex harness adaptations Generated from a Claude Code command. Where the procedure references these Claude-only surfaces, adapt as follows: - Native worktrees (`EnterWorktree`/`ExitWorktree` tool calls, `.claude/worktrees/` paths): use plain git instead, with the worktree as a VISIBLE SIBLING of the repo - `git worktree add ../<repo>-<branch> -b <branch>` (or `$FLOW_WORKTREE_BASE/<repo>-<branch>` when that env var is set), work inside it, then `git worktree remove ../<repo>-<branch>` when done. - 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. - Canonical guidance linked as `docs/<path>` is bundled under `docs/` in this skill directory (byte-identical copies from the claude-power-pack checkout). The source-relative `../../../docs/...` link in the command body resolves outside an installed skill, so the generated copy points at the bundled path instead. docs/ remains the only writable source. # 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.