git-pr
Skill0 starsChanged 10 months agoMITView on GitHub
Prepares Pull Request content by analyzing branch differences. Use when creating PRs, when the user needs help writing PR descriptions, or mentions pull request.
14 other projects use a version of this.
Adopted by
Most recently taken up by
- Markssuave/Markssuave-Agent-skillstheir own version, first seen Nov 8, 2026
- stuff4ai/skillstheir own version, first seen Nov 8, 2026
- dmythro/agent-skillstheir own version, first seen Nov 8, 2026
- Zenobia000/agent-skills-startertheir own version, first seen Nov 1, 2026
- eliasjnior/claude-skillstheir own version, first seen Oct 20, 2026
- klauswg/sasuketheir own version, first seen Oct 15, 2026
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- AI-Cultivation/cultivation-world-simulator★ 2.1ksame name
- 4thfever/cultivation-world-simulator★ 2.1ksame name
- diodeme/Gold-Band★ 164same name
- klauswg/sasuke★ 17same name
- khangpqvn/SDDADD★ 12same name
- dmythro/agent-skills★ 7same name
- Zenobia000/agent-skills-starter★ 4same name
- mattstruble/skills★ 2same name
- NaveenGumaste/keyskills★ 2same name
- Markssuave/Markssuave-Agent-skills★ 1same name
4 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.
In this repository4 other files it gives its agents.
- git-branchSkill
- git-cleanupSkill
- git-commitSkill
- git-repo-guideSkill
The file
Files
Git PR
准备 Pull Request - 生成标题和描述
Context
- 当前分支: !
git branch --show-current - 远程地址: !
git remote get-url origin 2>/dev/null - 与 develop 的差异提交: !
git log origin/develop..HEAD --oneline 2>/dev/null || git log develop..HEAD --oneline 2>/dev/null - 变更文件统计: !
git diff origin/develop --stat 2>/dev/null || git diff develop --stat 2>/dev/null - 提交详情: !
git log origin/develop..HEAD --format="%s%n%b---" 2>/dev/null | head -50
Workflow
Step 1: 确定目标分支
检查当前分支类型:
| 当前分支 | 目标分支 |
feature/* | develop |
bugfix/* | develop |
hotfix/* | main |
release/* | main |
如果用户指定了目标分支,使用指定的分支。
Step 2: 分析变更
从 Context 中的提交记录分析:
- 提取变更类型:统计 feat/fix/refactor 等
- 识别主要变更:最重要的 1-3 个功能点
- 统计影响范围:变更文件数、代码行数
Step 3: 合规检查
📋 PR 合规检查:
├─ [✓/✗] 分支命名规范
├─ [✓/✗] 目标分支正确(非直接 PR 到 main)
├─ [✓/✗] 无敏感文件
├─ [✓/!] 变更规模(大变更建议拆分)
├─ [?] 是否关联 Issue
└─ [?] 是否涉及数据库变更警告情况:
- 变更超过 500 行:建议拆分
- 检测到 migration 文件:提示需要 DBA 审批
- 目标是 main 但非 hotfix:警告
Step 4: 生成 PR 内容
输出以下格式,用户可直接复制:
╭─────────────────────────────────────────────────────╮
│ 🔀 Pull Request 准备完成 │
╰─────────────────────────────────────────────────────╯
📊 变更概览:
分支: feature/user-auth → develop
提交: 5 个
文件: 8 个 (+356, -42)
⚠️ 注意事项:
• 变更较大,建议重点 review auth.py
═══════════════════════════════════════════════════════
📋 复制以下内容到 PR:
═══════════════════════════════════════════════════════
## 标题
feat(auth): 实现用户认证模块
## 描述
### 🎯 变更目的
实现用户注册和登录功能,支持 JWT 认证。
### 📝 主要变更
- 新增用户注册接口 `POST /api/v1/users/register`
- 新增用户登录接口 `POST /api/v1/users/login`
- 实现 JWT token 生成和验证
- 添加认证中间件
- 补充单元测试
### 🔗 关联
Closes #123
### ✅ 自检清单
- [x] 代码符合项目规范
- [x] 添加/更新了测试
- [x] 本地测试通过
- [ ] 更新了相关文档
═══════════════════════════════════════════════════════Error Handling
| 情况 | 处理 |
| 当前在 main/develop | ❌ 当前在 develop 分支,无需创建 PR |
| 无差异提交 | ❌ 当前分支与 develop 无差异 |
| 无法获取远程 | 跳过链接生成,其他正常输出 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

