Agent skill
generate-pr-description
Generate a structured PR description from the diff. Fetches the diff, analyzes changes, and optionally applies the description.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/generate-pr-description
SKILL.md
Generate PR Description
Generate a structured pull request description by analyzing the diff.
Steps
- Fetch the PR diff using
gh pr diff <PR>. - Fetch the PR title using
gh pr view <PR> --json title --jq .title. - Analyze the diff and generate a description with these sections:
- ## Summary — 1-2 sentences on purpose and motivation
- ## Changes — bulleted list of logical changes
- ## Testing — suggested verification steps
- Show the generated description to the user.
- Ask the user if they want to apply it to the PR.
- If confirmed, apply via
gh pr edit <PR> --body "<description>".
Guidelines
- Keep descriptions under 500 words
- Use present tense ("Add", "Fix", "Update")
- Focus on intent and impact, not line-by-line details
- Do not repeat the PR title — provide additional context
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?