技能 github-pr-creation
🔀

github-pr-creation

安全 🌐 网络访问⚙️ 外部命令

建立 GitHub Pull Request 並進行驗證

建立格式正確的 Pull Request 需要時間和細心。此技能透過驗證任務、執行測試並自動產生 Conventional Commits 訊息來自動化 PR 建立流程。

支持: Claude Codex Code(CC)
📊 69 充足
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“github-pr-creation”。 Create a PR from my feature branch to develop

预期结果:

  • Analyzing commits...
  • Running tests (make test)...
  • Generating PR title: feat(auth): add OAuth2 login support
  • Suggested labels: feature, enhancement
  • Ready to create PR. Confirm to proceed?

正在使用“github-pr-creation”。 Create a bugfix PR for the login issue

预期结果:

  • Analyzing commits...
  • Running tests (npm test)...
  • Generating PR title: fix(auth): resolve session timeout bug
  • Suggested labels: bug, bugfix
  • Breaking change: none detected
  • Ready to create PR. Confirm to proceed?

正在使用“github-pr-creation”。 Create a release PR from develop to main

预期结果:

  • Analyzing commits...
  • Running tests (pytest)...
  • Generating PR title: release: v2.0.0
  • Suggested labels: release
  • Commits included: 15 features, 3 fixes
  • Ready to create PR. Confirm to proceed?

安全审计

安全
v5 • 1/16/2026

Pure documentation-based skill with no executable code. The static analyzer produced false positives by misinterpreting markdown documentation examples as shell commands and YAML text as cryptographic patterns. All shell commands shown are instructional examples within code fences for AI workflow guidance. No actual command execution, network calls, or cryptographic operations exist in this skill.

2
已扫描文件
347
分析行数
2
发现项
5
审计总数
审计者: claude 查看审计历史 →

质量评分

38
架构
100
可维护性
85
内容
21
社区
100
安全
91
规范符合性

你能构建什么

功能 PR 工作流程

自動建立功能分支的 PR,包含正確的 Conventional Commits 格式和驗證

發布 PR 建立

從 develop 分支產生到 main 分支的發布 PR,採用標準化格式

錯誤修復 PR 提交

建立錯誤修復的 Pull Request,包含適當的標籤和重大變更偵測

试试这些提示

建立功能 PR
Create a PR from my current branch to develop. Use the github-pr-creation skill.
建立錯誤修復 PR
Create a PR for this fix to the develop branch. Include bug and bugfix labels.
建立發布 PR
Create a release PR from develop to main. Verify all tests pass first.
自訂 PR 含情境說明
Create a PR with custom labels and extended description covering the following changes: [describe your changes]

最佳实践

  • 建立 PR 前務必確認目標分支
  • 先執行測試以確保程式碼品質
  • 使用 Conventional Commits 確保 PR 標題一致性

避免

  • 未審查產生的內容就建立 PR
  • 在 PR 提交前跳過測試驗證
  • 未與使用者確認分支名稱

常见问题

哪些工具支援此技能?
適用於 Claude、Codex 和 Claude Code。需要安裝 GitHub CLI (gh)。
支援哪些測試框架?
支援 Makefile、npm test 和 pytest。可在專案設定中新增自訂測試指令。
這會修改我的程式碼嗎?
不會。此技能僅執行唯讀分析,且只在您確認後才建立 PR。
我的資料安全嗎?
是的。不會對外傳送任何資料。所有 git 操作都在您的機器上本地執行。
為什麼需要 GitHub CLI?
GitHub CLI 提供安全的認證和 PR 建立功能,不會在 URL 中暴露權杖。
這與預設的 PR 建立有何不同?
此技能新增了驗證、Conventional Commits 格式化和自動標籤建議功能。