pr — community agent-resources-legacy, community, ide skills

v1.0.0

关于此技能

非常适合需要自动化生成拉取请求描述的代码审查代理,具有git diff和gh CLI集成。 Generate comprehensive PR descriptions from git diffs. Use when creating or updating pull requests, when asked to write a PR description, or when the user says pr, /pr, or asks for help with their pull request. Analyzes staged/unstaged changes and commit history to produce thorough, reviewer-friendly descriptions.

kasperjunge kasperjunge
[9]
[0]
更新于: 1/9/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 7/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
7/11
Quality Score
51
Canonical Locale
en
Detected Body Locale
en

非常适合需要自动化生成拉取请求描述的代码审查代理,具有git diff和gh CLI集成。 Generate comprehensive PR descriptions from git diffs. Use when creating or updating pull requests, when asked to write a PR description, or when the user says pr, /pr, or asks for help with their pull request. Analyzes staged/unstaged changes and commit history to produce thorough, reviewer-friendly descriptions.

核心价值

赋予代理使用Claude Code技能生成高质量的拉取请求描述的能力,通过自动化的git diff分析和gh CLI集成简化代码审查流程,实现无缝的PR创建。

适用 Agent 类型

非常适合需要自动化生成拉取请求描述的代码审查代理,具有git diff和gh CLI集成。

赋予的主要能力 · pr

使用git diff自动化拉取请求描述的生成
使用gh CLI为功能分支生成PR描述
使用Claude Code技能简化代码审查工作流程

! 使用限制与门槛

  • 需要安装git和gh CLI
  • 仅限于GitHub仓库
  • 需要集成Claude Code技能

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The page lacks a strong recommendation layer.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

评审后的下一步

先决定动作,再继续看上游仓库材料

Killer-Skills 的主价值不应该停在“帮你打开仓库说明”,而是先帮你判断这项技能是否值得安装、是否应该回到可信集合复核,以及是否已经进入工作流落地阶段。

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

pr 是什么?

非常适合需要自动化生成拉取请求描述的代码审查代理,具有git diff和gh CLI集成。 Generate comprehensive PR descriptions from git diffs. Use when creating or updating pull requests, when asked to write a PR description, or when the user says pr, /pr, or asks for help with their pull request. Analyzes staged/unstaged changes and commit history to produce thorough, reviewer-friendly descriptions.

如何安装 pr?

运行命令:npx killer-skills add kasperjunge/agent-resources-legacy/pr。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

pr 适用于哪些场景?

典型场景包括:使用git diff自动化拉取请求描述的生成、使用gh CLI为功能分支生成PR描述、使用Claude Code技能简化代码审查工作流程。

pr 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

pr 有哪些限制?

需要安装git和gh CLI;仅限于GitHub仓库;需要集成Claude Code技能。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add kasperjunge/agent-resources-legacy/pr。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    pr 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

pr

安装 pr,这是一款面向AI agent workflows and automation的 AI Agent Skill。查看评审结论、使用场景与安装路径。

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

PR Description Generator

Generate pull request descriptions that reviewers will love.

Workflow

  1. Gather context (diff, commits, related files)
  2. Analyze the changes (what changed, why it matters)
  3. Generate description following the template
  4. Present to user for approval
  5. Offer to create PR using gh CLI

Step 1: Gather Context

Run these commands to understand the changes:

bash
1# Get the diff (staged + unstaged) 2git diff HEAD 3 4# If on a feature branch, get diff from main 5git diff main...HEAD 6 7# Get recent commits on this branch 8git log main..HEAD --oneline 9 10# Get commit messages with bodies 11git log main..HEAD --format="%B---"

Step 2: Analyze Changes

For each changed file, identify:

  • What: The technical change made
  • Why: The purpose/motivation (infer from context, commit messages, code comments)
  • Impact: What this affects (features, performance, security, etc.)

Look for clues in:

  • Commit messages
  • Code comments (especially TODOs resolved)
  • Test files (they reveal intent)
  • Related documentation changes

Step 3: Generate Description

Use this template:

markdown
1## Summary 2 3[1-2 sentences: What does this PR do and why?] 4 5## Changes 6 7[Bullet list of key changes, grouped logically] 8 9- **[Area/Component]**: [What changed] 10- **[Area/Component]**: [What changed] 11 12## Testing 13 14[How was this tested? What should reviewers verify?] 15 16- [ ] Unit tests pass 17- [ ] Manual testing of [specific flows] 18- [ ] [Any other relevant checks] 19 20## Notes for Reviewers 21 22[Optional: Anything reviewers should pay attention to, questions you have, or context that helps review] 23 24--- 25 26<sub>📋 PR description generated with [agent-resources](https://github.com/kasperjunge/agent-resources)`uvx add-skill kasperjunge/pr`</sub>

Quality Standards

Summary

  • Lead with the WHY, not just the WHAT
  • Be specific: "Fix login timeout" > "Fix bug"
  • One PR = one purpose (if not, note it)

Changes

  • Group related changes together
  • Highlight breaking changes prominently
  • Note any migrations or setup steps needed

Testing

  • Be specific about what was tested
  • Include manual testing steps if relevant
  • Note any areas that need extra review attention

Examples

Good Summary

Add rate limiting to authentication endpoints to prevent brute force attacks. Limits to 5 attempts per minute per IP, with exponential backoff.

Bad Summary

Fix auth issues

Good Changes Section

markdown
1## Changes 2 3- **Auth**: Add rate limiter middleware with Redis backend 4- **Config**: New `RATE_LIMIT_*` environment variables 5- **Tests**: Add rate limiting integration tests 6- **Docs**: Update API documentation with rate limit headers

Bad Changes Section

markdown
1## Changes 2 3- Changed auth.ts 4- Changed config.ts 5- Added tests

Handling Edge Cases

Large PRs: Group changes by feature/area, add a "Overview" section at top

Refactoring PRs: Emphasize that behavior is unchanged, note what was restructured and why

Bug fixes: Include what was broken, root cause, and how the fix addresses it

Dependencies: Note any new dependencies and why they were chosen

Step 4: Offer to Create PR

After presenting the generated description to the user, ask if they want to create the PR using gh:

Would you like me to create the PR now using gh?

If the user accepts:

  1. Check if the current branch is pushed to remote:

    bash
    1git rev-parse --abbrev-ref --symbolic-full-name @{u}
  2. If not pushed, offer to push first:

    bash
    1git push -u origin HEAD
  3. Create the PR using gh:

    bash
    1gh pr create --title "[PR title from summary]" --body "[generated description]"
  4. Report the PR URL back to the user

Options to offer

When asking about PR creation, present these options:

  • Create PR - Create as draft or ready for review
  • Create as draft - gh pr create --draft
  • Copy to clipboard - Just copy the description (if user prefers to create manually)

Error handling

  • If gh is not installed, inform the user: "The GitHub CLI (gh) is not installed. You can install it from https://cli.github.com/ or copy the description above to create the PR manually."
  • If not authenticated, guide them to run gh auth login
  • If there are uncommitted changes, warn before proceeding

相关技能

寻找 pr 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

为prompts.chat的信息反馈系统生成可定制的插件小部件

149.6k
0
AI

flags

Logo of vercel
vercel

React 框架

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

Python中具有强大GPU加速的张量和动态神经网络

98.6k
0
开发者工具