pr-describe
Skill56 starsChanged 2 months agoApache-2.0View on GitHub
Write or update a PR description that lets reviewers judge the architecture and technical decisions without reading low-level code — high-level mechanism, mermaid diagrams, and a code-area map.
- Deletes or force-pushes
3 other projects use a version of this.
Adopted by
Most recently taken up by
- Industrial-AI-Research-Lab/nir-agent-overlaytheir own version, first seen Sep 30, 2026
- hams-ollo/zen-agent-skillstheir own version, first seen Aug 31, 2026
- senior-sigan/llm-skillstheir own version, first seen Apr 6, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- hams-ollo/zen-agent-skills★ 2same name
- Industrial-AI-Research-Lab/nir-agent-overlay★ 0same name
- senior-sigan/llm-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- client/AGENTS.mdAGENTS.md
- proto/AGENTS.mdAGENTS.md
- server/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- asicrs-buildSkill
- code-generationSkill
- docker-compose-devSkill
- fake-rig-fixturesSkill
- hermit-toolingSkill
- migration-immutabilitySkill
- planSkill
- plugin-contract-testsSkill
- proto-fleet-playwright-e2eSkill
- pr-readySkill
- python-gen-tarballSkill
- regenSkill
- release-notesSkill
- triage-prSkill
- code-reviewSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Write (or update) the description for this PR so a reviewer can understand what it does and judge the architecture and technical decisions …
- Very specific: line 37
After resolving refs, check whether the target is part of a series (stacked or multi-part).
- Distinctive: line 52
Read the change using the path chosen in step 1 — do not fall back to local git on the numbered-PR path, since local HEAD may be an …
- Very specific: line 80
If the target is part of a series (step 1), also read each ancestor PR's description (gh pr view <number> --json title,body,url, adding -R …
- Distinctive: line 98
Use the same resolved target, diff, reviewable counts, and stack context throughout.
- Distinctive: line 109
If no PR exists yet (current-branch path only), output the body for the user to use when opening it.
- Distinctive: line 116
Don't narrate the back-and-forth or rejected approaches — describe the final state.
- Distinctive: line 118
No filler praise. Be concise.
- Very specific: line 119
Always quote JSON-derived branch refs (headRefName, baseRefName) when passing them to a shell command.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Write (or update) the description for this PR so a reviewer can understand what it does and judge the architecture and technical decisions without reading the low-level code. Inspect the actual diff, commits, and changed files first; describe what the code does, not the decisions made getting there.
Save the optional PR number or URL supplied with the skill invocation as
pr_ref. If none was supplied, leave pr_ref empty; that selects the
current-branch path below.
Steps
Determine the target and pick the path. Decide once, here, and use the same path for every command below — never mix PR-derived refs with the local checkout.
- Numbered-PR path —
pr_refis a PR number or URL. The target is that PR, which may live in a different repository and on a branch you do not have checked out. Resolve its refs from metadata, not from local HEAD:gh pr view "$pr_ref" --json number,url,headRefName,baseRefName,title. Capturenumberand parseowner/repofrom theurlfield (which ishttps://github.com/<owner>/<repo>/pull/<number>). Theurlis gh's output, so it is safe to parse. You needowner/repobecause a barenumberresolves in the current repo — apr_refURL pointing at another repo would otherwise read one PR and edit a same-numbered PR here. Pass-R <owner>/<repo> <number>to everygh prcall on this path. - Current-branch path —
pr_refis empty or absent. The target is the current branch.gh pr view --json number,url,headRefName,baseRefName,titletells you whether a PR already exists; if none does, you will draft the body for the PR the user is about to open from this branch.
After resolving refs, check whether the target is part of a series (stacked or multi-part). Any one of these signals counts:
baseRefNameis not the repository's default branch (it is stacked on a parent PR); it has descendant PRs (others are stacked on it); or its title carries anN/Morpart Nmarker. A foundation PR that targets the default branch but has descendants still counts, so do not gate on the base ref alone. Walk the chain both ways. Upward: find the parent PR whose head is this PR's base (gh pr list --head "<baseRefName>" --state all --json number,title,url,baseRefName, adding-R <owner>/<repo>on the numbered-PR path), repeating on the parent's base until you reach the default branch. Downward: find child PRs whose base is this PR's head (gh pr list --base "<headRefName>" --state open --json number,title,url,baseRefName,headRefName, adding-R), repeating on each child's head. Record both ancestors and descendants (each one's number, title, url) for steps 2 and 3.- Numbered-PR path —
Read the change using the path chosen in step 1 — do not fall back to local
giton the numbered-PR path, since local HEAD may be an unrelated branch:- Numbered-PR path: using the
owner/repo/numberfrom step 1,gh pr diff <number> -R <owner>/<repo>for the full diff andgh pr diff <number> -R <owner>/<repo> --name-onlyfor the file list. Pull the commit list fromgh pr view <number> -R <owner>/<repo> --json commits. All of these read the PR head in its own repo, regardless of what is checked out locally. - Current-branch path: fetch the base first (
git fetch origin "<base>") and diff againstorigin/<base>, never the bare local ref, so a parent branch that has moved (common in a stack) can't produce a stale diff:git diff "origin/<base>...HEAD"(full diff),git diff "origin/<base>...HEAD" --stat, andgit log "origin/<base>..HEAD" --oneline, where<base>is thebaseRefNamefrom step 1 (defaultmain).
From the file list, identify which subsystems are touched (
server/,client/,plugin/,proto/,migrations/,packages/proto-python-gen/).Compute reviewable counts using the exclusions and rename/binary rules in the PR standard. For a numbered PR, save its aggregate
gh pr diff <number> -R <owner>/<repo>output and usegit apply --numstaton that diff. Do not use--patch, which supplies per-commit patches and can count the same edit repeatedly. For local work, usegit diff "origin/<base>...HEAD" --numstat. Inspect renamed paths explicitly so either side's exclusion applies.If the target is part of a series (step 1), also read each ancestor PR's description (
gh pr view <number> --json title,body,url, adding-Ron the numbered-PR path) and extract the load-bearing context this PR depends on: the contracts, abstractions, schema, or decisions established upstream that a reviewer must understand to judge this change. For each descendant, capture a one-line scope from its title (skim its body only if the title is opaque) so you can tell the reviewer what is deferred to later PRs and where it lands.Remaining work is often not open as a PR yet, so do not stop at descendant PRs. Also draw on linked issues, PR discussions, and external design documents for the phasing and explicit out-of-scope items, and, when running interactively, on this conversation, which may name deferred scope and tracking issues/PRs it lands in. Record those deferred items with their tracking references even when no PR exists for them yet (state facts about scope, not the back-and-forth of how the work was planned).
- Numbered-PR path: using the
- Draft the description using the complete PR description standard. Use the same resolved target, diff, reviewable counts, and stack context throughout. Include validation evidence and explicit gaps.
- Apply the result against the target resolved in step 1:
- For draft-only or audit-only requests, output the proposed body without
editing GitHub. Otherwise, when updating the description is requested
and a PR exists, update that PR by its
number, scoped to its repo:gh pr edit <number> -R <owner>/<repo> --body-file <tmp>(write the body to a temp file to preserve mermaid fences and tables). The-Ris what keeps a cross-repo URL target from editing a same-numbered PR in the local repo. On the current-branch path-Ris unnecessary (the PR is local). - If no PR exists yet (current-branch path only), output the body for the user to use when opening it.
- For draft-only or audit-only requests, output the proposed body without
editing GitHub. Otherwise, when updating the description is requested
and a PR exists, update that PR by its
Rules
- Mechanism and architecture over line-by-line detail. If a reviewer needs to open a file to understand the shape of the change, the description has failed.
- Don't narrate the back-and-forth or rejected approaches — describe the final state.
- No filler praise. Be concise; prefer tables and diagrams over long paragraphs.
- Always quote JSON-derived branch refs (
headRefName,baseRefName) when passing them to a shell command. Branch names may contain shell metacharacters (a branch literally namedfeature;rm -rf foois valid on GitHub), so an unquoted ref can run unintended commands instead of just queryinggh/git.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

