Cursor Composer Task Delegate
Chachamaru127/claude-code-harness
Hands one implementation task to Cursor Composer in an isolated git worktree, then reviews its diff and cherry-picks the result into the main branch.
Remove a subagent's .claude/worktrees/agent-<id dir after its PR merges.
$ npx skills add vchelaru/FlatRedBall --skill worktree-cleanup -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install vchelaru/FlatRedBall worktree-cleanup --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/vchelaru/FlatRedBall.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/worktree-cleanup .claude/skills/worktree-cleanup && 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 "worktree-cleanup" agent skill from https://github.com/vchelaru/FlatRedBall/tree/NetStandard/.claude/skills/worktree-cleanup into .claude/skills/worktree-cleanup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "worktree-cleanup", 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/vchelaru/FlatRedBall/tree/NetStandard/.claude/skills/worktree-cleanupType 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 vchelaru/FlatRedBall --skill worktree-cleanup -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install vchelaru/FlatRedBall worktree-cleanup --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vchelaru/FlatRedBall.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/worktree-cleanup .agents/skills/worktree-cleanup && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "worktree-cleanup" agent skill from https://github.com/vchelaru/FlatRedBall/tree/NetStandard/.claude/skills/worktree-cleanup into .agents/skills/worktree-cleanup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "worktree-cleanup", 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 vchelaru/FlatRedBall --skill worktree-cleanup -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install vchelaru/FlatRedBall worktree-cleanup --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vchelaru/FlatRedBall.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/worktree-cleanup .cursor/skills/worktree-cleanup && 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 "worktree-cleanup" agent skill from https://github.com/vchelaru/FlatRedBall/tree/NetStandard/.claude/skills/worktree-cleanup into .cursor/skills/worktree-cleanup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "worktree-cleanup", 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/vchelaru/FlatRedBall.git --path .claude/skills/worktree-cleanup--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 vchelaru/FlatRedBall --skill worktree-cleanup -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install vchelaru/FlatRedBall worktree-cleanup --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vchelaru/FlatRedBall.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/worktree-cleanup .gemini/skills/worktree-cleanup && 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 "worktree-cleanup" agent skill from https://github.com/vchelaru/FlatRedBall/tree/NetStandard/.claude/skills/worktree-cleanup into .gemini/skills/worktree-cleanup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "worktree-cleanup", 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 vchelaru/FlatRedBall worktree-cleanupInstalls 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 vchelaru/FlatRedBall --skill worktree-cleanup -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/vchelaru/FlatRedBall.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/worktree-cleanup .github/skills/worktree-cleanup && 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 "worktree-cleanup" agent skill from https://github.com/vchelaru/FlatRedBall/tree/NetStandard/.claude/skills/worktree-cleanup into .github/skills/worktree-cleanup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "worktree-cleanup", 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 vchelaru/FlatRedBall --skill worktree-cleanup -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install vchelaru/FlatRedBall worktree-cleanup --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vchelaru/FlatRedBall.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/worktree-cleanup .opencode/skills/worktree-cleanup && 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 "worktree-cleanup" agent skill from https://github.com/vchelaru/FlatRedBall/tree/NetStandard/.claude/skills/worktree-cleanup into .opencode/skills/worktree-cleanup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "worktree-cleanup", 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.
worktree-cleanupRemove a subagent's .claude/worktrees/agent-<id dir after its PR merges.
Worktree Cleanup is an agent skill from vchelaru/FlatRedBall. Remove a subagent's .claude/worktrees/agent-<id dir after its PR merges. Triggers: git worktree remove, "Permission denied"/"Device or resource busy" on worktree cleanup, Windows file locks on bin/obj.
Its SKILL.md is about 810 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. It works with Git, Bash and .NET. The repository describes itself as: Cross-platform 2D game engine focused on ultimate productivity built in .NET. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit fa654ab. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitdotnetFrom 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.
Worktree Cleanup loads about 810 tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 444 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 found no risky patterns in SKILL.md.
Automated 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 vchelaru/FlatRedBall at commit fa654ab, republished under its MIT licence (© vchelaru). 444 words, ~810 tokens.
.claude/skills/worktree-cleanup/SKILL.md (or your agent's skills folder).The Agent tool's isolation: "worktree" auto-creates .claude/worktrees/agent-<id>/ and auto-removes it if the agent made no changes. Once an agent did change files and its PR has merged, the worktree is orphaned and needs manual cleanup — git worktree remove almost always fails with "Permission denied" on Windows because MSBuild's persistent build server and file watchers hold handles on bin//obj/ for a while after dotnet build/dotnet test exits. Don't bother expecting the plain command to succeed first try.
Landmine — the orchestrator's own Bash cwd is the most common lock. If you ever cd'd the Bash tool into a worktree path (or ran commands there) during the session, that shell holds a directory handle for as long as it stays parked there — rm -rf and even Remove-Item fail against it. Before any removal attempt, run pwd and confirm the Bash cwd is the primary checkout, not the worktree. cding away in a prior tool call doesn't guarantee it stuck — verify, don't assume.
Sequence, run from the primary checkout:
pwd); cd out first if it is.git worktree remove --force .claude/worktrees/agent-<id> — clears git's bookkeeping even when the underlying rm fails. Check git worktree list to confirm the entry is gone.dotnet build-server shutdown (releases MSBuild/Roslyn server handles), then retry deletion.Remove-Item -Recurse -Force "<path>" succeeds where bash rm -rf reports "Device or resource busy" — this is a real, repeatable difference in this environment, not a fluke. Prefer it as the fallback rather than retrying rm.git worktree prune -v, then verify: git worktree list (entry absent) and list the .claude/worktrees/ dir (no leftover folder).If PowerShell's Remove-Item still fails: check for a Visual Studio instance (or its ServiceHub.*.exe/indexer) with that worktree open, or stray dotnet/MSBuild/VBCSCompiler.exe processes beyond what build-server shutdown released — kill or ask the user before force-killing anything unidentified.
Don't trust the agent's self-report of what it created as a workaround. An agent that hit a build dependency needing a specific sibling-directory name may describe its fix as a "symlink/junction," but actually run git worktree add at that path (a second real worktree, invisible in git worktree list under the original name). If git worktree remove on the original leaves a same-named directory elsewhere that a plain rmdir/Remove-Item refuses with "not empty" rather than deleting instantly (reparse points delete instantly regardless of contents), it's a real directory, not a link — check (Get-Item $path).Attributes for ReparsePoint before assuming, and if absent, treat it as an orphaned worktree copy: safe to delete outright once its PR has merged.
© vchelaru, MIT. 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/worktree-cleanup of vchelaru/FlatRedBall.
Open the folder on GitHubat commit fa654ab
Worktree Cleanup 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 |
|---|---|---|---|---|---|---|
| Worktree Cleanup this skillvchelaru/FlatRedBall | 578 | — | ~810 | Automated safety check: Pass | MIT | |
| Cursor Composer Task DelegateChachamaru127/claude-code-harness | 3.2k | — | ~4.4k | Automated safety check: Notes | MIT | |
| Knowledge Shell Process And WorktreeechoVic/blade-code | 181 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Build Px4 macOSPX4/PX4-Autopilot | 13k | — | ~1.1k | Automated safety check: Pass | BSD-3-Clause | |
| Git Worktree IsolationjnMetaCode/superpowers-zh | 8.3k | 1 repos | ~982 | Automated safety check: Pass | MIT | |
| WorktreeAgentsMesh/AgentsMesh | 2.4k | — | ~553 | Automated safety check: Notes | Custom licence |
Chachamaru127/claude-code-harness
Hands one implementation task to Cursor Composer in an isolated git worktree, then reviews its diff and cherry-picks the result into the main branch.
echoVic/blade-code
Covers Bash 前后台执行、stdin/终止、输出有界化、进程树与持久租约、Workspace 写沙箱,以及托管 Git worktree 的隔离和交付。
PX4/PX4-Autopilot
Build PX4 board firmware on macOS in the px4-dev Docker container, including git worktrees, and stage commit-labeled artifacts without flashing hardware.
jnMetaCode/superpowers-zh
Sets up an isolated workspace before feature work or plan execution, preferring native worktree tools and falling back to git worktree, with instructions in Chinese.
AgentsMesh/AgentsMesh
Creates or reuses an isolated AgentsMesh Git worktree from a verified base branch, preserves existing changes, and optionally starts the worktree-scoped development environment.
k8zdev/k8z
Automate git worktree creation and copy private files (not tracked in git) to new workdirs.
vchelaru/FlatRedBall
Testing GlueControl's embedded runtime (CommandReceiver, GlueControlManager) against a real running game process.
vchelaru/FlatRedBall
Bootstrapping GlueUnitTests that touch GlueState.Self/GlueCommands.Self/ProjectManager.
vchelaru/FlatRedBall
A skill your agent uses when adding, modifying, or reasoning about Gluj/Glux file format versions, the GluxVersions enum, FileVersion checks, or anything that gates behavior on the version of a…
vchelaru/FlatRedBall
A skill your agent uses when working on Glue's Gum code generation — adding/removing/version-gating generated properties on Gum standard runtime types (NineSlice, Text, Container, Sprite, etc.), or…
vchelaru/FlatRedBall
FRB1 (engine + Glue) release runbook — gh CLI sequence for Engine.yml/glue.yml, version scheme, release notes.
vchelaru/FlatRedBall
Drafts FRB1 release notes from commits/PRs since the last release.
Categories
Remove a subagent's .claude/worktrees/agent-<id dir after its PR merges. Worktree Cleanup is an agent skill from vchelaru/FlatRedBall.claude/worktrees/agent-<id dir after its PR merges.
Worktree Cleanup fits situations like: tasks that involve Git worktrees.
Run `npx skills add vchelaru/FlatRedBall --skill worktree-cleanup -a claude-code`. Or copy the skill folder (.claude/skills/worktree-cleanup in vchelaru/FlatRedBall) into .claude/skills/worktree-cleanup in your project. Claude Code loads it when a task matches its description.
Run `npx skills add vchelaru/FlatRedBall --skill worktree-cleanup -a codex`. Or copy the skill folder (.claude/skills/worktree-cleanup in vchelaru/FlatRedBall) into .agents/skills/worktree-cleanup 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 vchelaru/FlatRedBall --skill worktree-cleanup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/worktree-cleanup, .gemini/skills/worktree-cleanup, .github/skills/worktree-cleanup and .opencode/skills/worktree-cleanup in your project.
Going by SKILL.md and its folder, Worktree Cleanup needs the command-line tools its instructions call (git and dotnet).
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 no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Worktree Cleanup is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 810 tokens (SKILL.md is roughly 3.2k 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 Worktree Cleanup: Cursor Composer Task Delegate (Chachamaru127/claude-code-harness, 3.2k stars), Knowledge Shell Process And Worktree (echoVic/blade-code, 181 stars), Build Px4 macOS (PX4/PX4-Autopilot, 13k stars) and Git Worktree Isolation (jnMetaCode/superpowers-zh, 8.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
vchelaru (a GitHub user) maintains it in vchelaru/FlatRedBall, which has 578 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 10, 2026.
Source: vchelaru/FlatRedBall on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.