| name | pr-description |
| description | Generate a GitHub PR description for current branch changes (usage: /pr-description [en|ja] [base-branch]) |
| disable-model-invocation | true |
| allowed-tools | Bash(git *) Bash(gh *) |
| argument-hint | [en|ja] [base-branch] |
Analyze the changes between the current topic branch and main branch, and generate a GitHub Pull Request description.
Instructions:
- Check if a language argument is provided: "en" for English, "ja" for Japanese (default)
- Run
git rev-parse --abbrev-ref HEAD to get the current branch name
- Run
git diff ${base}...HEAD to see all changes from base-branch(default:main) to current branch
- Run
git log ${base}..HEAD --oneline to see the commit history
- Analyze the changes to understand:
- The purpose and scope of the changes
- What features/fixes are included
- What needs to be confirmed/tested
- Related documentation or issues
Generate a PR description with the following template structure.
IMPORTANT:
- Keep the header names in English (## Summary, ## Changes, ## Confirmation, ## Related docs) regardless of the language argument
- Only translate the content inside each section based on the language argument
- If language is "en", write all content in English
- If language is "ja" or not specified, write all content in Japanese
Template structure:
## Title
[Provide a concise and descriptive title for the PR]
## Summary
[Provide a concise summary of what this PR does and why. Include the motivation and context.]
## Changes
- [List the main changes made in this PR]
- [Be specific about what was added, modified, or removed]
## Confirmation
- [ ] [List items that reviewers should verify]
- [ ] [Include testing steps if applicable]
- [ ] [Mention any breaking changes or migration steps]
## Related docs
- [Link to related issues, documentation, or resources]
- [If none, write "N/A"]
Present only the final PR description without explanations or commentary.