Agent skill

Git Branch PR Flow

by Yueby in Yueby/music-together

Git 一条龙工作流:创建分支、commit、push、创建 PR、merge、删除分支、同步本地 main。当用户要求提交代码、创建 PR、一条龙、或完整的 Git 提交流程时使用。

AGPL-3.0Auto-check: notesDevelopment

Install Git Branch PR Flow

skills CLI
$ npx skills add Yueby/music-together --skill git-branch-pr-flow -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Yueby/music-together git-branch-pr-flow --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Yueby/music-together.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/git-branch-pr-flow .claude/skills/git-branch-pr-flow && rm -rf skills-src

Use ~/.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/

Facts

Skill name
git-branch-pr-flow
GitHub stars
178
Token cost
~395 tokens
SKILL.md length
96 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Git 一条龙工作流:创建分支、commit、push、创建 PR、merge、删除分支、同步本地 main。当用户要求提交代码、创建 PR、一条龙、或完整的 Git 提交流程时使用。

  • Works in 6 steps: 预检 → 创建分支 → Stage & Commit → …
  • Tasks that involve Git workflow
  • SKILL.md covers 工作流 and 注意事项
  • Calls git and gh

What it does

Git Branch PR Flow is an agent skill from Yueby/music-together. Git 一条龙工作流:创建分支、commit、push、创建 PR、merge、删除分支、同步本地 main。当用户要求提交代码、创建 PR、一条龙、或完整的 Git 提交流程时使用。

Its SKILL.md is about 400 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Git workflow and Commit messages. It works with Git. The repository describes itself as: 在线多人同步听歌平台 — 创建房间,邀请朋友,一起实时听同一首歌. The licence is AGPL-3.0.

When your agent uses it

  • Tasks that involve Git workflow
  • Tasks that involve Commit messages

Example prompts

  • “/git-branch-pr-flow”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. 预检
  2. 创建分支
  3. Stage & Commit
  4. Push
  5. 创建 PR
  6. Merge & 清理

What it can do on your machine

Read from SKILL.md and the folder at commit 92277cd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Git Branch PR Flow loads about 395 tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 96 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~28
When it runs · the whole SKILL.md, loaded when a task matches
~395

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.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:98
    - 不要提交 `.cursor/plans/`、`.env` 等敏感/IDE 文件

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.

SKILL.md

The full file from Yueby/music-together at commit 92277cd, republished under its AGPL-3.0 licence (© Yueby). 96 words, ~395 tokens.

