pull-requests
できること
このガイドは、明快な構成で、読みやすい文章のプルリクエストの説明を書く方法をまとめたものです。対象は、プルリクエストを出し、レビューする人が素早く理解できるようにしたい開発者です。
使う場面
- ✓エージェントにプルリクエストの説明を書いたり編集したりするよう頼むとき。
- ✓コードを書いていないレビューする人のために、マージリクエストを説明したいとき。
- ✓他の人が変更を自分で確かめる方法を説明する必要があるとき。
スキルのリンク
https://github.com/cloudflare/computer/blob/main/.agents/skills/pull-requests/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“これらの変更のプルリクエストの説明を書いてください。ローカルでのテスト方法も含めてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは構成を定めます。問題、解決策、変更の確認方法、テストの方針、ドキュメントの変更です。短い段落を好み、説明が文章より分かりやすいときは、リストよりも例やダイアグラムを使います。コミットメッセージには適用されません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Pull Request + Merge Request Style Guide
Overview
A good pull request description is a Markdown document that tells the story of the accompanying git diff. It is intended for human consumption and should use plain language, read clearly and be easy to follow.
When to Use
Use this skill any time you are tasked with creating a pull request on GitHub. The output will be a markdown document that follows the style guide and meets the accompanying verification.
Structure
A good pull request tells the story of the change and is intended to add color and context that is not or cannot be conveyed in the source code.
It should aim to be concise and use paragraphs and prose where appropriate rather than bullet points to improve readability and tell the story. Bullet points can be used for lists when semantically appropriate.
Code examples and diagrams (using mermaid) are preferred over prose to communicate your message.
It should use the following structure and include a paragraph on each topic.
- Detail the problem the change is solving. Reference issues, PRs or documents if relevant.
- Explain the solution and how it solves the problem.
- Explain how the reader can manually verify the change. e.g. give a code example or a command to run locally.
- Document the testing strategy when applicable.
- Document any changes to documentation or READMEs that cover the changes.
- Document any follow up code changes required.
Any sections that are not relevant should be omitted.
Style guide
It is important to follow these rules when writing a pull request description.
At all times keep the use of language simple. Use plain English
Good: Clear
We've updated the
readFile()method to support streaming data so that the caller can read a file without buffering content into memory.
Bad: Verbose and technical jargon
The
readFile()function has an overload that when used returns aReadableStream()object that emits chunks ofUInt8Arraytype that can be used by the caller to stream bytes instead of base64 strings which are held in memory.
Avoid technical terms or jargon
Good:
The daemon now flushes pending writes before it tears down the mount.
Bad:
The daemon now performs a synchronous fsync barrier against the underlying inode cache before invoking the FUSE unmount ioctl.
Never use acronyms, always use the full word unless it's extremely common like API, RPC or HTTP
Good:
We've updated the durable object (DO) to use RPC to reduce the time-to-first-byte (TTFB)
Bad:
We've updated the DO to use RPC to reduce TTFB.
Keep it high level
Describe what the code cannot. Architecture, design decisions, important trade-offs are the important details. Do not attempt to describe what the code is doing, the code itself can do that.
Good:
This change extends the same call site to accept a name option. When set, the SDK provisions a named Cloudflare Tunnel under a zone the user controls and binds <name>.<zone> to the local port. Quick and named tunnels share the same entry point, the same TunnelInfo shape (now a discriminated union keyed on name), and the same destroy() semantics
Bad:
This change extends
tunnels.tsto update theget()method to accept a name option{ name: "bill" }. When set, the SDK provisions a named Cloudflare Tunnel viacloudflaredrunning viaBun.spawn()under a zone the user controls and binds <name>.<zone> to the local port. Quick and named tunnels share the same entry pointsandbox.tunnels, the sameTunnelInfoshape (now a discriminated union keyed on nameNamedTunnelInfo | QuickTunnelInfo), and the same destroy() semantics.
Use American English spelling at all times
e.g. color instead of colour.
Never refer to agent conversations or chat history when writing plans, documentation or commit/pull requests
Good:
Further work will be required to update the remaining file methods to support streaming data.
Bad:
Streaming in
writeFile()will be implemented as part of the P2 plan to update the remaining methods.
Never reference local files or documents that are not contained within the commit history in the repository
Good:
Further work will be required to update the remaining file methods to support streaming data.
Bad:
The plan for the
writeFile()changes as detailed in P2 in PLAN.md
Markdown
Format the pull request using Github flavored
よくある質問
コミットメッセージも対象ですか?
いいえ。ガイドは、コミットメッセージには適用しないとしています。
すべての節を段落にすべきですか?
ガイドは、各トピックに段落を一つ求め、リストは適している場合にだけ使うとしています。
ダイアグラムを勧めますか?
はい。文章より多くを説明できる場合は、コード例やダイアグラムを優先します。
詳細
作者による元の説明
Describes how to write pull/merge requests. Use when asked to write or edit a pull request or merge request description. This skill is not relevant to commit messages.
repo: cloudflare/computer
人気
- GitHubのスター
- 9.8k
- ランキング
- #12207
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
cloudflare
9.8kエージェントが、作業を始める前に、Workers、Durable Objects、wranglerなどのための、適切なCloudflareのプラットフォームのガイドを案内します。
prose
9.8kエージェントに、コードのコメント、コミットメッセージ、READMEやドキュメントで平易な英語を書く方法を教えます。専門用語、頭字語、お役所的な言い回しを避けます。
test-driven-development
9.8kエージェントに、コードを変える前に、失敗するテストを先に書く方法を教えます。バグもテストで先に再現します。変更が本当に動くことを確かめる助けになります。
gardener-tasks
9.8kGitHub Actionsから実行されるAIのメンテナンスの仕事を定めた、Gardenerのタスクファイルの書き方と確認の方法を、各仕事が変えてよいものへの制限とともに説明します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。