pr-description
Skill855 starsChanged 10 days agoApache-2.0View on GitHub
Use when writing the title or description of an extphprs/ext-php-rs pull request (gh pr create / gh pr edit), or when asked to reformat, tidy or shorten an existing PR description, including PRs opened by other people. Defines the conventional-commit title, the house format (one-line bug + Before/After code taken from PR tests that assert the fix, inside the repository's PR template) and how to verify it.
- Commits and pushes
110 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- VladSez/easy-invoice-pdftheir own version, first seen Nov 29, 2026
- ku5ic/claude-kittheir own version, first seen Nov 29, 2026
- NVIDIA-NeMo/RLtheir own version, first seen Nov 29, 2026
- punitda/my-skillstheir own version, first seen Nov 29, 2026
- DylanHalstead/skillstheir own version, first seen Nov 29, 2026
- afine907/skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use ao-desktop-dev, commit-message and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
agentlab-inSkillao-desktop-dev
Launch, restart, or troubleshoot the real AO Electron desktop app from this repository; run a checkout against isolated or real local AO data; combine PR branches for local UI review; and diagnose stale Electron processes, port conflicts, or preload bridge mismatches. Use whenever asked to run, open, show, or visually verify AO frontend changes in the actual desktop app rather than ao preview, dev:web, or mock data.
Also in 4 projects that use this
GitHubSkillcommit-message
Generate conventional commit messages - use when creating commits, writing commit messages, or asking for git commit help
Also in 13 projects that use this
jMertaSkillbug-triage
Use when the user reports a bug, regression, runtime error, failing build, or broken test and wants reproduction, diagnosis, root-cause analysis, or an authorized fix. Isolates the shared cause and verifies the smallest relevant change.
Also in 4 projects that use this
AnthropicSkillincident-postmortem
Write the postmortem for an incident, in its incident channel, once it is mitigated or resolved. Use on "write up this incident", "postmortem", "incident summary", "what happened here for people who weren't around", "draft the retro", or when the oncall memory says incidents of this severity get one. Reads the incident channel (and the alert thread it came from), the investigation findings and the data behind them, and writes a one-screen, zero-context write-up: what happened, impact with numbers, detection, timeline with durations, why it happened, what fixed it, follow-ups with proposed owners, and one before/during/after chart. Posted and pinned in the incident channel as its final pinned post, with edit requests updating that one pinned post in place — unless the person or the team's conventions say write-ups live elsewhere, in which case it is written there and only a link is posted, nothing pinned. A person edits and publishes it; never assigns blame.
Also in 4 projects that use this
LangChainSkillapi-docs
OpenAPI documentation and REST API design patterns
Also in 3 projects that use this
saffron-healthSkilladdress-review
Address PR review comments systematically. Use when responding to code review feedback on a pull request.
Also in 3 projects that use this
Other versions110 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- vimeo/psalm★ 5.9k48% same
Wrote their own version · 109
- jdx/mise★ 37ksame name
- zulip/zulip★ 26ksame name
- Nagi-ovo/gemini-voyager★ 21ksame name
- pipecat-ai/pipecat★ 18ksame name
- AgentWrapper/agent-orchestrator★ 15ksame name
- ComposioHQ/agent-orchestrator★ 15ksame name
- OrchestratorInc/agent-orchestrator★ 15ksame name
- Untrivial-ai/agent-orchestrator★ 15ksame name
- sanity-io/sanity★ 6.4ksame name
- pytorch/torchtitan★ 6ksame name
99 more not listed
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 repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- php-bindingsSkill
- proc-macrosSkill
- semver-breaking-changesSkill
- zend-memorySkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 104 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 87
Keep closing keywords for issues the PR fixes (Fixes #1234) on their own line at the end of ## Description, so GitHub links and closes them.
- Distinctive: line 89
Leave out: background and motivation, design notes, the implementation walk-through, "stacked on / combines …", measurements that aren't …
- Distinctive: line 104
If no test makes a short, clear example, add one to the PR first.
- Distinctive: line 109
Before comments from main's actual output (the PHP error message, the dumped value).
- Very specific: line 116
Only when asked. Editing someone else's PR body needs maintainer rights on extphprs/ext-php-rs.
- Very specific: line 121
Read the current body, title and diff: gh pr view <n> --repo extphprs/ext-php-rs --json title,body,author,files and gh pr diff <n> --repo …
- Distinctive: line 128
Keep everything the author wrote that matters to reviewers in the new format: the bug summary, issue links / closing keywords, the …
- Very specific: line 132
Verify the examples by running each one's test on main and on the PR head (git fetch origin pull/<n>/head:pr-<n> and a separate worktree).
- Distinctive: line 138
Don't touch the code, labels or reviews of the PR as part of this.
“Common” is measured: kept by at least 6 in 10 of the 104 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
PR titles and descriptions
Title
PRs are squash-merged, and release-plz turns the squashed commit into the
CHANGELOG.md entry and the version bump. So the title is a conventional commit
that reads well as a changelog line:
type(scope): what changes, as the user sees it, e.g.fix(array): fix non-UTF-8 keys, reverse iteration and length of iterators,feat(class): declare typed properties with \ClassBuilder::typed_property``.- Types used here:
feat,fix,perf,refactor,docs,test,ci,chore(chore(deps)for dependency bumps). Scopes come from the existing history (git log --format=%s origin/main | head -50):class,macro,array,embed,sapi,php-build,cargo-php,observer, … - A breaking change gets
!(feat(class)!: …), and the PR has a migration guide (skillsemver-breaking-changes). - Code in backticks. No issue numbers in the title (GitHub appends
(#n)on merge).
Description format
The repository's template (.github/PULL_REQUEST_TEMPLATE.md) stays: a
## Description section and the ## Checklist, with each box ticked only when it is
true. Inside ## Description, as brief as possible: the reader only cares which bug
is fixed or what can now be done, shown with code. The shape (the bug below is made
up, only the layout matters):
## Description
A `#[php_function]` that takes `Option<&str>` rejects an explicit `null` in strict mode.
**Before**
```rust
#[php_function]
pub fn greet(name: Option<&str>) -> String {
format!("Hello, {}", name.unwrap_or("world"))
}
```
```php
<?php declare(strict_types=1);
greet(null); // TypeError: greet(): Argument #1 ($name) must be of type ?string, null given
```
**After**
```php
greet(null); // "Hello, world"
```
Fixes #1234
## Checklist
- [x] I have read the [contribution guidelines](CONTRIBUTING.md) and the [code of conduct](CODE_OF_CONDUCT.md).
- [x] I have added tests that prove my code works as expected.
- [ ] I have added documentation if applicable.
- [ ] I have added a [migration guide](CONTRIBUTING.md#breaking-changes) if applicable.- One sentence naming the bug or the feature, as the extension author or the PHP user sees it (a wrong value, a missing exception, a crash, a leak, an API that didn't exist), not the implementation.
- At most two sentences of prose in the whole description, each in its own paragraph with a blank line between them. Detail goes in the commits.
- A Before block: the Rust declaration and the PHP script of a test of the PR that
asserts the fix (see below), with trailing
// resultcomments on the lines whose result matters: the value,// TypeError: <message>,// segfault,// leaks 1 zend_string. Copy the results from an actual run onmain. - An After block with only the lines whose result changes, commented with the new result.
- A feature (a new API, a new macro option): skip Before/After and show the Rust code that uses it and the PHP that shows the effect, from the PR's tests.
- Several bugs in one PR: one short
###heading per bug, each with its own one-line summary and Before/After pair. - No PHP example possible (CI, build, bindings, tooling, performance): one plain
line, e.g. "Builds against PHP 8.6.0RC7, whose API number is 20261112." Numbers only
if they are the fix ("
newon a class with a constructor takes 0.37 s instead of 0.70 s for 5M objects"), with the benchmark that measured them. Several numbers go in a Markdown table under the sentence, not in prose. - Breaking change: one line saying what breaks and that the migration guide covers it, with a link to the guide section.
- Keep closing keywords for issues the PR fixes (
Fixes #1234) on their own line at the end of## Description, so GitHub links and closes them. - Leave out: background and motivation, design notes, the implementation walk-through,
"stacked on / combines …", measurements that aren't the point, review follow-ups,
test lists, "not run locally" notes, changelog prose, references to files that
aren't in the repository (local notes, plans), and any AI attribution (no
"Generated with" footer, no
Co-Authored-Bytrailer in the commits).
Every example is a test that asserts the fix
- Each Before/After example must correspond to a test of the PR, and that test must
assert the fix: it fails on
mainand passes on the branch, because it checks exactly the result the After block shows (see "Tests must assert the change" in AGENTS.md for how tests silently fail to do that). - The example is that test's code: the item in the integration module's
mod.rsand the lines of its.phpscript. If the test is long, show only the lines that matter, as long as the test asserts what they show. Never show a snippet no test covers. - If no test makes a short, clear example, add one to the PR first. Specific, easy-to-follow examples beat abstract ones.
- Verify by running that single test on
main(must fail) and on the branch (must pass):cargo test -p tests <test_name>, which builds thetestsextension and filters by test name. Never run the whole suite for this. Copy the results in the Before comments frommain's actual output (the PHP error message, the dumped value). Never write invented or "illustrative" output. - For a crash or a leak, the Before comment names what happens (
// segfault,// ASan: heap-use-after-free), from a real run (skillzend-memory).
Reformatting an existing description (including other people's PRs)
Only when asked. Editing someone else's PR body needs maintainer rights on
extphprs/ext-php-rs; without them (gh api repos/extphprs/ext-php-rs --jq
.permissions), post the new text as a suggestion in a comment instead, after the
user approves it.
- Read the current body, title and diff:
gh pr view <n> --repo extphprs/ext-php-rs --json title,body,author,filesandgh pr diff <n> --repo extphprs/ext-php-rs. - Work out the bug(s) actually fixed from the diff and the tests it adds, not only from the prose. Pick the examples from the PR's tests, and check that those tests assert the fix. If none does, or none makes a usable example, tell the user and suggest a test to add; don't push tests to someone else's PR unless asked.
- Keep everything the author wrote that matters to reviewers in the new format: the bug summary, issue links / closing keywords, the checklist state, and any explicit note about a breaking change or a behaviour change users must know about (one line at the end). Drop the rest.
- Verify the examples by running each one's test on
mainand on the PR head (git fetch origin pull/<n>/head:pr-<n>and a separate worktree). - Show the new body to the user before replacing someone else's. Then:
gh pr edit <n> --repo extphprs/ext-php-rs --body-file <file>. Don't change the title unless asked; if it isn't a valid conventional commit or is misleading, suggest a new one. - Don't touch the code, labels or reviews of the PR as part of this.
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.

