LeoLee0812

GitHub Flow Skill — Git skill for Claude Code

Git community

Claude Code 技能:一条 /github 命令把改动走完 分支→Issue→PR→自审→合并,刷满贡献雷达图四个维度.

How to install GitHub Flow Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open LeoLee0812/github-flow-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What GitHub Flow Skill does

Claude Code 技能:一条 /github 命令把改动走完 分支→Issue→PR→自审→合并,刷满贡献雷达图四个维度.

Alternatives in Git

README

🔀 github-flow-skill

**One Command, Full GitHub Flow**

**一条 `/github` 命令,把"裸 push"升级成 分支 → Issue → PR → 自审 → 合并 的正规协作流程**

![Claude Code](https://img.shields.io/badge/Claude%20Code-Skill-D97757?style=flat-square&logo=claude&logoColor=white) ![gh CLI](https://img.shields.io/badge/requires-gh%20CLI-181717?style=flat-square&logo=github&logoColor=white) ![Radar](https://img.shields.io/badge/radar-Commits%20·%20Issues%20·%20PRs%20·%20Review-blueviolet?style=flat-square) ![Format](https://img.shields.io/badge/format-纯自然语言%20Markdown-000000?style=flat-square&logo=markdown&logoColor=white) ![License](https://img.shields.io/badge/license-MIT-blue?style=flat-square) ![Stars](https://img.shields.io/github/stars/LeoLee0812/github-flow-skill?style=flat-square&logo=github&color=yellow)

很多人(尤其是个人项目)习惯直接 `git commit && git push` 到 `main`,结果 GitHub 个人主页的贡献雷达图变成一条**横线**:Commits 占了 97%,Pull requests 个位数,Issues 和 Code review 直接是 0。

这个 Skill 让 Claude Code 在你输入 `/github` 时,自动把当前改动走完整流程:

① 建 Issue                → 计入 Issues
② 切规范分支
③ commit + push
④ 开 PR(Closes #Issue)   → 计入 Pull requests
⑤ 贴自审 comment           → 计入 Code review
⑥ 停下来等你确认
⑦ squash 合并 + 删分支 + 自动关 Issue → 计入 Commits

一次跑完,**雷达图四个角同时 +1**。坚持几周,那条横线就会鼓成一个饱满的多边形。

想先看看实际效果?直接读 [`examples/示例流程.md`](examples/示例流程.md),那是本仓库自己真实跑过的一次循环。

✨ 特点

  • 全程命令行:基于 `gh` CLI,不用打开 GitHub 网页。
  • 显式触发:只有你输入 /github 才运行,平时的 git commit / git push 完全不受影响,绝不自动套用。
  • 合并前刹车:分支、Issue、PR、自审全自动完成,但合并这一步会停下来,给你 PR 链接和 diff 摘要,等你说"合并"才执行——不可逆的操作绝不替你做主。
  • 不止是刷图:Issue 逼你想清楚再动手、分支隔离改动、PR 留下可回溯的讨论页面——刷雷达图只是副产品。

📦 安装

方法一:简易安装(推荐)

把下面这段话直接粘贴到 Claude Code 里,让它带着你把安装和检查一次走完:

帮我安装这个 skill:https://github.com/LeoLee0812/github-flow-skill
把仓库里的 github/ 文件夹装到 ~/.claude/skills/,
然后帮我检查 gh CLI 是否已安装并完成登录(gh auth status),
没装的话带我装好并登录。

Claude 会自己克隆仓库、复制文件、检查依赖,全程不用手动操作。

方法二:手动安装

前提:已安装 [`gh` CLI](https://cli.github.com/) 并完成 `gh auth login`。

1.