/ccxp-skills:cleanup-branch [branch-name | prune [--dry-run]]from ccxp-skills
Use when the user explicitly asks to clean up local branches after merged PRs — a specific just-merged branch, a full PR-merge sweep, or a bulk prune of branches whose upstream is gone
Ships in ccxp-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
<skills-root>= this skill's "Base directory" minus its last component; substitute the literal path (skill-conventions§9).
Post-merge branch hygiene, in two safety tiers. All logic is deterministic and
lives in scripts/cleanup-branch.sh — this skill runs it and relays the
report; it does not re-derive the per-branch decisions.
$ARGUMENTS selects the mode:
/cleanup-branch — PR-verified sweep of all local branches (§1)/cleanup-branch docs/foo — PR-verified sweep scoped to one branch (§1)/cleanup-branch prune — delete branches whose upstream is gone, no PR check (§2)/cleanup-branch prune --dry-run — list what §2 would delete, don't delete (§2)bash <skills-root>/cleanup-branch/scripts/cleanup-branch.sh $ARGUMENTS
Relay its stdout as the report — a tab-separated BRANCH / STATUS / PR table
for §1, a count for §2. Render it as a table; the safety gate (merged-PR
check for §1, [gone] upstream state for §2) is already applied and reported
inside the script, so there is no per-branch judgment call left to make.
git branch -d first, and only force-deletes with -D when
GitHub already confirmed the PR merged and the branch's tree still
matches main's (git diff --quiet main "$b") — handles rebase/squash-
merged branches, where local SHAs never match main even though the
content landed. If the branch's tree differs from main (most likely
commits added after the PR merged), §1 reports SKIPPED: diverges from main since PR merge — needs human review instead of force-deleting, so
that work is never silently discarded (T20261006-579135).git checkout main failed (uncommitted changes on the current
branch). Stop and report the error. Do not stash or discard to work
around it — that's the caller's uncommitted work to decide on, not this
skill's.origin remote, gh auth failure,
etc.) — report the stderr output verbatim and stop.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub synx-data-labs/ccxp-skills --plugin ccxp-skills57 skills in this plugin
/1password-env-setupUse when the user explicitly asks to bootstrap or refresh a repo's 1Password-backed .env — installs the refresh-env helper, generates a hash-checking .envrc, and materializes .env from .env.tpl via op inject/address-prUse when the user explicitly asks to address, verify, or merge a specific open PR (CI, Claude Code review, test plan, tiered merge)/agent-pairingUse when the user explicitly asks to toggle the ccxp-agent main-session agent on/off for this Claude Code profile or check its status/agents-sdkBuild AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge./autopilotUse when the user explicitly asks to turn the unattended background /drive loop on or off, pause or resume it, or check its status — "/autopilot on", "/autopilot off", "/autopilot pause", "/autopilot resume", "/autopilot status", "/autopilot config"/bottomUse when the user explicitly asks to move a task (or several) to the back of the dev/TODO priority queue