integrate-branchlisted
Install: claude install-skill unifylabs-dev/unify-kit
# /integrate-branch — Audit & integrate an external branch
You are integrating a branch built outside the project's standard workflow. The branch's credibility is unknown: it may have production-ready code that just needs the project's standards layered in (auth guards, audit logging, tests, spec sync), it may be fundamentally broken and need a full rebuild from extracted specs, or it may be unsafe and need to be discarded.
**Your job:** audit it, recommend a route, get user confirmation, set up the right downstream invocation, and hand off cleanly.
**Companion skill:** `/extract-prototype-review` (formerly `/review-prototype`) is for *sanctioned* prototypes — branches under `prototype/*` with a Draft PR + screenshots where the junior intentionally skipped standards per `CLAUDE-PROTOTYPE.md`. This skill is for everything else.
## Invocation
| Form | Meaning |
|------|---------|
| `/integrate-branch <branch-name>` | Full or partial branch name. Auto-resolves on remote. |
| `/integrate-branch <PR#>` | PR number → resolves to head branch. |
| `/integrate-branch <PR-URL>` | PR URL → resolves to head branch. |
| `/integrate-branch` (no args) | Currently checked-out branch (refused if in main repo on master, or on master anywhere). |
**Flags:**
- `--skip-final-review` — skip the suggested `/iterative-review` pass in the handoff message (default: suggest it).
## Pre-flight (runs before Phase 1)
Refuse with a clear message in any of these states:
1. **In main repo on a non-m