pr-prepare
自動準備拉取請求描述
撰寫清晰的 PR 描述需要時間和一致性。此技能會自動收集 git 上下文、分析變更,並按照傳統提交格式產生標準化的 PR 描述。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“pr-prepare”。 Prepare the PR for this feature branch
预期结果:
- Suggested Title: feat: add user authentication with OAuth2
- ## Summary
- Add OAuth2 authentication supporting Google and GitHub providers.
- ## Changes
- - auth/oauth.py: OAuth2 client with token refresh
- - api/routes/auth.py: Login, logout, callback endpoints
- - models/user.py: User model with OAuth fields
- ## Impact
- - Users can sign in with Google or GitHub
- - Secure session management with httponly cookies
- - No breaking changes
正在使用“pr-prepare”。 Prepare a PR for this bug fix
预期结果:
- Suggested Title: fix: resolve null pointer in user lookup
- ## Summary
- Fixed null pointer exception when looking up users that do not exist in the database.
- ## Changes
- - services/user.py: Added null check before accessing user properties
- - tests/user_test.py: Added test cases for missing user scenarios
- ## Impact
- - Prevents crashes on invalid user lookups
- - Graceful error handling for missing users
- - No breaking changes to existing functionality
正在使用“pr-prepare”。 Create a PR description for the documentation updates
预期结果:
- Suggested Title: docs: update API documentation with new endpoints
- ## Summary
- Updated API documentation to include new authentication endpoints and rate limiting information.
- ## Changes
- - docs/api.md: Added new endpoint documentation
- - docs/auth.md: Updated authentication flow diagrams
- ## Impact
- - Improved developer experience
- - No code changes, only documentation
安全审计
低风险This skill is a documentation generator that provides workflow instructions for preparing PR descriptions. The static scanner flagged 56 issues, but ALL findings are FALSE POSITIVES. The scanner misinterpreted SHA256 cryptographic hashes as 'weak cryptographic algorithms,' standard git commands as 'shell execution threats,' and metadata URLs as 'network indicators.' The skill contains only documentation markdown with no actual code, no network calls, no data exfiltration, and no malicious functionality.
风险因素
⚙️ 外部命令 (1)
质量评分
你能构建什么
簡化 PR 工作流程
無需記憶模板或手動執行 git 指令,即可產生一致、專業的 PR 描述
強制執行文件標準
確保團隊的所有 PR 都包含標準化的摘要、變更清單和影響評估
提升貢獻品質
幫助貢獻者撰寫清晰的 PR 描述,使程式碼審查更加快速有效
试试这些提示
Prepare the PR for this branch. Include a summary, changes, impact, and testing notes.
Create a PR description for this feature branch. What components changed and what benefits does this provide?
Prepare a PR describing this bug fix. Include what was broken, what changed, and how it was tested.
Generate a comprehensive PR description. Analyze all changes, identify breaking impacts, and suggest testing requirements.
最佳实践
- 在完成變更後、推送前執行此技能,以確保乾淨的 git 狀態
- 審查產生的描述,並新增任何特定情境的詳細資訊
- 使用傳統提交格式作為 PR 標題以保持一致性
避免
- 對未包含在 PR 中的未提交變更使用此技能
- 複製輸出而不審查其準確性
- 在建立 PR 之前跳過測試清單項目