一键导入
repoint-branch
Extract independent changes from a feature branch into a new PR targeting main.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Extract independent changes from a feature branch into a new PR targeting main.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Capture session learnings and save to skills, guidelines, or reference docs under ~/.claude/.
Orchestrate parallel claude -p sessions — bootstrap, launch, monitor, and converge. Works with any skill that produces manifest.json, item directories, and a runner script.
Create a request (pull request or merge request) or update an existing one following project conventions.
Resolve merge or rebase conflicts between branches.
Assess open PRs with unaddressed review comments and generate a parallel addressing script — produces manifest.json and let-it-rip.sh for address-request-comments execution.
Assess open work items and generate a parallel execution script — produces manifest.json and let-it-rip.sh for implement/clarify execution.
| name | repoint-branch |
| description | Extract independent changes from a feature branch into a new PR targeting main. |
| allowed-tools | ["Read","Bash","AskUserQuestion"] |
git branch --show-current 2>/dev/nullgit diff --name-only origin/main...HEAD 2>/dev/null | head -50Extract independent changes from a compound branch into a new branch targeting main.
# Interactive - shows changes, asks what to extract
/repoint-branch
# Extract specific files/directories to auto-named branch
/repoint-branch .claude/guidelines/
# Extract multiple paths
/repoint-branch .claude/guidelines/ README.md src/config.py
# Glob pattern
/repoint-branch ".claude/**/*.md"
# Specify new branch name with --name
/repoint-branch .claude/guidelines/ --name feature/guidelines-lite
# Full example
/repoint-branch .claude/guidelines/ .claude/commands/ --name feature/claude-config-lite
Platform commands — all commands below are plain git. PR creation delegates to /git:create-request (handles both GitHub and GitLab).
Parse arguments:
--name <branch-name> if providedGet current context:
git branch --show-current # Current branch
git fetch origin main
git diff --name-only origin/main...HEAD # All changed files
Determine files to extract (store as FILES_TO_EXTRACT):
git diff --name-only origin/main...HEAD -- <patterns>FILES_TO_EXTRACT for use in later stepsValidate independence:
Determine new branch name:
--name provided, use it<current-branch>-liteCreate new branch from main:
git checkout origin/main
git checkout -b <new-branch-name>
Apply the changes:
For each file in FILES_TO_EXTRACT:
# Ensure parent directories exist
mkdir -p $(dirname <filepath>)
# Get the file content from the original branch
git show <original-branch>:<filepath> > <filepath>
Stage and commit all extracted files:
git add <FILES_TO_EXTRACT>
git commit -m "<descriptive message>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>"
Push and offer to create PR:
git push -u origin <new-branch-name>
Ask: "Create a PR to main? (y/n)"
If yes, run /git:create-request.
Return to original branch:
git checkout <original-branch>
Inform the operator: "Created <new-branch-name> with extracted changes. Your original branch is unchanged."
$ /repoint-branch .claude/guidelines/ --name feature/guidelines-lite
Current branch: feature/phase2 (based on feature/phase1)
Files to extract:
.claude/guidelines/git-workflow.md
.claude/guidelines/python-practices.md
These will be copied to new branch 'feature/guidelines-lite' targeting main.
Confirm these don't depend on feature/phase1 changes? (y/n) y
Creating branch from main...
Applying changes...
Committed: "Add git workflow and python practice guidelines"
Pushed to origin/feature/guidelines-lite
Create PR to main? (y/n) y
PR created: https://github.com/user/repo/pull/42
Returned to feature/phase2.
/git:split-request/git:repoint-branch — You already know which files to extract into a separate PR. Provide paths and this skill handles branching, copying, committing, and PR creation./git:split-request — You have a large PR/MR and need help analyzing how to split it. That skill proposes a strategy; use this one to execute each piece.