Finishing a Development Branch

ReviewAudited by ClawScan on May 10, 2026.

Overview

The skill is mostly aligned with finishing a development branch, but its cleanup instructions are inconsistent and could lead to unintended worktree removal.

Use this skill only in repositories where you are comfortable letting the agent run git workflow commands. Before approving merge, PR, or discard actions, check the base branch, feature branch, remote, GitHub account, and worktree path; be especially careful with the current ambiguity around whether the PR option should remove the worktree.

Findings (2)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

A user could choose to create a pull request and still have their local worktree removed because the instructions conflict.

Why it was flagged

The same PR workflow both includes and excludes worktree cleanup. Since cleanup runs a command that removes a worktree path, the agent may remove a local checkout unexpectedly after the user only chose to push and create a PR.

Skill content
Option 2: "Then: Cleanup worktree (Step 5)" ... "For Options 1, 2, 4" ... "git worktree remove <worktree-path>" ... but later: "Fix: Only cleanup for Options 1 and 4"
Recommendation

Clarify whether Option 2 keeps or removes the worktree, scope cleanup to the original feature worktree, and require explicit user confirmation before any worktree removal.

What this means

If the wrong remote, branch, or GitHub account is active, the agent could publish code or open a PR in the wrong place.

Why it was flagged

The PR option uses the user’s authenticated Git remote and GitHub CLI context to push code and create a pull request. This is purpose-aligned, but it relies on the user’s account authority.

Skill content
git push -u origin <feature-branch> ... gh pr create --title "<title>"
Recommendation

Before choosing the PR option, verify the repository remote, branch name, and authenticated GitHub account.