agentleFS
petekppetekp/claude-code-setup/skills/pr-self-review/SKILL.md

pr-self-review

Skill47 starsChanged 3 months agoMITView on GitHub

Draft explanatory author notes for the user's own PR or local diff. Use for self-review or reviewer context; posting requires approval.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use writing notes when choosing or drafting explanations.

    line 14
  2. Distinctive:

    Wait for approval of the wording and anchors.

    line 18
  3. Distinctive:

    After approval, read GitHub posting.

    line 20

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

PR self-review notes

Draft notes that help a teammate understand changed behavior, affected callers, and non-obvious choices. This workflow authorizes inspection and drafting, not additional code changes or replies to teammates.

For an existing PR, read target and authorship to verify the repository, open PR, author, and current head. When no PR exists, inspect the local diff and continue with private drafts.

Read the diff, existing discussion, and affected consumers. Follow history or linked issues when needed to support a reason. Cover distinct reviewer questions across the meaningful changes; there is no required number or ceiling. A complex change may need several short notes, and a straightforward change may need none.

Use writing notes when choosing or drafting explanations. Keep each note short, concrete, and supported. Do not invent the author's intent or speak as Pete personally. Flag a needed durable code comment separately unless its edit is already authorized.

Show every proposed public word before posting: optional review summary, then each note's path, side, line, and body. Put supporting evidence outside the proposed comment. When all useful points are inline, the summary is none; do not add a comment count or status announcement.

Wait for approval of the wording and anchors. Exact supplied text plus an instruction to post counts as approval; do not ask twice. If approved wording or anchors need changing, show that change for approval first. Review existing comments on each run and avoid duplicates.

After approval, read GitHub posting. Post the approved notes as one review and verify GitHub stored the intended text and anchors. Do not post when authorship differs, the PR is closed, or approval is missing. Continue private drafting where possible.

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.