:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(agents): restore PR diagram guidance (#84749)
Raúl Negrón-Oterofdc9ee552beb
diff --git a/.agents/skills/writing-pr-descriptions/SKILL.md b/.agents/skills/writing-pr-descriptions/SKILL.mdindex f0f566e26ab4..d68ce654bfd8 100644--- a/.agents/skills/writing-pr-descriptions/SKILL.md+++ b/.agents/skills/writing-pr-descriptions/SKILL.md@@ -64,7 +64,7 @@ Prose is the slowest form on the page. Before writing a sentence, ask what carri| The fact you have | The form that carries it || ------------------------------------------------------------------------------------ | --------------------------------------------------------- || A visual change (any UI a person sees) | Screenshot, before and after. Mandatory, not optional |-| A change to a flow or topology (CI wiring, pipelines, state machines, request paths) | Two `flowchart` blocks, before first |+| A change to a flow or topology (CI wiring, pipelines, state machines, request paths) | Two branded `flowchart` blocks, before first || Several values compared across the same dimensions | A markdown table || A config or setting change | A fenced `diff` block || Existing code a reviewer needs to see | A line-range permalink, which GitHub renders as a snippet |@@ -230,12 +230,14 @@ A "no" anywhere means the body is ordered for the writer, not the reader. Go bac7. Count the words in the longest sentence. Over 25, split it.8. Rewrite every passive sentence in active voice, unless the actor is genuinely unknown. Break every noun string longer than three words with a preposition.9. Does any sentence take its author as the subject? Rewrite it around the change. "I", "me" and "my" appear nowhere.-10. Is any fact in the wrong form? A visual change needs a screenshot. A flow change needs before and after diagrams. A comparison needs a table.-11. Does every claim about what you ran, measured or saw link its evidence, or say it went unchecked? Descriptions of behavior need no link.-12. Did a `<!-- -->` template comment survive anywhere? That section is unfilled. Fill it or delete it.-13. Is the `## 🤖 Agent context` section filled, listing the skills invoked?-14. Does the body claim manual testing that did not happen? Delete it.-15. Does the body name an internal customer, incident, Slack quote, or operational metric? This repo is public. Delete it.+10. Does the PR change anything a person sees? Include before-and-after screenshots, or say why nothing looks different.+11. Does the PR change a flow or topology? Include branded before-and-after diagrams.+12. Does prose compare several values across the same dimensions? Replace it with a table.+13. Does every claim about what you ran, measured or saw link its evidence, or say it went unchecked? Descriptions of behavior need no link.+14. Did a `<!-- -->` template comment survive anywhere? That section is unfilled. Fill it or delete it.+15. Is the `## 🤖 Agent context` section filled, listing the skills invoked?+16. Does the body claim manual testing that did not happen? Delete it.+17. Does the body name an internal customer, incident, Slack quote, or operational metric? This repo is public. Delete it.## Backgrounddiff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdindex b5d1308d9588..be7395cc8946 100644--- a/.github/pull_request_template.md+++ b/.github/pull_request_template.md@@ -66,6 +66,7 @@- Description: high-level rationale, not a step-by-step replay.- Voice: the subject of every sentence is the change, never its author. No "I", "me" or "my" anywhere in the body. "I (actually Claude)" is worse than either half: it hands the assignee an account of work they did not do. Authorship is one stated fact in the Agent context section below.- Body: pass it straight to the creation tool's `body` arg (GitHub MCP `create_pull_request` body, or `gh pr create --body-file -` via stdin) — don't write it to a temp file first; the arg preserves markdown and newlines verbatim.+- Flow and topology changes: include separate before-and-after Mermaid `flowchart` blocks with PostHog colors. This includes CI wiring, pipelines, state machines, and request paths. Use `/writing-pr-descriptions` for the palette and role mapping.- Public OSS repo: no internal customers, incidents, or operational metrics.- Stack instead of stuffing: if the diff holds two or more separable steps (migration then behavior, rename then rewrite), open a stack rather than one big PR. See AGENTS.md, "Stacked PRs" and /stacking-prs.- Simplify before opening: if your agent has a behavior-preserving cleanup pass (Claude Code: `/simplify`), run it on a non-trivial diff before final tests and preflight, since it edits the tree. Skip it for small mechanical changes.