技能 creating-pull-requests
⚠️ 67 差
1
下载技能 ZIP
2
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
3
开启并开始使用
测试它
正在使用“creating-pull-requests”。 Create a pull request titled 'Fix login timeout bug' with test checklist items: verify login works, check session expiry
预期结果:
- ✅ Pull request created successfully
- 📋 Title: Fix login timeout bug
- 🔗 https://github.com/owner/repo/pull/123
- 📍 Target branch: main
- 📝 Test checklist included with 2 items
安全审计
安全v3 • 1/10/2026
Pure prompt-based skill with no code execution beyond standard git and GitHub CLI operations. Uses only documented shell commands for branch checking, status review, and PR creation via gh CLI. No filesystem access beyond git repository, no environment variable reading, no network calls outside expected GitHub API endpoints.
1
已扫描文件
68
分析行数
0
发现项
3
审计总数
未发现安全问题
审计者: claude 查看审计历史 →
质量评分
38
架构
100
可维护性
83
内容
20
社区
100
安全
78
规范符合性
你能构建什么
簡化 PR 工作流程
使用一致的範本和測試清單快速建立文件完善的拉取請求
提交高品質的貢獻
產生專業的 PR 描述,幫助維護者更快地審查和合併貢獻
改善審查文檔
確保每個 PR 包含清晰的摘要和測試計劃,以實現更快、更有效的審查
试试这些提示
建立簡單的 PR
Create a pull request with the title '[Brief description]' describing my changes
包含測試清單的 PR
Create a pull request titled '[Feature name]' and include test checklist items: [Test item 1], [Test item 2]
非主要分支的 PR
Create a draft PR for my feature branch targeting the 'develop' branch with summary of changes
完整 PR 包含標籤
Create a pull request with title '[Your title]', base branch 'main', assign to me, add 'enhancement' label, and include this summary: [Your summary]
最佳实践
- 在建立 PR 之前執行 git status 並審查變更,確保只包含預期的修改
- 使用描述性的標題,在 60 個字元內概括變更內容,以獲得更好的可見性
- 填寫所有測試清單項目,幫助審查者了解需要什麼驗證
避免
- 在未先審查差異的情況下建立 PR 可能會包含非預期的變更
- 使用像 'fix' 或 'update' 這類模糊標題會使追蹤專案歷史中的變更變得更加困難
- 跳過測試計劃會使審查者難以驗證實作是否正確運作
常见问题
此技能是否適用於 GitLab 或 Bitbucket?
不,此技能使用 GitHub CLI (gh),僅適用於 GitHub 儲存庫。
GitHub CLI 需要什麼權限?
GitHub CLI 需要驗證和儲存庫範圍權限才能建立拉取請求。
我可以建立草稿拉取請求嗎?
可以,在建立 PR 時使用 --draft 標誌將其標記為需要更多工作的草稿。
我的程式碼或資料會被發送到任何地方嗎?
建立 PR 時,程式碼僅通過官方 gh CLI 發送到 GitHub。不會傳送至任何第三方服務。
如果 PR 建立失敗怎麼辦?
此技能會報告來自 gh CLI 的任何錯誤,例如權限問題或分支衝突。
這與手動建立 PR 有什麼不同?
此技能提供模板、自動化分支推送、確保一致的描述格式,並減少設定時間。