browser-automation
Browser automation for rendered UI exploration, validation, screenshots,
Remove merged local branches and stale git worktrees. Use when the user
$ npx -y skills add alexei-led/cc-thingz --skill cleanup-git --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cleanup-gitContext preview
The summary Claude sees to decide when to auto-load this skill.
Remove merged local branches and stale git worktrees. Use when the user
description: Remove merged local branches and stale git worktrees. Use when the user says "cleanup branches", "prune worktrees", "tidy git", "remove merged branches", "delete merged branches", "gone branches", or wants to clean local git state. NOT for creating commits, creating worktrees, or configuring git hooks. name: cleanup-git
Clean local git branches and worktrees after work has merged. Dry-run first. Destructive commands require user approval.
Prefer a repo-local `scripts/cleanup-git.sh` when the target repo ships one. If it does not, use the bundled skill script from this skill's `scripts/` directory. Do not improvise destructive cleanup commands outside the script workflow.
Run from anywhere inside a repository:
scripts/cleanup-git.sh scripts/cleanup-git.sh --apply scripts/cleanup-git.sh --apply --force scripts/cleanup-git.sh --base <ref>
The script fetches/prunes remotes, then chooses the comparison branch:
1. Remote default branch from `refs/remotes/<remote>/HEAD`. 2. Local `main`, `master`, `trunk`, `develop`, or `dev`. 3. Remote `<remote>/{main,master,trunk,develop,dev}`.
Use `--base <ref>` only for unusual repositories.
When `gh` is available, PR `MERGED` state is the source of truth for squash/rebase merges. Do not miss those just because `git merge-base --is-ancestor` fails after history rewrite. If no PR is found, or `gh` is unavailable, fall back to the git-based checks.
Hard guards:
Soft guard:
1. Run `scripts/cleanup-git.sh` and show the preview. 2. Read reasons literally: `remove ... (PR merged)`, `remove ... (upstream gone)`, `KEEP ... (dirty)`, `KEEP ... (PR merged, N ahead — use --force)`. 3. Surface every `KEEP` line as a human decision. 4. Ask before running `scripts/cleanup-git.sh --apply`. 5. Use `--force` only when the user confirms ahead commits are throwaway.
GIT CLEANUP =========== Status: PREVIEW | APPLIED | BLOCKED Base: <ref> Remove: - <branch/worktree> — <reason> Keep: - <branch/worktree> — <reason and user decision needed> Verification: - <command> — pass/fail/not run
Portable skills, agents, hooks, and Pi-native extensions for Claude Code, Codex CLI, GitHub Copilot, Cursor, Grok, and Pi. Gemini is retired.
Repo: alexei-led/cc-thingz
Browser automation for rendered UI exploration, validation, screenshots,
Support-only Playwright runtime/reference for browser-automation — dev-server
Create normal git commits with logical grouping. Use when committing,
Create or update human-facing docs, agent-facing instructions, architecture
Fix code defects with a reproducible feedback loop, root-cause diagnosis,
Improve test design, speed, and coverage with behavior-focused tests,