writing-pr-descriptions
Qué hace
Esta skill da forma al texto de una pull request para que quien la revisa entienda el problema y el cambio sin leer cada línea de código. Está pensada para desarrolladores que quieren revisiones de código más rápidas y claras.
Cuándo usarla
- ✓Cuando vas a abrir una pull request y necesitas escribir su descripción.
- ✓Cuando necesitas actualizar la descripción de una pull request sin perder sus capturas o enlaces.
- ✓Cuando una persona que revisa encuentra difícil de entender una pull request y quieres mejorar el texto.
Link de la skill
https://github.com/PostHog/posthog/blob/master/.agents/skills/writing-pr-descriptions/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Escribe una descripción clara de la pull request para mi cambio, que explique el problema y lo que he cambiado.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Empieza por el problema y a quién afecta, tomados de una fuente real y no adivinados. Después describe el efecto visible y los cambios clave, mantiene el texto breve y fácil de leer, y lo revisa antes de publicarlo.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Writing PR descriptions
A reviewer scans a description in seconds and decides where to spend attention. The body is a scanning surface, not an essay, and it has to stand without the diff. A body that narrates the code, or that would fit any PR equally well, teaches its reader to skip the next one.
Order decides whether they understand the change at all. Form and length only decide how fast. So get the order right first, and never buy shape at the cost of it.
Work in five passes: lead, route, cut, shape, check. Run all five. When a body already exists, pass 0 comes first.
Pass 0: keep what the body already holds
gh pr edit --body replaces the whole body, so every part of your draft that has no home is gone the moment you push it.
An existing body holds work you cannot recreate: screenshots and recordings a person uploaded, links they collected, a checkbox they ticked, a note to a named reviewer.
Read the current body and edit it, rather than writing a fresh one over the top:
gh pr view <number> --json body --jq .body > pr-body.md
# edit pr-body.md
gh pr edit <number> --body-file pr-body.md
Carry every image, video, link and ticked box into the new body, under the heading it belongs to, and add the heading when your draft has none. Replace one only when the change made it wrong, and say in the body that you replaced it.
Pass 1: lead with the need
The first line is the one line you can count on being read. You just spent an hour inside the mechanism, so the mechanism comes out first. Push it down and spend that line on the need that caused the work.
- Line 1 of Problem says who is affected and what is wrong for them today. Name the surface or workflow they were on. Four shapes cover almost every PR:
- A fix: what breaks, and for whom.
- A feature: what the person is trying to get done, and what stands in the way. "Analysts who join tables in the SQL editor recompute the same derived column in every query."
- A refactor, a chore or an enabling change: who is blocked, what it costs them, or what class of failure it removes. Nobody sees it, but somebody is waiting.
- A follow-up or a layer in a stack: what the earlier PR left undone, and what this one adds. Link that PR and assume nobody read it.
- Problem must stay true if the author picks a different solution. A missing version of your solution is not a problem: "there is no PDF export" is Changes with a "not" in it.
- Take the need from a source: the request, a linked issue, a thread, a measurement. The writer of a body often has only the diff. Never invent an actor, a cost, or a frequency to make the line read better. When no source gives the reason, say so in one line, so the reviewer knows to ask.
- If line 1 opens with a symbol, a file path, a class, or a setting, you led with the mechanism. Rewrite it.
- Size the problem in one clause where you know it: how many teams, how often, since when.
- The mechanism follows, in the order a reviewer has to check it.
- The first bullet of Changes is the change itself. Renames, regenerated snapshots and comment fixes go last.
- Every Changes bullet a person can notice says what they now see or do differently, then the mechanism under it. One user-facing line in Problem does not discharge this.
- Say in one line which part of Changes is mechanical. A reviewer cannot otherwise tell a purely internal change from a visible one you described as internal.
- If one part of the diff is riskier than the rest, name that part and say the rest is mechanical.
Most of the time you already wrote the need and put it third. Move it up rather than writing a new sentence.
Line 1 can be a bullet or a standalone sentence, whichever reads faster, but one sentence and never a paragraph.
Solution-shaped problems
❌ The dashboard has no PDF export.
✅ Account managers rebuild weekly dashboard summaries in slides to send to customers (linked request).
✅ The request asks for a PDF export of a dashboard and gives no reason. (No source states the need, so the body says that and invents nothing.)
The first good version leaves room for more than one solution. The second is honest, and it tells the reviewer what to ask before approving.
Worked example
❌ The first three bullets, as written:
- The canvas runtime posts to the host with
port?.postMessage(...), so messages sent before the port exists are silently dropped.- The host delivers the MessagePort only after the artifact iframe's load event, w
Preguntas frecuentes
¿Inventará detalles sobre el problema?
No. Está pensada para usar la fuente real del problema, como un ticket o un informe, y no adivinar.
¿Mantiene las capturas y los enlaces existentes?
Sí. Lee primero la descripción actual y conserva las imágenes, los enlaces y las casillas marcadas cuando reemplaza el texto.
¿La descripción necesita un formato fijo?
No. Usa listas, tablas o diagramas solo cuando ayudan al lector.
Detalles
Descripción original del autor
Shapes a PR body so a reviewer can understand the problem and change quickly. Use ALWAYS before writing or editing a PR description, before `gh pr create` or `gh pr edit --body`, or when asked to improve a description. States who is affected and what is wrong for them in Problem, taken from a source and never invented, then the visible effect and mechanism in Changes. Selects bullets, tables, diagrams, screenshots, or collapsed blocks for each fact. Removes unnecessary detail and checks one fact per bullet, sentences under 25 words, active voice, and no idioms. Keeps the body complete without
repo: PostHog/posthog
Popularidad
- Estrellas en GitHub
- 41 mil
- Posición en el ranking
- #6820
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
depot-ci
41 milAyuda a tu agente a configurar y ejecutar flujos de Depot CI, una alternativa a GitHub Actions, y a leer los registros de ejecución.
depot-container-builds
41 milAyuda a tu agente a crear imágenes de Docker en los constructores remotos de Depot, incluidas las multiplataforma, y a corregir fallos.
depot-github-runners
41 milAyuda a tu agente a pasar los trabajos de GitHub Actions a runners gestionados por Depot, elegir su tamaño y etiquetas y resolver problemas de configuración.
editing-agents-md
41 milAyuda a tu agente a decidir si una regla debe ir en un archivo AGENTS.md o CLAUDE.md, y a escribirla para que se cumpla sin sobrecargar el archivo.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.