Download SKILL.mdSave it as .claude/skills/git-branch-pr-flow/SKILL.md (or your agent's skills folder).
name
git-branch-pr-flow
description
Git 一条龙工作流:创建分支、commit、push、创建 PR、merge、删除分支、同步本地 main。当用户要求提交代码、创建 PR、一条龙、或完整的 Git 提交流程时使用。

Git 分支 PR 一条龙

从当前变更出发,一步到位完成:分支 → commit → push → PR → merge → 清理。

工作流

1. 预检
bash
git status
git diff --stat
git log --oneline -5
  • 确认当前在 main 分支
  • 如果不在 main,先 git checkout main && git pull
  • 审查所有变更,理解变更范围
2. 创建分支

分支命名规范:<type>/<short-description>

type场景
feat新功能
fix修复
refactor重构
docs文档
chore杂项
bash
git checkout -b <type>/<short-description>
3. Stage & Commit
bash
git add -A
# 排除不应提交的文件(如有)
git reset HEAD .cursor/plans/ 2>/dev/null

Commit message 规范:

  • 标题行:<type>: <简要描述>
  • 如果变更复杂,用正文按模块分段说明
  • 多行提交信息使用临时文件配合 git commit -F,临时文件放在系统临时目录,不要写入项目根目录
bash
msg_file="${TMPDIR:-/tmp}/music-together-commit-message.txt"
printf '%s\n' '<type>: <描述>' > "$msg_file"
git commit -F "$msg_file"
rm -f "$msg_file"

单行 message 可直接用 -m:

bash
git commit -m "<type>: <描述>"
4. Push
bash
git push -u origin HEAD
5. 创建 PR
bash
gh pr create --title "<commit 标题>" --body "<变更摘要>"

PR body 包含:

  • Summary:核心变更要点(bullet list)
  • Changes:文件统计、关键新增/修改
6. Merge & 清理
bash
gh pr merge <pr-number> --merge --delete-branch

等待命令完成后,同步本地:

bash
git checkout main && git pull

确认系统临时目录中的提交信息文件已删除,并确认本地只剩干净的 main 分支。

注意事项

  • 不要提交 .cursor/plans/、.env 等敏感/IDE 文件
  • Shell 命令统一使用 POSIX/bash 语法
  • merge 后确认 GitHub Actions 等 CI 是否被触发
  • 如果用户只想提交不想 merge,在创建 PR 后停止并告知用户 PR 地址

© Yueby, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/git-branch-pr-flow of Yueby/music-together.

Open the folder on GitHubat commit 92277cd

Compare with similar skills

Git Branch PR Flow 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.

Git Branch PR Flow compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Branch PR Flow this skillYueby/music-together178—~395Automated safety check: NotesAGPL-3.0
ToolJet Multi-Repo CommitToolJet/ToolJet41k—~1.3kAutomated safety check: PassAGPL-3.0
Git Workflow and Versioningaddyosmani/agent-skills103k2 repos~3.5kAutomated safety check: NotesMIT
React Router Pull Request Creatorremix-run/react-router57k—~2.5kAutomated safety check: PassMIT
Saleor Commit Workflowsaleor/saleor23k—~575Automated safety check: PassBSD-3-Clause
Emoji Commit ConventionsbaptisteArno/typebot.io11k—~424Automated safety check: PassCustom licence

Similar skills

  • Commits changes across ToolJet's root repo and its server/ee and frontend/ee submodules, writing messages from the diffs and updating submodule pointers in order.

    41k GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Git Workflow and Versioning

    addyosmani/agent-skills

    Sets git habits for every change: short-lived branches, atomic commits with descriptive messages, clean pull requests, plus versioning, tagging and changelogs for releases.

    103k GitHub starsUsed in 2 repos~3.5k tokens
    DevelopmentAuto-check: notes
  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.

    23k GitHub stars~575 tokensUpdated today
    DevelopmentAuto-check passed
  • Emoji Commit Conventions

    baptisteArno/typebot.io

    Sets the repository's convention for commit messages and pull request titles: one emoji prefix for the main intent, a concise title and clean follow-up commits.

    11k GitHub stars~424 tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Draft Pull Request Creator

    wordpress-mobile/WordPress-Android

    Commits and pushes current changes, writes a pull request title and body from the branch history and template, and opens a draft PR on GitHub after you approve it.

    3.2k GitHub stars~881 tokensUpdated today
    DevelopmentAuto-check: notes

Works with

Categories

Questions about Git Branch PR Flow

What does Git Branch PR Flow do?

Git 一条龙工作流:创建分支、commit、push、创建 PR、merge、删除分支、同步本地 main。当用户要求提交代码、创建 PR、一条龙、或完整的 Git 提交流程时使用。. Git Branch PR Flow is an agent skill from Yueby/music-together.

When should I use Git Branch PR Flow?

Git Branch PR Flow fits situations like: tasks that involve Git workflow; tasks that involve Commit messages.

How do I install Git Branch PR Flow in Claude Code?

Run `npx skills add Yueby/music-together --skill git-branch-pr-flow -a claude-code`. Or copy the skill folder (.agents/skills/git-branch-pr-flow in Yueby/music-together) into .claude/skills/git-branch-pr-flow in your project. Claude Code loads it when a task matches its description.

How do I install Git Branch PR Flow in Codex?

Run `npx skills add Yueby/music-together --skill git-branch-pr-flow -a codex`. Or copy the skill folder (.agents/skills/git-branch-pr-flow in Yueby/music-together) into .agents/skills/git-branch-pr-flow in your project. Codex loads it when a task matches its description.

Can I use Git Branch PR Flow in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Yueby/music-together --skill git-branch-pr-flow -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-branch-pr-flow, .gemini/skills/git-branch-pr-flow, .github/skills/git-branch-pr-flow and .opencode/skills/git-branch-pr-flow in your project.

What does Git Branch PR Flow need to run?

Going by SKILL.md and its folder, Git Branch PR Flow needs the command-line tools its instructions call (git and gh).

Does Git Branch PR Flow access the network?

SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Git Branch PR Flow safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Git Branch PR Flow use?

Git Branch PR Flow is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Git Branch PR Flow use?

About 395 tokens (SKILL.md is roughly 1.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Git Branch PR Flow?

Skills that share tags, products or a category with Git Branch PR Flow: ToolJet Multi-Repo Commit (ToolJet/ToolJet, 41k stars), Git Workflow and Versioning (addyosmani/agent-skills, 103k stars), React Router Pull Request Creator (remix-run/react-router, 57k stars) and Saleor Commit Workflow (saleor/saleor, 23k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Branch PR Flow?

Yueby (a GitHub user) maintains it in Yueby/music-together, which has 178 GitHub stars. The repository was last updated on October 5, 2026.

Source: Yueby/music-together on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.