Finishing a Development Branch
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
Park a finished worktree — commit real work, delete temporary/generated leftovers, then switch to the throwaway branch named after the workspace directory and reset it to origin/master.
$ npx skills add haumacher/phoneblock --skill cleanup-workspace -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install haumacher/phoneblock cleanup-workspace --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/haumacher/phoneblock.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/cleanup-workspace .claude/skills/cleanup-workspace && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "cleanup-workspace" agent skill from https://github.com/haumacher/phoneblock/tree/master/.claude/skills/cleanup-workspace into .claude/skills/cleanup-workspace/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cleanup-workspace", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/haumacher/phoneblock/tree/master/.claude/skills/cleanup-workspaceType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add haumacher/phoneblock --skill cleanup-workspace -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install haumacher/phoneblock cleanup-workspace --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/haumacher/phoneblock.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/cleanup-workspace .agents/skills/cleanup-workspace && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cleanup-workspace" agent skill from https://github.com/haumacher/phoneblock/tree/master/.claude/skills/cleanup-workspace into .agents/skills/cleanup-workspace/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cleanup-workspace", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add haumacher/phoneblock --skill cleanup-workspace -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install haumacher/phoneblock cleanup-workspace --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/haumacher/phoneblock.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/cleanup-workspace .cursor/skills/cleanup-workspace && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cleanup-workspace" agent skill from https://github.com/haumacher/phoneblock/tree/master/.claude/skills/cleanup-workspace into .cursor/skills/cleanup-workspace/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cleanup-workspace", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/haumacher/phoneblock.git --path .claude/skills/cleanup-workspace--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add haumacher/phoneblock --skill cleanup-workspace -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install haumacher/phoneblock cleanup-workspace --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/haumacher/phoneblock.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/cleanup-workspace .gemini/skills/cleanup-workspace && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cleanup-workspace" agent skill from https://github.com/haumacher/phoneblock/tree/master/.claude/skills/cleanup-workspace into .gemini/skills/cleanup-workspace/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cleanup-workspace", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install haumacher/phoneblock cleanup-workspaceInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add haumacher/phoneblock --skill cleanup-workspace -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/haumacher/phoneblock.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/cleanup-workspace .github/skills/cleanup-workspace && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cleanup-workspace" agent skill from https://github.com/haumacher/phoneblock/tree/master/.claude/skills/cleanup-workspace into .github/skills/cleanup-workspace/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cleanup-workspace", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add haumacher/phoneblock --skill cleanup-workspace -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install haumacher/phoneblock cleanup-workspace --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/haumacher/phoneblock.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/cleanup-workspace .opencode/skills/cleanup-workspace && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cleanup-workspace" agent skill from https://github.com/haumacher/phoneblock/tree/master/.claude/skills/cleanup-workspace into .opencode/skills/cleanup-workspace/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cleanup-workspace", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cleanup-workspacePark a finished worktree — commit real work, delete temporary/generated leftovers, then switch to the throwaway branch named after the workspace directory and reset it to origin/master.
Cleanup Workspace is an agent skill from haumacher/phoneblock. Park a finished worktree — commit real work, delete temporary/generated leftovers, then switch to the throwaway branch named after the workspace directory and reset it to origin/master. Use when the user says "clean up this workspace", "park this worktree", "reset back to master", or is done with a feature branch and wants the directory ready for the next task.
Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Git worktrees. The repository describes itself as: Der Spam-Filter für Dein Telefon. The licence is GPL-3.0.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 9287ad7. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
BashReadGlobGrepFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Cleanup Workspace loads about 1.1k tokens when it runs. Until then it costs about 95 tokens; SKILL.md has 567 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Bash, Read, Glob, GrepAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from haumacher/phoneblock at commit 9287ad7, republished under its GPL-3.0 licence (© haumacher). 567 words, ~1,143 tokens.
.claude/skills/cleanup-workspace/SKILL.md (or your agent's skills folder).This repository is used through several sibling git worktrees
(/home/haui/devel/phoneblock, pb-1, pb-2, pb-3, pb-fix-sip, …). Each
pb-N worktree has a same-named throwaway branch (pb-1, pb-2, …) that tracks
origin/master and holds no work of its own. Between tasks a worktree is parked:
its feature branch is left behind (never deleted — the work lives on in origin
and in the branch ref), and the directory returns to its throwaway branch at the
current origin/master.
origin is haumacher/phoneblock. Always name origin explicitly.
git status
git stash list
git worktree listThen, for the currently checked-out branch, find work that exists only locally:
git log --oneline @{upstream}..HEAD # unpushed commits (no upstream ⇒ compare to origin/master)Report what you found before changing anything.
Split the dirty/untracked entries into two piles. Read or diff each file you are unsure about — never classify by filename alone.
Commit — anything that is source, config, docs, tests, or release notes; in
short, work a reviewer would want. Group related files into commits with proper
messages, following the repository's commit style (git log for reference) and
ending each message with the Co-Authored-By: Claude trailer required by the
environment.
Delete — build output and tool leftovers that were never meant to be tracked, e.g.:
phoneblock-dongle/firmware/sdkconfig.stale-* — ESP-IDF's backup of a
regenerated sdkconfig (sdkconfig itself is git-ignored, the .stale-*
copy is not, so it surfaces as untracked). Confirm it is just a generated
snapshot (diff it against sdkconfig) and remove it.build/, target/, scratch scripts, log files, *.orig/*.rej merge
debris, editor backups.Two rules:
If a file should be ignored permanently rather than deleted every time,
propose the .gitignore addition — that change is itself a commit.
Stashes: leave them alone and tell the user they exist. Do not drop or pop a stash without being asked.
git status --porcelain # must print nothingDo not continue while output remains.
It is the basename of the worktree directory — basename "$(git rev-parse --show-toplevel)"
(for /home/haui/devel/pb-1 that is pb-1). Do not invent a name and do not
reuse another worktree's.
Two checks before switching:
git worktree list — if that branch is checked out in a different
worktree, the checkout will fail. Stop and ask the user which branch to park
on.git log --oneline origin/master..<branch> — if the throwaway branch has
commits of its own, git reset --hard would discard them. Stop, show them,
and ask. (Normally this is empty; that's what makes the branch throwaway.)The main worktree (/home/haui/devel/phoneblock) parks on master itself, not
on a pb-N branch.
git checkout <branch>
git fetch origin --prune --tags
git reset --hard origin/master--hard is intended here: the point is to discard local divergence of the
throwaway branch. It is safe only because steps 3 and 4 proved there is
nothing to lose.
Confirm the final state (git status, git log --oneline -3) and tell the user:
If commits were created on the feature branch and are not yet pushed, say so explicitly — the branch ref keeps them locally, but they exist nowhere else. Ask whether to push; do not push on your own initiative.
© haumacher, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/cleanup-workspace of haumacher/phoneblock.
Open the folder on GitHubat commit 9287ad7
Cleanup Workspace next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Cleanup Workspace this skillhaumacher/phoneblock | 367 | — | ~1.1k | Automated safety check: Notes | GPL-3.0 | |
| Finishing a Development Branchobra/superpowers | 297k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Migrate Core Code to Submodulestinyhumansai/openhuman | 42k | — | ~2.6k | Automated safety check: Pass | GPL-3.0 | |
| Finishing A Development Branchfarm-fe/farm | 5.6k | 34 repos | ~1.8k | Automated safety check: Pass | MIT | |
| Git Worktree Cleanuplobehub/lobehub | 83k | — | ~2.8k | Automated safety check: Pass | Custom licence | |
| Keep Codex Fastvibeforge1111/keep-codex-fast | 1.6k | — | ~3.1k | Automated safety check: Pass | MIT |
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
tinyhumansai/openhuman
Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.
farm-fe/farm
A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…
lobehub/lobehub
Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.
vibeforge1111/keep-codex-fast
A skill your agent uses when Codex feels slow or bloated, when local sessions/logs/worktrees/config have grown over time, or when a user wants safe maintenance for Codex Desktop/CLI state.
jamiepine/voicebox
Sorts a backlog of open pull requests into must-merge, candidate, superseded and deferred, writes a triage doc and works the merge loop before a release.
haumacher/phoneblock
Decode and analyze an ESP32 dongle crash report (uploaded .coredump).
haumacher/phoneblock
Start work on a GitHub issue — verify a clean workspace, read the issue, branch off the correct base (the branch where the fix will ship) as issue-<nr-<short-description, then plan the implementation.
haumacher/phoneblock
Tune the PhoneBlock diagnostics log analysis — inspect aggregated log signatures, find noise / signature fragmentation / PII leaks, and propose, audit and promote scrub rules (and detection rules)…
Categories
Park a finished worktree — commit real work, delete temporary/generated leftovers, then switch to the throwaway branch named after the workspace directory and reset it to origin/master. Cleanup Workspace is an agent skill from haumacher/phoneblock. Park a finished worktree — commit real work, delete temporary/generated leftovers, then switch to the throwaway branch named after the workspace directory and reset it to origin/master.
Cleanup Workspace fits situations like: the user says clean up this workspace; park this worktree; reset back to master; is done with a feature branch and wants the directory ready for the next task.
Run `npx skills add haumacher/phoneblock --skill cleanup-workspace -a claude-code`. Or copy the skill folder (.claude/skills/cleanup-workspace in haumacher/phoneblock) into .claude/skills/cleanup-workspace in your project. Claude Code loads it when a task matches its description.
Run `npx skills add haumacher/phoneblock --skill cleanup-workspace -a codex`. Or copy the skill folder (.claude/skills/cleanup-workspace in haumacher/phoneblock) into .agents/skills/cleanup-workspace in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add haumacher/phoneblock --skill cleanup-workspace -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cleanup-workspace, .gemini/skills/cleanup-workspace, .github/skills/cleanup-workspace and .opencode/skills/cleanup-workspace in your project.
Going by SKILL.md and its folder, Cleanup Workspace needs the command-line tools its instructions call (git). Its frontmatter pre-approves these tools: Bash, Read, Glob, Grep.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Cleanup Workspace is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Cleanup Workspace: Finishing a Development Branch (obra/superpowers, 297k stars), Migrate Core Code to Submodules (tinyhumansai/openhuman, 42k stars), Finishing A Development Branch (farm-fe/farm, 5.6k stars) and Git Worktree Cleanup (lobehub/lobehub, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
haumacher (a GitHub user) maintains it in haumacher/phoneblock, which has 367 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 3, 2026.
Source: haumacher/phoneblock on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.