approve

approve is a skill for Claude Code from happy-nut/claude-plugin-viban. It costs 16 tokens per session (573 once invoked), scanned A, original, MIT.

A command that completes a reviewed software issue by merging its branch, removing its temporary worktree, and marking the issue done. A worktree is a separate local folder containing another branch of the code.

In plain words
What is it for?
Use it after reviewing an issue to validate its status, merge a pull request or branch, clean up the worktree, and close the issue.
Why use it?
It turns a completed code review into a consistent cleanup and tracking process.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the viban plugin — 7 skills, 7 commands, 1 hook shipped together

Good fit Use it after reviewing an issue to validate its status, merge a pull request or branch, clean up the worktree, and close the issue.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/happy-nut/claude-plugin-viban/approve
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add happy-nut/claude-plugin-viban --skill approve
Clone the repo
git clone --depth 1 https://github.com/happy-nut/claude-plugin-viban

Made for: Claude Code.

Or install viban, the plugin that ships this one along with the rest of its 7 skills, 7 commands, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for approve

README.md
[![agentmods](https://agentmods.dev/badge/skills/happy-nut/claude-plugin-viban/approve/github.svg)](https://agentmods.dev/skills/happy-nut/claude-plugin-viban/approve)
Your own site
<a href="https://agentmods.dev/skills/happy-nut/claude-plugin-viban/approve"><img src="https://agentmods.dev/badge/skills/happy-nut/claude-plugin-viban/approve/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for approve

Your own site · 80×15
<a href="https://agentmods.dev/skills/happy-nut/claude-plugin-viban/approve"><img src="https://agentmods.dev/badge/skills/happy-nut/claude-plugin-viban/approve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 573 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00573
Opus 5 $0.00008 $0.00287
Sonnet 5 $0.00003 $0.00115
Haiku 4.5 $0.00002 $0.00057

Measured 9d ago against content hash 6c1d491144a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

approve scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/approve/SKILL.md · 118 lines

What it actually says

/approve

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)


Output Rules

  • Do NOT output any preamble.
  • Start executing Step 1 immediately.

Step 1: Validate

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"

Step 2: Return to Main

Detached HEAD from /viban:review — branch is intact, just switch back:

git checkout main

Step 3: Merge

If PR exists

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

If no PR (branch only)

git merge "$BRANCH" --no-ff -m "Merge issue-$ID: <title>"
git branch -d "$BRANCH"

If merge conflicts: help user resolve.

If no branch (main-direct work)

Nothing to merge. Proceed to Step 4.


Step 4: Cleanup Worktree

[ -d "$WT_DIR" ] && git worktree remove "$WT_DIR" --force 2>/dev/null

Step 5: Complete

viban done $ID

Step 6: Restore User State

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."

CLI Reference

Command Description
viban get <id> View issue details
viban done <id> Mark issue as done
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 118 lines · 16 tokens per session scan A 6c1d491144a7

Subscribe to this mod's changes

approve is a skill published in the GitHub repository happy-nut/claude-plugin-viban (5 stars, last pushed 6mo ago), licensed MIT. It adds 16 tokens to every session and 573 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.