用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/diegosouzapw/awesome-omni-skill --skill repoint-branch命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| 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
Detect platform — follow @~/.claude/skill-references/platform-detection.md to determine GitHub vs GitLab. Set CLI, REVIEW_UNIT, and API command patterns accordingly. All commands below use GitHub (gh) syntax; substitute GitLab equivalents if on 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.6 <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 /pr skill or:
gh pr create --base main --title "<title>" --body "..."
Return to original branch:
git checkout <original-branch>
Inform user: "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-pr/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-pr — You have a large PR and need help analyzing how to split it. That skill proposes a strategy; use this one to execute each piece.Token-efficient tracking for AI orchestration. CLI-first for status updates (~50 tokens), agent fallback for complex ops (~1KB). Use when: updating task status, querying blockers, creating progress files, validating phases.
AshAi extension guidelines for integrating AI capabilities with Ash Framework. Use when implementing vectorization/embeddings, exposing Ash actions as LLM tools, creating prompt-backed actions, or setting up MCP servers. Covers semantic search, LangChain integration, and structured outputs.
This skill should be used when solving hard questions, complex architectural problems, or debugging issues that benefit from GPT-5 Pro or GPT-5.1 thinking models with large file context. Use when standard Claude analysis needs deeper reasoning or extended context windows.
基于 SOC 职业分类