pull-requests
Skill này làm gì
Hướng dẫn này nêu cách viết mô tả pull request bằng văn xuôi dễ đọc và có cấu trúc rõ ràng. Dành cho lập trình viên mở pull request và muốn người rà soát hiểu nhanh.
Khi nào nên dùng
- ✓Khi bạn yêu cầu agent viết hoặc chỉnh sửa mô tả pull request.
- ✓Khi bạn muốn giải thích một merge request cho người rà soát không viết code.
- ✓Khi bạn cần giải thích cách người khác có thể tự kiểm tra một thay đổi.
Liên kết skill
https://github.com/cloudflare/computer/blob/main/.agents/skills/pull-requests/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Viết mô tả pull request cho các thay đổi này, kèm cách tôi có thể kiểm tra chúng trên máy cục bộ.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill đặt cấu trúc: vấn đề, giải pháp, cách xác minh thay đổi, cách tiếp cận kiểm thử và mọi thay đổi tài liệu. Skill ưu tiên đoạn văn ngắn, ví dụ và sơ đồ hơn danh sách dài. Nó không áp dụng cho commit message.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Có áp dụng cho commit message không?
Không. Hướng dẫn nói rõ nó không dành cho commit message.
Mỗi phần có phải là một đoạn văn không?
Hướng dẫn yêu cầu một đoạn cho mỗi chủ đề, và chỉ dùng danh sách khi phù hợp.
Có gợi ý dùng sơ đồ không?
Có. Ví dụ code và sơ đồ được ưu tiên khi chúng giải thích tốt hơn văn xuôi.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 9.8k
- Vị trí xếp hạng
- #12207
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
cloudflare
9.8kHướng agent của bạn đến đúng hướng dẫn nền tảng Cloudflare cho Workers, Durable Objects, wrangler và các dịch vụ khác trước khi bắt đầu làm việc.
prose
9.8kDạy agent của bạn viết bằng tiếng Anh đơn giản cho chú thích code, commit, README và tài liệu. Tránh biệt ngữ, từ viết tắt và lối văn rườm rà.
test-driven-development
9.8kDạy agent của bạn viết một bài kiểm thử thất bại trước khi sửa code, và tái hiện lỗi bằng kiểm thử trước. Giúp chứng minh các thay đổi thật sự hoạt động.
gardener-tasks
9.8kGiải thích cách viết và kiểm tra file tác vụ Gardener, là các job bảo trì AI chạy từ GitHub Actions, với giới hạn về những gì mỗi job được thay đổi.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.