browser-automation
Browser automation for rendered UI exploration, validation, screenshots,
A worktree gives parallel work its own folder and branch while the main worktree stays clean on the integration branch. Each project gets one sibling root, `<project>.worktrees/`, with one directory per branch named by its slug (`/` → `-`, so `feature/auth` → `feature-auth`).
Claude Code
$ npx -y skills add alexei-led/cc-thingz --skill using-git-worktrees --agent claude-code
Codex
$ npx skills add alexei-led/cc-thingz --skill using-git-worktrees -a codex -y
Cursor
$ npx skills add alexei-led/cc-thingz --skill using-git-worktrees -a cursor -y
Gemini CLI
$ npx skills add alexei-led/cc-thingz --skill using-git-worktrees -a gemini-cli -y
GitHub Copilot
$ npx skills add alexei-led/cc-thingz --skill using-git-worktrees -a github-copilot -y
OpenCode
$ npx skills add alexei-led/cc-thingz --skill using-git-worktrees -a opencode -y
Windsurf
$ npx skills add alexei-led/cc-thingz --skill using-git-worktrees -a windsurf -y
description: Creates and removes isolated git worktrees for parallel development. Use when starting feature work needing isolation, working on multiple branches simultaneously, or removing one specific worktree and its branch after its PR merges. NOT for simple branch switching, sweeping multiple stale worktrees or merged branches at once (use cleanup-git), or git hook/config setup (use configuring-git-hygiene). name: using-git-worktrees
A worktree gives parallel work its own folder and branch while the main worktree stays clean on the integration branch. Each project gets one sibling root, `<project>.worktrees/`, with one directory per branch named by its slug (`/` → `-`, so `feature/auth` → `feature-auth`). Remove the worktree and branch after the PR merges.
A plain branch switch with no parallel work needs no worktree: check `git status --short`, then `git switch <branch>`. Trivial solo one-liners may also stay in the main worktree.
Check `git status --short` and `git worktree list` first. Leave uncommitted changes where they are and never stash them silently; pass `--allow-dirty` only when the user has authorized isolating new work while keeping them.
scripts/setup-worktree.sh <branch> [--base <ref>] [--allow-dirty] [--setup] [--test]
The script runs `git worktree add` from the main worktree root. It checks out an existing local or `origin` branch instead of recreating it, and refuses an existing path, a branch checked out in another worktree, or a dirty tree without `--allow-dirty`. It reports base divergence from local refs without fetching.
scripts/cleanup-worktree.sh [branch]
A cleanup request authorizes removal of a clean, verified merged worktree and its branch without another confirmation. The script fetches first and verifies Git ancestry, a merged PR bound to the repository/base/head, or an equivalent squash patch without `gh`. It preserves new commits and uncommitted files, including ignored files. For an exception, show the exact target, full tip OID, commits and files at risk, then ask once. After consent, recheck the tip and files and run `--force <branch>` yourself; never require the user to copy and run the command. Main, protected, and locked worktrees remain guarded even with force. For bulk or stale cleanup and command-local hook consent, use cleanup-git. Leave `git pull` out of cleanup; update the integration worktree separately only when clean and requested.
For cases the scripts refuse or don't cover, read [workflow.md](references/workflow.md).
WORKTREE READY | WORKTREE REMOVED | BLOCKED Branch: <branch> Path: <project>.worktrees/<slug> Next: cd <path>, or the script's refusal reason
Report cleanup as done only after verifying the worktree and branch are gone. Name the merge proof or the explicitly approved exception.
Portable skills, agents, hooks, and Pi-native extensions for Claude Code, Codex CLI, GitHub Copilot, Cursor, Grok, and Pi. Gemini is retired.
Browser automation for rendered UI exploration, validation, screenshots,
Create normal git commits with logical grouping. Use when committing,
Write, rewrite, or update project docs from implementation facts - README
Fix code defects with a reproducible feedback loop, root-cause diagnosis,
Improve test design, speed, and coverage with behavior-focused tests,
Prepare, publish, or repair a software release and write its release notes. Use for cutting a versioned release or editing…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.