pr
Skill300 starsChanged 7 days agoMITView on GitHub
Take work to a ready pull request - from a GitHub issue or a branch, create a draft PR, then loop "rebase -> review comments -> CI" until done. Usage - /pr [PR number] [ci|review], /pr issue <number>.
- Commits and pushes
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- docsSkill
- full-code-reviewSkill
- humanizerSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are 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.
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 9
Never merge. Never push to main or experimental directly.
- Distinctive: line 15
Stop if the issue is already closed or an open PR already handles it.
- Very specific: line 31
Add Closes #N only if the PR fixes the issue fully.
- Very specific: line 40
Rebase: Check that git branch --show-current is the PR head.
- Very specific: line 49
Read the full failed log (gh run view <id> --log-failed) and fix the real cause.
≈ “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
Pull request
Never merge. Never push to main or experimental directly. Do not touch changes that are not
part of this PR. Write outputs to files under mktemp -d, and never read them through | head,
| tail, 2>/dev/null or || true.
From an issue (/pr issue <N>)
- Stop if the issue is already closed or an open PR already handles it.
- Reproduce it: run the smallest input through rsvelte and the official tool. If it does not reproduce, comment what you tried and what you need, then stop.
- Let the owner choose when the fix is not small, touches more than one area or has options with trade-offs. Do the same when it changes a public API, the fixture format or a principle. Comment the cause, the options and your recommendation, then stop until the owner picks one.
- Otherwise branch
fix/issue-<N>-<name>and fix it. Add a test that fails before the fix and passes after it, and check both. Put the reproduction in the corpus too, ascorpus/_own/README.mdsays, so the official tool keeps judging it after the fix. Then create the PR below and link it on the issue.
Create
Base: the user's choice, else the branch the work started from; ask if unsure.
Title: <feat|fix|performance|refactor|test|docs|ci|build|deps|chore|revert>(<scope>): <change>.
Body: ## Why, ## What and ## How it was verified (commands, git rev-parse HEAD, counts).
Add Closes #N only if the PR fixes the issue fully. Create it with gh pr create --draft.
A change that users of rsvelte notice needs a changeset, or no release ships it. Add
.changeset/<name>.md with the front matter '@rsvelte/cli': patch, or minor for a new
feature or a changed behavior. Below it, write one or two sentences for the changelog.
Finish
Repeat at most 5 times; stop when a round changes nothing.
- Rebase. Check that
git branch --show-currentis the PR head. Check that the PR head commit is an ancestor ofHEAD; if not, stop and ask. Rebase onorigin/<base>and push with--force-with-lease=<head>:<old sha>, never plain--force. Stop on a fork PR, or on a conflict that needs more than a mechanical fix. - Review comments. Get the unresolved threads through GraphQL
reviewThreads, with--paginate. For each one, check whether its premise holds in the code. Show a plan (fix, or no change with evidence) and wait for the user. Fix, push, then reply with the commit hash. Resolve a thread only if a bot opened it. - CI.
gh pr checks <PR> --watch --fail-fast. A cancelled check or no checks is not a pass. Read the full failed log (gh run view <id> --log-failed) and fix the real cause. Rerun once, and only for infrastructure errors. Never editcorpus/**/expected/.
Mark the PR ready (gh pr ready) only when CI is green and you have handled every comment you
can. Two polls some minutes apart must also show no new bot comments. For a PR from an issue,
also wait until a human has checked it. Report the rounds, the fixes, the comments left for
humans and the CI state.
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.

