What problem does it solve?
This Skill automates the manual, error-prone post-merge steps required to finalize a feature workflow by verifying PR merge status, backfilling synthesis metadata, resolving blocking review states, transitioning the workflow to completed, and cleaning up repository worktrees and branches.
Core Features & Use Cases
- Merge Verification: Verifies that all PRs in a workflow are merged using the gh CLI or MCP pull_request_read and aborts if any PR is unmerged.
- Orchestrated Cleanup: Calls the MCP cleanup action to backfill prUrl and mergedBranches, force-resolve review statuses, transition the workflow to completed, and emit the workflow.cleanup event.
- Repository Hygiene: Removes associated git worktrees, prunes worktrees, prunes remote-tracking branches, and supports a dry-run preview mode for safe execution.
- Use Case: Use when a stacked or multi-PR feature has fully merged and you want a single, auditable operation to finalize state and remove local artifacts.
Quick Start
Ask the cleanup skill to verify all PRs for feature <featureId>, mark the workflow completed, backfill merge metadata, and remove associated worktrees and branches.