pr
Skill2 starsChanged 59 days agoMITView on GitHub
Create or update a pull request or merge request when the user invokes pr or explicitly requests publication on GitHub, Forgejo, or GitLab.
- Commits and pushes
In this repository64 other files it gives its agents.
- AGENTS.mdAGENTS.md
- triage-pstackSkill
- architectSkill
- arenaSkill
- automate-meSkill
- batonSkill
- benchmark-checklistSkill
- blast-radiusSkill
- broSkill
- correctSkill
- create-formal-verification-skillSkill
- create-verification-skillSkill
- figure-it-outSkill
- herdr-workflowSkill
- howSkill
- interrogateSkill
- in-your-own-wordsSkill
- ketchupSkill
- maintain-formal-verification-skillSkill
- maintain-verification-skillSkill
- no-commentsSkill
- papercutSkill
- principle-attack-the-premiseSkill
- principle-boundary-disciplineSkill
- principle-build-the-leverSkill
- principle-encode-lessons-in-structureSkill
- principle-exhaust-the-design-spaceSkill
- principle-experience-firstSkill
- principle-explain-the-numberSkill
- principle-fix-root-causesSkill
- principle-foundational-thinkingSkill
- principle-guard-the-context-windowSkill
- principle-laziness-protocolSkill
- principle-make-operations-idempotentSkill
- principle-migrate-callers-then-delete-legacy-apisSkill
- principle-minimize-reader-loadSkill
- principle-model-the-domainSkill
- principle-never-block-on-the-humanSkill
- principle-outcome-oriented-executionSkill
- principle-prove-it-worksSkill
- principle-redesign-from-first-principlesSkill
- principle-separate-before-serializing-shared-stateSkill
- principle-sequence-verifiable-unitsSkill
- principle-subtract-before-you-addSkill
- principle-test-behavior-not-implementationSkill
- principle-type-system-disciplineSkill
- python-best-practicesSkill
- recallSkill
- reflectSkill
- reframeSkill
- setup-zstackSkill
- sharpenSkill
- show-meSkill
- show-me-your-workSkill
- sketchSkill
- statechartSkill
- swarmSkill
- tddSkill
- teachSkill
- technical-writingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Read the project’s contribution guidance and check the target repository for a default PR or MR template.
- Very specific: line 54
Overall risk: After the Blast Radius block, replace <Overall risk label> with exactly one standalone line: 🟢 Low risk, 🟡 Medium risk, or …
≈ “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
PR and MR descriptions
A bare invocation publishes the current task. An explicit request to open or update a PR or MR also selects this workflow. When the user asks only for wording, a preview, or a local draft, return Markdown locally and skip commits, pushes, uploads, and forge writes. “Open a draft MR” requests publication in draft state.
Prepare the change
- Resolve the forge, target repository and base, and source repository and branch. Honor an explicit request URL or number in its repository. For an existing request, read its body, title, readiness, base, and head. For a new request, use the requested base, stack parent, or repository default. Resolve ambiguous targets before writing.
- Before committing or pushing for publication, compare the intended push destination (forge repository identity and full branch ref) with the request’s target repository and base ref. If both match, create and switch to a fresh task branch from the current HEAD with
git switch -c "$task_branch", carrying local commits and uncommitted work with it. Use that branch as the source for lookup and creation. A fork’smaincan target upstream’smainbecause they belong to different repositories. - Confirm the selected source branch is checked out before committing. Inspect the complete base-to-head change, relevant task context, and staged, unstaged, and untracked work. Publication covers committing clearly scoped task changes and pushing the source branch as needed. Preserve unrelated work, including staged hunks. Resolve ambiguous ownership before committing.
- Immediately before every push, inspect the outgoing commits and diff from the selected local source branch. Run
git remote get-url --push --all "$source_remote"and verify every effective destination identifies the intended source repository. If any URL is missing, ambiguous, or points elsewhere, use a different verified source remote or stop before pushing. Setsource_ref="refs/heads/$source_branch"and push that exact branch withgit push --no-follow-tags "$source_remote" "$source_ref:$source_ref", including when updating a request without a new commit. Never push to the request’s base ref in the target repository. - Read the project’s contribution guidance and check the target repository for a default PR or MR template. Use the ZStack format below. Tell the author where the repository template lives and that the project may expect it, outside the published body.
Write the body
Open with one unheaded sentence explaining why this change exists. Follow it with Change and Merge risk. Under Merge risk, keep reversibility visible, then place Verification and Blast Radius in separate collapsed blocks, in that order.
<One sentence of motivation.>
## Change
<What changes for a caller, user, or maintainer?>
## Merge risk
**Reversibility** · <One-way or two-way. Explain what a revert can recover.>
<details>
<summary>:white_check_mark: Verification</summary>
<What was checked, what happened, and what relevant behavior remains unverified?>
</details>
<details>
<summary>:boom: Blast Radius</summary>
<Classify the impact and identify the affected users, data, or execution paths.>
</details>
<Overall risk label>- Change. Use the project’s vocabulary. Include a visual only when it answers a reviewer’s question. A small diff sketch shows where behavior moved, a call tree shows who now owns it, and a screenshot shows a visible result. Choose a format the target forge can display. Preserve relevant human-written context, issue links, checklist state, and automation markers when refreshing a body.
- Verification. Cite observations from the proposed change. Use before/after evidence when available. Name the focused check and its result, attribute human checks, and distinguish CI from local runs. When relevant evidence is missing, run a feasible focused check and report its outcome or the remaining gap. For a performance claim, give one primary comparison with units and link the supporting runs.
- Evidence attachments. Publication includes attaching task-specific evidence to the target project on the same forge when supported. Use the returned reviewer-accessible reference beside the claim. If attachment is unavailable, describe what was observed. Keep local paths out of the published body.
- Merge risk. Include both assessments on every request. For example, reverting a dropped-column migration can restore the schema while the old values require a backup. Inside Blast Radius, pair a classification such as “Narrow” with concrete scope, such as “Only notification deliveries retried after a provider timeout.”
- Overall risk. After the Blast Radius block, replace
<Overall risk label>with exactly one standalone line:🟢 Low risk,🟡 Medium risk, or🔴 High risk. Choose the rating using the likely impact, reversibility, and verification gaps.
Publish and verify
Use a supported host publishing tool, or follow the forge workflows. Write the final Markdown to a temporary body file or pass it as a structured field. On creation, choose a descriptive title and open ready for review unless the user or repository asks for a draft. On update, preserve the title and review state unless the user asks to change them. Re-read the body immediately before updating and reconcile intervening human edits.
Read back the published body, source head, base, URL, and readiness. Compare the returned Markdown with the intended text, allowing line-ending normalization. If a write times out, look up the matching request and inspect it before retrying. Complete any host-required registration, then return the verified request URL and relevant verification gaps.
Keep a durable Markdown copy when requested or when publication fails, including an unverified write. Use the requested destination or a task-specific local file outside temporary storage, and give the author its path. When a forge lacks a usable publishing integration, return ready-to-paste Markdown and identify the unfinished publication step.
Adapted from HumanLayer’s show-me and visual-pr, and Matt Pocock’s pr. HumanLayer MIT notice · Matt Pocock MIT notice.
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.

