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.
Guides agents working in isolated git worktrees or short-lived branches on what to keep, discard or promote, so the accepted baseline branch stays clean.
$ npx skills add nathanmcnulty/nathanmcnulty --skill disciplined-worktree-promotion -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install nathanmcnulty/nathanmcnulty disciplined-worktree-promotion --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/nathanmcnulty/nathanmcnulty.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/disciplined-worktree-promotion .claude/skills/disciplined-worktree-promotion && 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 "disciplined-worktree-promotion" agent skill from https://github.com/nathanmcnulty/nathanmcnulty/tree/main/skills/disciplined-worktree-promotion into .claude/skills/disciplined-worktree-promotion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "disciplined-worktree-promotion", 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/nathanmcnulty/nathanmcnulty/tree/main/skills/disciplined-worktree-promotionType 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 nathanmcnulty/nathanmcnulty --skill disciplined-worktree-promotion -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install nathanmcnulty/nathanmcnulty disciplined-worktree-promotion --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nathanmcnulty/nathanmcnulty.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/disciplined-worktree-promotion .agents/skills/disciplined-worktree-promotion && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "disciplined-worktree-promotion" agent skill from https://github.com/nathanmcnulty/nathanmcnulty/tree/main/skills/disciplined-worktree-promotion into .agents/skills/disciplined-worktree-promotion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "disciplined-worktree-promotion", 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 nathanmcnulty/nathanmcnulty --skill disciplined-worktree-promotion -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install nathanmcnulty/nathanmcnulty disciplined-worktree-promotion --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nathanmcnulty/nathanmcnulty.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/disciplined-worktree-promotion .cursor/skills/disciplined-worktree-promotion && 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 "disciplined-worktree-promotion" agent skill from https://github.com/nathanmcnulty/nathanmcnulty/tree/main/skills/disciplined-worktree-promotion into .cursor/skills/disciplined-worktree-promotion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "disciplined-worktree-promotion", 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/nathanmcnulty/nathanmcnulty.git --path skills/disciplined-worktree-promotion--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 nathanmcnulty/nathanmcnulty --skill disciplined-worktree-promotion -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install nathanmcnulty/nathanmcnulty disciplined-worktree-promotion --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nathanmcnulty/nathanmcnulty.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/disciplined-worktree-promotion .gemini/skills/disciplined-worktree-promotion && 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 "disciplined-worktree-promotion" agent skill from https://github.com/nathanmcnulty/nathanmcnulty/tree/main/skills/disciplined-worktree-promotion into .gemini/skills/disciplined-worktree-promotion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "disciplined-worktree-promotion", 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 nathanmcnulty/nathanmcnulty disciplined-worktree-promotionInstalls 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 nathanmcnulty/nathanmcnulty --skill disciplined-worktree-promotion -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/nathanmcnulty/nathanmcnulty.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/disciplined-worktree-promotion .github/skills/disciplined-worktree-promotion && 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 "disciplined-worktree-promotion" agent skill from https://github.com/nathanmcnulty/nathanmcnulty/tree/main/skills/disciplined-worktree-promotion into .github/skills/disciplined-worktree-promotion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "disciplined-worktree-promotion", 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 nathanmcnulty/nathanmcnulty --skill disciplined-worktree-promotion -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install nathanmcnulty/nathanmcnulty disciplined-worktree-promotion --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nathanmcnulty/nathanmcnulty.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/disciplined-worktree-promotion .opencode/skills/disciplined-worktree-promotion && 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 "disciplined-worktree-promotion" agent skill from https://github.com/nathanmcnulty/nathanmcnulty/tree/main/skills/disciplined-worktree-promotion into .opencode/skills/disciplined-worktree-promotion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "disciplined-worktree-promotion", 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.
disciplined-worktree-promotionGuides agents working in isolated git worktrees or short-lived branches on what to keep, discard or promote, so the accepted baseline branch stays clean.
The skill sets a working posture for exploratory changes. Start from the accepted baseline branch rather than automatically the repository default, keep one work item per worktree or branch, and treat experiments, benchmark spikes and risky ideas as disposable until they earn promotion. Creating and detecting worktrees is left to a separate `using-git-worktrees` skill.
Its core rules ask the agent to read existing code and notes before adding anything, to prefer deleting or tightening code over adding helpers or new layers, and to split ideas into small phases that can each be kept or dropped alone. Stash is ruled out as a way to carry work between experiments. Subagents or swarms may be used to challenge assumptions or run independent health checks, and conclusions are summarized as keep, discard, defer or needs-human-judgment.
11 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 1c0a52f. 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.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
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.
Disciplined Worktree Promotion loads about 2.1k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 1,204 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 nathanmcnulty/nathanmcnulty at commit 1c0a52f, republished under its Unlicense licence (© nathanmcnulty). 1,204 words, ~2,076 tokens.
.claude/skills/disciplined-worktree-promotion/SKILL.md (or your agent's skills folder).Use this skill to keep exploratory work disposable, promotion decisions evidence-based, and the accepted baseline branch clean.
Use using-git-worktrees for worktree creation and detection. This skill governs what to keep, what to discard, and when a change has earned promotion.
Inspect before adding
Reduce or fix code first
New helpers are a last resort
Keep phases small and promotable
Do not carry work with stash or hidden state
Use swarms for challenge, not for noise
Evidence beats plausibility
Keep or discard decisively
Promotion workflow
PR hygiene
For each work item, record:
If work spans more than one repository, package, or deployable unit, record every relevant baseline SHA or version and the exact artifact or bundle used for proof.
Do not start the next work item until all of these are true:
When reporting progress or results:
© nathanmcnulty, Unlicense. 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 skills/disciplined-worktree-promotion of nathanmcnulty/nathanmcnulty.
Open the folder on GitHubat commit 1c0a52f
Disciplined Worktree Promotion 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 |
|---|---|---|---|---|---|---|
| Disciplined Worktree Promotion this skillnathanmcnulty/nathanmcnulty | 441 | — | ~2.1k | Automated safety check: Pass | Unlicense | |
| Finishing a Development Branchobra/superpowers | 297k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Git Worktree Cleanuplobehub/lobehub | 83k | — | ~2.8k | Automated safety check: Pass | Custom licence | |
| Ccmanager Configkbwo/ccmanager | 1.3k | — | ~1.5k | Automated safety check: Pass | MIT | |
| Git Worktree Managermicrosoft/WindowsAppSDK | 4.7k | — | ~2k | Automated safety check: Pass | MIT | |
| Git Worktree IsolationjnMetaCode/superpowers-zh | 8.3k | 1 repos | ~982 | 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.
lobehub/lobehub
Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.
kbwo/ccmanager
Set up, review, or repair a CCManager config — .ccmanager.json at a git repository root, or the global ~/.config/ccmanager/config.json.
microsoft/WindowsAppSDK
Creates and manages Git worktrees with PowerShell scripts so separate issues and Copilot sessions each get an isolated branch, build and test environment.
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.
tisfeng/Easydict
起草、创建或汇报 Angular-style 本地 Git 提交。用于明确的提交交付;分支集成使用 worktree-rebase-merge,不 push。
Works with
Categories
Guides agents working in isolated git worktrees or short-lived branches on what to keep, discard or promote, so the accepted baseline branch stays clean. The skill sets a working posture for exploratory changes. Start from the accepted baseline branch rather than automatically the repository default, keep one work item per worktree or branch, and treat experiments, benchmark spikes and risky ideas as disposable until they earn promotion.
Disciplined Worktree Promotion fits situations like: evaluating several experimental approaches in separate worktrees; deciding which parts of a spike branch deserve to reach the baseline branch; keeping a performance experiment apart from a correctness fix; cleaning up exploratory branches without using stash as a handoff.
Run `npx skills add nathanmcnulty/nathanmcnulty --skill disciplined-worktree-promotion -a claude-code`. Or copy the skill folder (skills/disciplined-worktree-promotion in nathanmcnulty/nathanmcnulty) into .claude/skills/disciplined-worktree-promotion in your project. Claude Code loads it when a task matches its description.
Run `npx skills add nathanmcnulty/nathanmcnulty --skill disciplined-worktree-promotion -a codex`. Or copy the skill folder (skills/disciplined-worktree-promotion in nathanmcnulty/nathanmcnulty) into .agents/skills/disciplined-worktree-promotion 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 nathanmcnulty/nathanmcnulty --skill disciplined-worktree-promotion -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/disciplined-worktree-promotion, .gemini/skills/disciplined-worktree-promotion, .github/skills/disciplined-worktree-promotion and .opencode/skills/disciplined-worktree-promotion in your project.
SKILL.md names no scripts, command-line tools or credentials: Disciplined Worktree Promotion is instructions for the agent only. Our summary lists: A Git repository.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. 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.
Disciplined Worktree Promotion is published under the Unlicense licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.3k 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 Disciplined Worktree Promotion: Finishing a Development Branch (obra/superpowers, 297k stars), Git Worktree Cleanup (lobehub/lobehub, 83k stars), Ccmanager Config (kbwo/ccmanager, 1.3k stars) and Git Worktree Manager (microsoft/WindowsAppSDK, 4.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
nathanmcnulty (a GitHub user) maintains it in nathanmcnulty/nathanmcnulty, which has 441 GitHub stars. The repository was last updated on September 20, 2026.
Source: nathanmcnulty/nathanmcnulty on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.