From viban
Approves reviewed viban issues: merges branches via GitHub PR or git, cleans up worktrees, marks done, restores git state. Use after IDE review with /approve <ID>.
How this skill is triggered — by the user, by Claude, or both
Slash command
/viban:approveThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Approve a review-status issue after IDE review. Merges the branch, removes the worktree, and marks the card done.
Approve a review-status issue after IDE review. Merges the branch, removes the worktree, and marks the card done.
CLI only (no direct viban.json access)
Input: $ARGUMENTS (required: issue ID)
viban get $ID
Confirm the issue is in review status. If not, tell the user and exit.
BRANCH="issue-$ID"
WT_DIR="$PWD/.viban/worktrees/$ID"
Detached HEAD from /viban:review — branch is intact, just switch back:
git checkout main
PR_NUM=$(gh pr list --head "$BRANCH" --json number --jq '.[0].number' 2>/dev/null)
If PR found:
gh pr merge "$PR_NUM" --squash --delete-branch
git pull origin main
git merge "$BRANCH" --no-ff -m "Merge issue-$ID: <title>"
git branch -d "$BRANCH"
If merge conflicts: help user resolve.
Nothing to merge. Proceed to Step 4.
[ -d "$WT_DIR" ] && git worktree remove "$WT_DIR" --force 2>/dev/null
viban done $ID
Check for stash:
STASH=$(git stash list | grep "viban-review: before #$ID" | head -1 | cut -d: -f1)
[ -n "$STASH" ] && git stash pop "$STASH"
Check for temp commit:
TEMP=$(git log --oneline -1 | grep "viban-review: temp commit before #$ID")
[ -n "$TEMP" ] && git reset HEAD~1
Report: "Issue #$ID approved and merged."
| Command | Description |
|---|---|
viban get <id> | View issue details |
viban done <id> | Mark issue as done |
npx claudepluginhub happy-nut/claude-plugin-viban --plugin vibanIntegrates a user-approved vibe branch into the main flow via local merge, pull request, or branch cleanup. Requires prior review sign-off and explicit user selection of action.
Merges reviewed PRs when triggered by /pr-merge or merge commands. Handles squash/rebase, worktrees, integration branches, and auto-merge for CI gating.
Runs a 4-step PR close sequence: reviewer-summary comment, squash-merge with PR title as commit subject, delete remote branch, close linked tracker issues. Use when merging or closing a PR.