pull-requests
ما الذي تفعله
يشرح هذا الدليل كيف تكتب وصف طلب الدمج بنثر واضح ومقروء ببنية محددة. وهو مخصص للمطورين الذين يفتحون طلبات الدمج ويريدون أن يفهمها المراجعون بسرعة.
متى تستخدمها
- ✓عندما تطلب من وكيلك كتابة وصف طلب دمج أو تعديله.
- ✓عندما تريد شرح طلب دمج لمراجعين لم يكتبوا الشيفرة.
- ✓عندما تحتاج إلى شرح كيف يتحقق شخص من تغيير بنفسه.
رابط المهارة
https://github.com/cloudflare/computer/blob/main/.agents/skills/pull-requests/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“اكتب وصف طلب الدمج لهذه التغييرات، واشرح كيف أختبرها محليًا.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تحدد المهارة بنية: المشكلة، والحل، وكيفية التحقق من التغيير، ومنهج الاختبار، وأي تغييرات في الوثائق. وتفضّل الفقرات القصيرة والأمثلة والمخططات على القوائم الطويلة. ولا تنطبق على رسائل الإيداع.
المحتوى التقني (ملف 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
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
cloudflare
9.8kيوجّه وكيلك إلى دليل Cloudflare المناسب لـ Workers وDurable Objects وwrangler والخدمات الأخرى قبل أن يبدأ العمل.
prose
9.8kيعلّم وكيلك الكتابة بلغة إنجليزية بسيطة في تعليقات الشيفرة ورسائل الإيداع وملفات README والوثائق، ويتجنب المصطلحات المتخصصة والاختصارات وأسلوب الشركات.
test-driven-development
9.8kيعلّم وكيلك كتابة اختبار يفشل قبل تغيير الشيفرة، وإعادة إنتاج الخطأ باختبار أولًا. يساعد على إثبات أن التغييرات تعمل فعلًا.
gardener-tasks
9.8kيشرح كيف تكتب ملفات مهام Gardener وتتحقق منها، وهي مهام صيانة آلية بالذكاء الاصطناعي تعمل من GitHub Actions، مع حدود لما يمكن أن تغيّره كل مهمة.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.