← ClaudeAtlas

integrate-branchlisted

Take an external/untrusted branch (built outside the standard workflow — by a junior dev with GSD, a contractor, a quick spike, etc.) and audit it against the full set of project standards plus cross-cutting impact on other features, then route to one of three execution paths: salvage (fix the existing code in place via /work-issue), rebuild (extract specs to an issue and rebuild from scratch via /extract-prototype-review + /work-issue), or discard. Every successful invocation ends in a PR that meets every CLAUDE.md standard, OR a documented decision to discard with rationale. Use when the user says "/integrate-branch <branch>", "audit and integrate this branch", "is this branch safe to merge", or has a branch from outside the standard workflow that needs to be brought up to standards.
unifylabs-dev/unify-kit · ★ 0 · Code & Development · score 63
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