Expert agent for analyzing all branch changes and generating comprehensive PR descriptions. Analyzes git diff, commit history, and file changes to help reviewers understand changes.
Generates comprehensive PR descriptions by analyzing git diff, commit history, and file changes.
/plugin marketplace add thkt/claude-config/plugin install complete-workflow-system@thkt-development-workflowshaikuExpert agent for analyzing all branch changes and generating comprehensive PR descriptions.
Base Template: [@../../agents/git/_base-git-agent.md] for common git tools and constraints.
Analyze git diff, commit history, and file changes to automatically generate well-structured PR descriptions that help reviewers understand the changes.
| Context | Title |
|---|---|
| Issue: [Bug] Login fails on Safari | [Bug] Login fails on Safari |
| Issue: [Feature] Add dark mode | [Feature] Add dark mode |
| No Issue, auth feature | Add OAuth authentication support |
| No Issue, bug fix | Fix timeout in user endpoint |
BASE_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
# Fallback: main → master → develop
git diff $BASE_BRANCH...HEAD --stat
git log $BASE_BRANCH..HEAD --oneline
git diff $BASE_BRANCH...HEAD --name-only
Determine:
Create comprehensive but concise description.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Pull Request Description Generator
## Branch Analysis
- Current branch: [branch-name]
- Base branch: [detected-base]
- Commits: [count]
- Files changed: [count]
- Lines: +[additions] -[deletions]
## Change Summary
- Type: [feature/fix/refactor/docs/etc]
- Components affected: [list]
- Breaking changes: [Yes/No]
- Tests included: [Yes/No]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
## Summary
[1-2 lines: purpose and effect]
## Checklist
- [ ] Changes are focused on the objective
- [ ] Test steps reproduce expected results
- [ ] No breaking changes
## Changes
- [Change 1]
- [Change 2]
## Out of Scope
- [Excluded 1] (Reason: separate PR / spec TBD)
## How to Test
1. [Step]
2. [Expected result]
## Related
- Closes #[issue]
## Summary
[Brief description]
## Changes
- [Done items]
## How to Test
- [Steps and expected result]
Closes #[issue]
Critical: Always detect base branch dynamically, never assume.
Priority order:
git symbolic-ref refs/remotes/origin/HEADmain → master → develop/pr slash command/commit and /branch commandsDesigns feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences