agentleFS
busybutlazybusybutlazy/skill-forge/.claude/skills/create-pr/SKILL.md

create-pr

Skill1 starsChanged 7 months agoMITView on GitHub

Pull request writing specialist. Use proactively when the user wants to summarize branch changes, draft reviewer-friendly PR text, or create a PR with GitHub CLI.

  • Commits and pushes
Files
SKILL.md

Pull Request Writer

協助使用者把 branch 上的工作整理成 reviewer 看得懂的 Pull Request。

Operating Principles

  • 先理解變更,再寫 PR
  • PR body 重點是決策、影響與驗證,不是把 diff 重貼一遍
  • 若要執行 git push 或 gh pr create,必須先取得確認
  • 如果缺少 gh、登入狀態、或 upstream branch,先處理阻塞點

Workflow

1. Determine the branch pair

先確認:

  • source branch
  • target branch

如果使用者沒有特別指定,可預設目前 branch 對 main。

2. Read the change set

優先看 branch 的提交與摘要差異:

  • git log <target>..<source> --oneline
  • git diff <target>...<source> --stat

必要時再深入看檔案差異,釐清:

  • 這個 PR 的主要目的
  • 重要實作決策
  • 潛在風險、限制或遷移成本

3. Draft the PR content

如果專案有 .github/PULL_REQUEST_TEMPLATE.md,優先沿用。沒有的話,自行產生簡潔結構,例如:

## Summary

## Key Changes

## Validation

## Notes

Title 應該短、明確、可掃描;body 要聚焦在 reviewer 真正需要知道的事。

4. Review with the user

把 title 與 body 先給使用者看,允許調整方向、語氣或細節。確認後才進下一步。

5. Create the PR

若使用者要直接建立 PR,再視情況執行:

  • git push -u origin <source>,若 branch 尚未推送
  • gh pr create --base <target> --head <source> --title "<title>" --body "<body>"

如果使用者要求 reviewer,再補 --reviewer。

Quality Bar

  • reviewer 應能在幾十秒內理解這個 PR 做了什麼
  • 測試方式與已知限制要清楚
  • 不要把不確定的推論寫成既定事實

Download now (ZIP)

  • Other versions197 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 197

    1. microsoft/vscode★ 194ksame name
    2. vercel/next.js★ 143ksame name
    3. penpot/penpot★ 62ksame name
    4. remix-run/react-router★ 57ksame name
    5. moeru-ai/airi★ 51ksame name
    6. ToolJet/ToolJet★ 41ksame name
    7. ueberdosis/tiptap★ 39ksame name
    8. BabylonJS/Babylon.js★ 26ksame name
    9. kortix-ai/suna★ 20ksame name
    10. ryoppippi/ccusage★ 19ksame name

    187 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Used alongsideProjects with it also use update-pr, act-on-feedback and 10 more.

    Other files people use alongside this one.

    Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
    • MicrosoftSkill

      update-pr

      Update the pull request for the current session. Use when the user wants to push new changes to an existing PR.

      Also in 9 projects that use this

    • MicrosoftSkill

      act-on-feedback

      Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

      Also in 3 projects that use this

    • ModelEngine-GroupSkill

      create-release-note

      从 PR/commit 中自动生成结构化的 Release Notes,并可选创建 GitHub Draft Release。支持 x.y.0 版本合并前一 minor 系列的 release notes。当用户要求生成发布说明、创建 release notes 时触发。参数为版本号和可选的上一版本号。

      Also in 3 projects that use this

    • frostneySkill

      native-nostalgia-stack

      Applies the user's FreePascal toolchain and its build, formatting, hook, and test contracts while leaving project-specific mechanics local. Use when scaffolding or working in a FreePascal project that follows this toolchain.

      Also in 3 projects that use this

    • frostneySkill

      roadmap-review

      Reviews a roadmap from fresh project evidence and produces a verified, throughput-anchored version plan, with execution gated on confirmation. Use when reviewing a roadmap, planning releases, or sequencing a backlog.

      Also in 3 projects that use this

    • Hey-DigaSkill

      review-pr-comments

      Review and apply Claude's PR feedback interactively. Use after receiving a Claude Code review on a PR to triage and implement feedback.

      Also in 4 projects that use this

    • +1 more from microsoft
    • +1 more from frostney
  • In this repository18 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.