github-pr-description
できること
このスキルは、ブランチのコミットと変更を読み、プルリクエストの説明文を完全に書き、GitHubのコマンドラインツールでプルリクエストを作成します。説明文を手で書かずに、分かりやすい説明がほしい開発者向けです。
使う場面
- ✓プルリクエストを作る準備ができ、分かりやすい説明がほしいとき。
- ✓ブランチに、レビューする人に説明が必要な複数のコミットがあるとき。
- ✓説明に、何が変わったか、なぜか、どうテストするかを含めたいとき。
スキルのリンク
https://github.com/tailcallhq/forgecode/blob/main/crates/forge_repo/src/skills/github-pr-description/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のブランチのプルリクエストの説明文を書いて、プルリクエストを作成してもらえますか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、ブランチを確認し、コミットメッセージと差分を読み、変更の種類を選んで、説明文を書きます。その後、GitHubのツールでプルリクエストを作成します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Create PR Description
Generate comprehensive pull request descriptions and create PRs using GitHub CLI.
Workflow
1. Verify Prerequisites
Check that there are changes to create a PR for:
# Get current branch
git branch --show-current
# Verify branch is not main/master
# Verify there are commits ahead of main
git log origin/main..HEAD --oneline
If on main/master or no commits ahead, inform the user there's nothing to create a PR for.
2. Analyze Changes
Gather context about the changes:
# Get commit messages
git log origin/main..HEAD --pretty=format:"%s"
# Get diff summary (files changed)
git diff origin/main..HEAD --stat
# Get actual code changes (sample key files if diff is large)
git diff origin/main..HEAD
For large diffs: Focus on the most meaningful changes. Sample key files rather than reading everything.
3. Determine Change Type
Classify the PR into one of these categories:
- fix: Bug fixes, error corrections, resolving issues
- feature: New functionality, capabilities, or enhancements
- performance: Speed improvements, optimization, efficiency gains
- refactor: Code restructuring without changing behavior
- docs: Documentation changes
- test: Test additions or improvements
- chore: Maintenance tasks, dependencies, configuration
Base this on:
- Commit messages (keywords like "fix", "add", "optimize", "refactor")
- Nature of code changes (new files = feature, test fixes = fix, etc.)
- Scope of changes
4. Generate Description
Create a comprehensive description with this structure:
## Summary
[One sentence explaining what this PR does and why it matters]
## Context
[Background information, related issues, previous work, or the problem being solved]
## Changes
[High-level description of what changed]
### Key Implementation Details
[Technical details that help reviewers understand the approach, especially for complex changes]
## Use Cases
[Concrete examples of how this will be used - helps reviewers understand practical value]
## Testing
[How to test the changes - step-by-step instructions]
## Links
- Related issues: #123, #456
- Documentation: URL (if applicable)
- Original implementation: URL (if applicable)
Description Guidelines
Essential Elements:
- Summary: One clear sentence explaining the change and its value
- Context: Why this change was needed, what problem it solves
- Changes: What was actually changed at a high level
- Testing: How reviewers can verify the changes
Optional but Recommended:
- Implementation Details: For complex changes, explain the technical approach
- Use Cases: Concrete examples of how the feature will be used
- Links: Related issues, documentation, papers, or original implementations
- Known Issues: Any limitations or known problems
What to Avoid:
- Empty descriptions or just issue links
- Placeholder text like "Fixes #(issue)"
- File-by-file breakdowns (unless necessary)
- Low-level implementation details (keep it high-level)
- Boilerplate statements
- Personal checklists as the main description
Description Examples
Example 1: Feature Addition
## Summary
Add semantic code search to enable searching codebase by concepts and behavior rather than exact string matching.
## Context
Currently, users can only search using exact string matching, which makes it difficult to find code based on functionality or behavior. This has been a recurring request in issues #123 and #456.
## Changes
- Implemented semantic search using vector embeddings
- Integrated with existing search interface
- Added support for multiple concurrent queries with result aggregation
- Configurable search scope (entire codebase or specific directories)
### Key Implementation Details
Uses OpenAI embeddings for code representation and cosine similarity for matching. Index is built incrementally to support large codebases. Search results are reranked based on code context and usage patterns.
## Use Cases
- Find authentication flow without knowing exact function names
- Locate retry logic across the codebase
- Search for "database connection" patterns
## Testing
```bash
# Run the search service
npm run search:dev
# Test semantic queries
curl -X POST http://localhost:3000/search \
-H "Content-Type: application/json" \
-d '{"query": "user authentication"}'
Links
- Related issues: #123, #456
- Documentation: /docs/semantic
よくある質問
メインのブランチにいる場合はどうしますか?
メインのブランチからプルリクエストを作るものはないため、スキルは停止します。
大きな変更はどう扱いますか?
すべての行を読むのではなく、最も重要な変更に焦点を当てます。
GitHub CLIが必要ですか?
はい。プルリクエストの作成にghコマンドラインツールを使います。
詳細
作者による元の説明
Generate and create pull request descriptions automatically using GitHub CLI. Use when the user asks to create a PR, generate a PR description, make a pull request, or submit changes for review. Analyzes git diff and commit history to create comprehensive, meaningful PR descriptions that explain what changed, why it matters, and how to test it.
repo: tailcallhq/forgecode
人気
- GitHubのスター
- 7.6k
- ランキング
- #13118
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
create-agent
7.6kForgeのコーディングアプリ向けのカスタムエージェントを、先頭に設定があるMarkdownファイルとして作成または変更する方法をエージェントに教えます。
create-command
7.6kForgeのコーディングアプリ向けに、順番に実行される手順としてMarkdownで書く、再利用可能なコマンドを作る方法をエージェントに教えます。
create-github-issue
7.6kリポジトリ独自のIssueテンプレートに従い、適切な項目とラベルを付けたGitHubのIssueを作成するようエージェントを支援します。
create-plan
7.6kコードを変更する前に、手順、リスク、代替案を含む、複雑な作業の詳しい実装計画を書くようエージェントを支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。