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.
Start a task in a Git worktree under .worktrees/ from freshly fetched origin/main, implement and validate it, then use commit-push-pr to open or update a PR.
$ npx skills add converge-ai-labs/agent-foundation --skill worktree-pr -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install converge-ai-labs/agent-foundation worktree-pr --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/converge-ai-labs/agent-foundation.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/worktree-pr .claude/skills/worktree-pr && 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-pr" agent skill from https://github.com/converge-ai-labs/agent-foundation/tree/main/.agents/skills/worktree-pr into .claude/skills/worktree-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "worktree-pr", 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/converge-ai-labs/agent-foundation/tree/main/.agents/skills/worktree-prType 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 converge-ai-labs/agent-foundation --skill worktree-pr -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install converge-ai-labs/agent-foundation worktree-pr --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/converge-ai-labs/agent-foundation.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/worktree-pr .agents/skills/worktree-pr && 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-pr" agent skill from https://github.com/converge-ai-labs/agent-foundation/tree/main/.agents/skills/worktree-pr into .agents/skills/worktree-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "worktree-pr", 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 converge-ai-labs/agent-foundation --skill worktree-pr -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install converge-ai-labs/agent-foundation worktree-pr --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/converge-ai-labs/agent-foundation.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/worktree-pr .cursor/skills/worktree-pr && 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-pr" agent skill from https://github.com/converge-ai-labs/agent-foundation/tree/main/.agents/skills/worktree-pr into .cursor/skills/worktree-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "worktree-pr", 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/converge-ai-labs/agent-foundation.git --path .agents/skills/worktree-pr--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 converge-ai-labs/agent-foundation --skill worktree-pr -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install converge-ai-labs/agent-foundation worktree-pr --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/converge-ai-labs/agent-foundation.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/worktree-pr .gemini/skills/worktree-pr && 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-pr" agent skill from https://github.com/converge-ai-labs/agent-foundation/tree/main/.agents/skills/worktree-pr into .gemini/skills/worktree-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "worktree-pr", 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 converge-ai-labs/agent-foundation worktree-prInstalls 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 converge-ai-labs/agent-foundation --skill worktree-pr -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/converge-ai-labs/agent-foundation.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/worktree-pr .github/skills/worktree-pr && 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-pr" agent skill from https://github.com/converge-ai-labs/agent-foundation/tree/main/.agents/skills/worktree-pr into .github/skills/worktree-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "worktree-pr", 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 converge-ai-labs/agent-foundation --skill worktree-pr -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install converge-ai-labs/agent-foundation worktree-pr --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/converge-ai-labs/agent-foundation.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/worktree-pr .opencode/skills/worktree-pr && 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-pr" agent skill from https://github.com/converge-ai-labs/agent-foundation/tree/main/.agents/skills/worktree-pr into .opencode/skills/worktree-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "worktree-pr", 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-prStart a task in a Git worktree under .worktrees/ from freshly fetched origin/main, implement and validate it, then use commit-push-pr to open or update a PR.
Worktree PR is an agent skill from converge-ai-labs/agent-foundation. Start a task in a Git worktree under .worktrees/ from freshly fetched origin/main, implement and validate it, then use commit-push-pr to open or update a PR. Use when the user requests worktree-based development or an isolated task-to-PR workflow; continue follow-ups in the same worktree.
Its SKILL.md is about 1.2k 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. The repository describes itself as: a13n - An open-source library and self-hosted platform for building and running your own agent systems—with managed agents, memory, sandboxes, computer use, and durable… The licence is Apache-2.0.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 03de0fe. 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:
gitmakeFrom 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 PR loads about 1.2k tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 641 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.
work; do not automatically copy private `.env` files or link another checkout's `.venv` or `node_modules`. Service workAutomated 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 converge-ai-labs/agent-foundation at commit 03de0fe, republished under its Apache-2.0 licence (© converge-ai-labs). 641 words, ~1,238 tokens.
.claude/skills/worktree-pr/SKILL.md (or your agent's skills folder).Own workspace preparation and continuity; commit-push-pr owns the Git/GitHub handoff. Follow AGENTS.md and CONTRIBUTING.md. Keep implementation with the current agent unless parallel work is requested.
A request to complete a task in a worktree and open a PR covers preparation, implementation, validation, commit, push, and PR creation. A workspace-only request stops after preparation. Preserve authorization across follow-ups; opening a PR does not authorize merging it.
Inspect git status --short --branch, git remote -v, and git worktree list --porcelain. Identify the primary checkout and any existing worktree for this task. Keep its path and branch in the task context so follow-ups reuse it rather than starting over.
For a new task:
Confirm origin is the intended repository and fetch it with git fetch origin. Use the updated origin/main, not local main or the current branch. If fetching fails, report the blocker rather than silently using a stale base.
Choose a short descriptive branch and <primary>/.worktrees/<task-slug> path within the Environment's accessible files and shell scope. Keep all task worktrees under the primary checkout, even when starting from another worktree. If the branch or path already exists, inspect it and reuse it only when it belongs to this task; otherwise choose a distinct name.
Ensure /.worktrees/ is ignored in the primary checkout. The repository's .gitignore owns this rule. For an older checkout without it, add the same rule to the common Git info/exclude without changing unrelated entries.
Create the worktree and record its starting commit:
git worktree add --no-track -b <branch> <primary>/.worktrees/<task-slug> origin/main
git -C <primary>/.worktrees/<task-slug> rev-parse HEADUnrelated changes in the original checkout can stay in place. Do not stash, reset, or copy them into the new worktree. If this task depends on existing uncommitted work or commits outside origin/main, agree on how to carry them over before proceeding.
Use the selected worktree explicitly for file paths, command working directories, validation, and Git/GitHub operations. A shell cd does not change later tool calls. Read the checkout's applicable guidance before editing.
Implement the requested task and validate according to Local Validation. Prepare only the dependencies needed for the work; do not automatically copy private .env files or link another checkout's .venv or node_modules. Service work follows its development guide, including make dev-status for checkout-specific URLs and ports.
Read and follow commit-push-pr in the same worktree. Carry forward the selected path, branch, starting commit, intended repository, PR base main, change scope, validation results, and authorized stages. Reuse valid checks rather than repeating them for handoff.
That skill owns staging, commit messages, push, PR content, and CI reporting. Do not duplicate those rules here or create another agent just to execute them.
Report the worktree path alongside the commit and PR result. Leave the worktree and branch available for follow-up changes; PR creation does not require cleanup or synchronization of the primary checkout.
When the user explicitly authorizes merging this PR, use gh and the repository's merge policy without bypassing required checks. Confirm that the PR is actually merged before synchronizing; queued or auto-merge-enabled is not merged.
As part of that authorized merge workflow, help bring the primary checkout up to date:
origin and inspect the primary checkout's status and branch again. A clean checkout has no staged, unstaged, or untracked changes; ignored worktrees and local caches do not make it dirty.main, fast-forward it with git -C <primary> merge --ff-only origin/main.main unless already authorized; do not merge origin/main into an unrelated task branch. If it is dirty or local main cannot fast-forward, preserve it and report what blocks synchronization rather than stashing, resetting, or rebasing it.Report the merge and synchronization outcomes separately. Keep worktrees and branches unless their removal is requested.
© converge-ai-labs, Apache-2.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 .agents/skills/worktree-pr of converge-ai-labs/agent-foundation.
Open the folder on GitHubat commit 03de0fe
Worktree PR 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 PR this skillconverge-ai-labs/agent-foundation | 171 | — | ~1.2k | Automated safety check: Notes | Apache-2.0 | |
| Finishing a Development Branchobra/superpowers | 297k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| 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 | |
| Pre-Release PR Triagejamiepine/voicebox | 57k | — | ~3.1k | Automated safety check: Pass | MIT | |
| Ccmanager Configkbwo/ccmanager | 1.3k | — | ~1.5k | 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.
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.
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.
kbwo/ccmanager
Set up, review, or repair a CCManager config — .ccmanager.json at a git repository root, or the global ~/.config/ccmanager/config.json.
CapSoftware/Cap
Builds a Cap feature in an isolated Git worktree with disposable dev resources, verification, a recorded demo and a neutral pull request, started with /building.
converge-ai-labs/agent-foundation
Author, review, or reorganize accepted technical contracts under spec/, including domain models, lifecycles, APIs, protocols, ownership, security, and compatibility.
converge-ai-labs/agent-foundation
Audit a repository or revision range for spec-code gaps, inconsistent shared concepts, semantic duplication, and removable code.
converge-ai-labs/agent-foundation
Prepare focused commits, push branches, and create or update GitHub pull requests when requested.
converge-ai-labs/agent-foundation
Build and refine frontend pages and interactions with strong visual taste, proactive polish, and lightweight iteration.
Works with
Categories
Start a task in a Git worktree under .worktrees/ from freshly fetched origin/main, implement and validate it, then use commit-push-pr to open or update a PR. Worktree PR is an agent skill from converge-ai-labs/agent-foundation.worktrees/ from freshly fetched origin/main, implement and validate it, then use commit-push-pr to open or update a PR.
Worktree PR fits situations like: the user requests worktree-based development; an isolated task-to-PR workflow; continue follow-ups in the same worktree.
Run `npx skills add converge-ai-labs/agent-foundation --skill worktree-pr -a claude-code`. Or copy the skill folder (.agents/skills/worktree-pr in converge-ai-labs/agent-foundation) into .claude/skills/worktree-pr in your project. Claude Code loads it when a task matches its description.
Run `npx skills add converge-ai-labs/agent-foundation --skill worktree-pr -a codex`. Or copy the skill folder (.agents/skills/worktree-pr in converge-ai-labs/agent-foundation) into .agents/skills/worktree-pr 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 converge-ai-labs/agent-foundation --skill worktree-pr -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-pr, .gemini/skills/worktree-pr, .github/skills/worktree-pr and .opencode/skills/worktree-pr in your project.
Going by SKILL.md and its folder, Worktree PR needs the command-line tools its instructions call (git and make).
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 (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Worktree PR is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 5k 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 PR: Finishing a Development Branch (obra/superpowers, 297k stars), Finishing A Development Branch (farm-fe/farm, 5.6k stars), Git Worktree Cleanup (lobehub/lobehub, 83k stars) and Pre-Release PR Triage (jamiepine/voicebox, 57k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
converge-ai-labs (a GitHub organization) maintains it in converge-ai-labs/agent-foundation, which has 171 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 10, 2026.
Source: converge-ai-labs/agent-foundation on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.