agentleFS
baseballyamabaseballyama/rsvelte/.claude/skills/pr/SKILL.md

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

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
  1. Very specific:

    Never merge. Never push to main or experimental directly.

    line 9
  2. Distinctive:

    Stop if the issue is already closed or an open PR already handles it.

    line 15
  3. Very specific:

    Add Closes #N only if the PR fixes the issue fully.

    line 31
  4. Very specific:

    Rebase: Check that git branch --show-current is the PR head.

    line 40
  5. Very specific:

    Read the full failed log (gh run view <id> --log-failed) and fix the real cause.

    line 49

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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>)

  1. Stop if the issue is already closed or an open PR already handles it.
  2. 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.
  3. 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.
  4. 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, as corpus/_own/README.md says, 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.

  1. Rebase. Check that git branch --show-current is the PR head. Check that the PR head commit is an ancestor of HEAD; if not, stop and ask. Rebase on origin/<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.
  2. 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.
  3. 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 edit corpus/**/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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.