技能 pr-template-generator
📝

pr-template-generator

安全 🌐 网络访问⚙️ 外部命令🔑 环境变量

產生專業的 PR 描述

建立全面的 pull request 描述,幫助審核者快速理解變更並提高程式碼審核品質。為功能、錯誤修復和重構產生結構化範本,包含檢查清單和上下文。

支持: Claude Codex Code(CC)
⚠️ 68
1

下载技能 ZIP

2

在 Claude 中上传

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

3

开启并开始使用

测试它

正在使用“pr-template-generator”。 Generate a PR description for a feature that adds email notifications

预期结果:

  • Title: feat: Add email notification system for order updates
  • Summary: Implements email notifications for order status changes
  • Motivation: Users need email alerts when order status changes
  • Changes: Added notification service, email templates, scheduled jobs
  • Testing: Unit tests added, manual testing completed in staging
  • Checklist: Code follows style guidelines, docs updated, no breaking changes

正在使用“pr-template-generator”。 Create a bug fix PR for a login issue

预期结果:

  • Title: fix: Resolve login redirect loop for OAuth users
  • Summary: Fixes redirect issue when users login with Google OAuth
  • Root Cause: Session cookie set before token validation completed
  • Impact: 200+ users affected, cannot access the platform
  • Testing: Verified fix with affected user accounts

正在使用“pr-template-generator”。 Document a refactoring change

预期结果:

  • Title: refactor: Extract payment processing to separate module
  • Summary: Improves code organization by separating payment concerns
  • Before: 1200 lines in single file with mixed concerns
  • After: 12 files with clear separation of concerns
  • Benefits: 87% test coverage, easier to maintain and extend

安全审计

安全
v5 • 1/16/2026

Pure prompt-based skill providing PR documentation guidelines. Contains no executable code, file access, network operations, or credential handling. All static findings are false positives from documentation examples being misinterpreted as code.

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

质量评分

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

你能构建什么

記錄功能新增

為新功能建立詳細的 PR 描述,包含動機、實作細節和測試策略。

追蹤錯誤修復詳情

記錄錯誤修復,包含根本原因分析、影響評估和部署考量。

審查程式碼重構

產生全面的重構文件,包含架構變更和遷移指南。

试试这些提示

簡單 PR
@pr-template-generator Generate a pull request description for a feature that adds user authentication with OAuth support.
錯誤修復
@pr-template-generator --type bugfix Create a PR description for fixing a memory leak in the websocket handler.
重構
@pr-template-generator --type refactor Generate documentation for refactoring the payment processing module.
完整 PR
@pr-template-generator --include-screenshots Create a comprehensive PR description for a UI overhaul.

最佳实践

  • 在每個描述中包含問題陳述和解決方案方法
  • 為程式碼庫的視覺變更添加螢幕截圖或圖表
  • 連結相關問題並清楚說明重大變更給審核者

避免

  • 在 PR 描述中使用模糊的標題,如「更新程式碼」或「修復問題」
  • 跳過測試資訊和審核者的檢查清單項目
  • 假設審核者有完整的變更上下文而無需解釋

常见问题

哪些平台支援此技能?
此技能可與 Claude、Codex 和 Claude Code 搭配使用。使用 @pr-template-generator 來叫用它。
這可以產生哪些類型的 PR?
它會為功能、錯誤修復、重構、文件更新和效能改進產生範本。
它會連線到 GitHub 或 GitLab 嗎?
不會,此技能會根據您的輸入產生描述。它不會直接存取儲存庫或 API。
我的程式碼或資料會被分享到任何地方嗎?
不會。此技能完全在您的 AI 會話中執行。不會將資料傳輸到外部伺服器。
我可以自訂範本嗎?
可以,您可以使用旗標擴充提示,例如 --type、--include-screenshots 或 --minimal 來自訂輸出。
這與 GitHub PR 範本有何不同?
GitHub 範本提供靜態表單。此技能會根據您的特定變更產生動態、上下文感知的描述。

开发者详情

文件结构

📄 SKILL.md