summary
Generate branch summaries for PR descriptions.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Summary
Generate concise summaries of changes made on the current branch for PR descriptions.
Requirements
- Must be in a git repository
- Must be on a branch (not main/master)
Execution
Create a short summary of changes made on this branch suitable for a PR description.
Scope: Current branch vs main
Steps
-
Verify branch context:
- Check current branch:
git branch --show-current - Ensure not on main/master (error if so)
- Check current branch:
-
Get changes:
- Run
git diff main...HEADto see all changes since divergence - Run
git log main..HEAD --onelineto see commit history
- Run
-
Analyze changes:
- Review the diff to understand what was changed
- Look at commit messages for context
- Identify the main purpose/theme of the changes
- Note key files/components modified
- Identify the type of change (feature/fix/refactor/docs/etc.)
-
Generate summary:
- Create a concise 2-4 sentence summary capturing:
- What was changed (high-level)
- Why it was changed (if evident from commits/diff)
- Any notable technical decisions or approaches
- Focus on "why" over "what" where possible
- Use clear, direct language
- Avoid technical jargon unless necessary
- Create a concise 2-4 sentence summary capturing:
-
Format for PR:
- Present the summary ready to paste into PR description
- Include list of key files changed (if helpful)
- Suggest test plan items if relevant
Output Format
## Summary
[2-4 sentence summary]
## Key Changes
- [Main change 1]
- [Main change 2]
- [Main change 3]
## Test Plan
- [ ] [Test item 1 if relevant]
- [ ] [Test item 2 if relevant]
Notes
- Keep it SHORT - PR descriptions should be scannable
- Focus on the "why" and "so what" over implementation details
- If the branch has many unrelated changes, call that out
- Suggest splitting the summary if changes are too diverse
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!