port-upstream-commit
Skill32 starsChanged 44 days agoMITView on GitHub
Port one commit from upstream pi (earendil-works/pi) to pi-rust with tests. Use when the parity report or GAPS.md lists an unported upstream commit, or when asked to port an upstream fix or feature.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/ci-release.mdcCursor rule
- .cursor/rules/parity.mdcCursor rule
- .cursor/rules/pi-js-node.mdcCursor rule
- .cursor/rules/pi-rust.mdcCursor rule
- ci-triageSkill
- node-compat-gapSkill
- parity-checkSkill
- ship-releaseSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
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
- Very specific: line 13
Run cargo fmt --all -- --check, cargo clippy --workspace --all-targets --locked -- -D warnings, and the tests of the crates you changed.
- Very specific: line 14
Commit with a Conventional Commit that names the upstream SHA: fix(scope): <what> (upstream <sha>), with the 9-character SHA.
- Very specific: line 15
If this closes an entry in docs/parity/GAPS.md, remove the entry in the same change.
- Very specific: line 17
If a commit does not apply (browser-only code, a TypeScript build change), add its 9-character SHA to the commits list in …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Port an upstream commit
Full playbook: docs/parity/README.md#porting-an-upstream-commit.
git -C ../pi-upstream show <sha>. Read the whole diff, including tests and changelog lines.- Find the Rust counterpart with the mapping table in
docs/parity/README.md. Read the Rust code that defines the current behavior before you change it. - Port the behavior with the same names, JSON shapes, and messages as upstream. Port the tests to the Rust style. Tests use the
fauxprovider or a local mock server. - Run
cargo fmt --all -- --check,cargo clippy --workspace --all-targets --locked -- -D warnings, and the tests of the crates you changed. Cross-build Windows if you touchedcfg(windows)code. - Commit with a Conventional Commit that names the upstream SHA:
fix(scope): <what> (upstream <sha>), with the 9-character SHA. Do not writeupstream <sha>for a commit you did not port. - If this closes an entry in
docs/parity/GAPS.md, remove the entry in the same change. When every upstream commit up to a point is ported, movesyncedCommit,syncedVersion, andsyncedOnindocs/parity/upstream.json.
If a commit does not apply (browser-only code, a TypeScript build change), add its 9-character SHA to the commits list in docs/parity/allowlist.json with the reason.
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.

