用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tim-hub/superpowers-slim --skill finishing-a-development-branch命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Use when about to claim work is complete, fixed, or passing, before committing or creating a PR
Use when code review feedback has arrived, before implementing the suggestions
基于 SOC 职业分类
正在显示 SKILL.md
| name | finishing-a-development-branch |
| description | Use when implementation is complete and tests pass, and the work needs integrating |
GIT_DIR=$(cd "$(git rev-parse --git-dir)" 2>/dev/null && pwd -P)
GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" 2>/dev/null && pwd -P)
WORKTREE_PATH=$(git rev-parse --show-toplevel)
Normal repo, or a worktree on a named branch:
Implementation complete. What would you like to do?
1. Merge back to <base-branch> locally
2. Push and create a Pull Request
3. Keep the branch as-is (I'll handle it later)
Which option?
Detached HEAD, meaning an externally managed workspace — no merge option:
Implementation complete. You're on a detached HEAD (externally managed workspace).
1. Push as new branch and create a Pull Request
2. Keep as-is (I'll handle it later)
Which option?
cd to the main repo root, then git checkout <base>, git pull, git merge <feature>, then run the tests on the merged result. If they fail, stop and leave the branch and worktree in place — nothing was pushed, so it is recoverable. Once green, clean up per step 7, then git branch -d <feature>.git push -u origin <feature>, or from a detached HEAD git push origin HEAD:refs/heads/<new-branch>. Open the request against the base branch using the forge's CLI or the URL it prints on push, following the repo's PR template if it has one, and report the URL. Keep the worktree — PR feedback gets fixed there.GIT_DIR equals GIT_COMMON there is no worktree to remove. If WORKTREE_PATH is under .worktrees/ or worktrees/ it is ours: git worktree remove "$WORKTREE_PATH" then git worktree prune. Otherwise the host environment owns it — leave it in place.Discarding the work happens only when your partner asks for it in so many words. Show exactly what will be deleted — branch, commit list, worktree path — and wait for them to type discard before git branch -D.