Github Pr.Split Branch
БесплатноБез исполняемых скриптовНе проверенSplit current Git changes into small, cohesive PRs to simplify merging
от gpsaggese★ 158 звёзд на GitHubОб этом скилле
Goal
Propose how to split the changes between current
HEADof the branch andorigin/masterinto small PRs to minimize:- The review complexity
- The risk of breaking the unit tests
If the task is not perfectly clear or complex, you MUST not perform it, but ask for clarifications and create a plan for review
- Create
<PREFIX>.approach.mdwith 5 bullet points explaining what the plan is
- Create
Output Files
- The output files are in the current dir and their names start with
<PREFIX>, which isgithub_pr.split_branch.<INPUT_REF><INPUT_REF>is the current branch name, as in.claude/skills/skill.rules.md### Name the Output File
Workflow
Read Rules
- Read rules about:
- Coding:
.claude/skills/coding.rules.md - Unit tests:
.claude/skills/testing.rules.md
- Coding:
Read the Changes in the Current Git Client
Obtain the files that need to be merged with:
git diff --name-status origin/master HEAD ...Analyze the difference between the current client and
master(ororigin/master):git diff master...HEAD --name-only # or if master is not available locally: git diff origin/master...HEAD --name-only
Propose PRs
Propose a set of PRs that decompose the changes in the current Git client, so that there are coherent and tightly coupled changes
Prefer PRs that change entire files, not split a file across PRs
Keep each file and its test file in the same PR
Merge low risk / complexity PRs to have fewer PRs, even if the merged PR is the sum of simpler ones
- Describe each merged unit as its own bullet
Order the PRs
- Start with the PRs that have low risk and touch most files
Create pytest Commands
- For each PR create:
- A file
<PREFIX>.pr<NUM>.files.txtwith the files changed, e.g.,.claude/skills .claude/templates .claude/notify.sh .claude/settings.local.json- For a renamed file, list both the old path and the new path
- A file
<PREFIX>.pr<NUM>.pytest.shwith the pytest command to run to exercise the changes by running the tests in all the modified files and make sure the PR is running successfully, e.g.,#!/bin/bash pytest_log \ dev_scripts_helpers/coding_tools/test \ dev_scripts_helpers/dockerize/test \ linters2/test \ $@ - Make this script executable with
chmod +x <PREFIX>.pr<NUM>.pytest.sh
- A file
Report the Output
- Create a file
<PREFIX>.mdwith the plan to split the PRs, following strictly the format in.claude/templates/github_pr_split_plan.template.md - Say in the file
<PREFIX>.mdhow it was generated, with this line right after the title:- Generated by `.claude/skills/github_pr.split_branch/SKILL.md` - If the file
<PREFIX>.mdalready exists then update it, removing the PRs already merged based on the currenti git_filesand thegit log - Run the linter on
<PREFIX>.md> lint_text.py -i <PREFIX>.md
Verification
- The output files are in the current dir and start with
github_pr.split_branch.<INPUT_REF> - Confirm every changed file is assigned to exactly one PR
- Confirm each PR's
<PREFIX>.pr<NUM>.pytest.shis executable and passes - Confirm
<PREFIX>.mdpasseslint_text.py - The file
<PREFIX>.mdsays that it was generated by.claude/skills/github_pr.split_branch/SKILL.md
Установить Github Pr.Split Branch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Github Pr.Split Branch?
Split current Git changes into small, cohesive PRs to simplify merging
Как установить скилл Github Pr.Split Branch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Github Pr.Split Branch запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic