Aller au contenu
Skillpedia
Programmation générale9.8k · #12207

pull-requests

Ce qu’il fait

Ce guide explique comment rédiger une description de demande de fusion en prose simple et lisible, avec une structure claire. Il s'adresse aux développeurs qui ouvrent des demandes de fusion et veulent que les relecteurs les comprennent rapidement.

Quand l’utiliser

  • ✓Quand vous demandez à votre agent de rédiger ou de modifier une description de demande de fusion.
  • ✓Quand vous voulez expliquer une demande de fusion à des relecteurs qui n'ont pas écrit le code.
  • ✓Quand vous devez expliquer comment quelqu'un peut vérifier une modification par lui-même.

Lien du skill

https://github.com/cloudflare/computer/blob/main/.agents/skills/pull-requests/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/cloudflare/computer/blob/main/.agents/skills/pull-requests/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Rédige la description de la demande de fusion pour ces modifications, en indiquant comment je peux la tester en local.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La compétence fixe une structure : le problème, la solution, la manière de vérifier la modification, l'approche des tests et les changements de documentation. Elle privilégie les paragraphes courts, les exemples et les schémas aux longues listes. Elle ne s'applique pas aux messages de commit.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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.

  1. Detail the problem the change is solving. Reference issues, PRs or documents if relevant.
  2. Explain the solution and how it solves the problem.
  3. Explain how the reader can manually verify the change. e.g. give a code example or a command to run locally.
  4. Document the testing strategy when applicable.
  5. Document any changes to documentation or READMEs that cover the changes.
  6. 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 a ReadableStream() object that emits chunks of UInt8Array type 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.ts to update the get() method to accept a name option { name: "bill" }. When set, the SDK provisions a named Cloudflare Tunnel via cloudflared running via Bun.spawn() under a zone the user controls and binds <name>.<zone> to the local port. Quick and named tunnels share the same entry point sandbox.tunnels, the same TunnelInfo shape (now a discriminated union keyed on name NamedTunnelInfo | 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

Questions fréquentes

Couvre-t-elle aussi les messages de commit ?

Non. Le guide indique qu'il ne concerne pas les messages de commit.

Chaque section doit-elle être un paragraphe ?

Le guide demande un paragraphe sur chaque sujet, et les listes seulement lorsqu'elles sont pertinentes.

Suggère-t-il des schémas ?

Oui. Les exemples de code et les schémas sont préférés lorsqu'ils expliquent mieux que la prose.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
9.8k
Position au classement
#12207
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires