pr-precheck
Skill1 starsChanged 12 days agoApache-2.0View on GitHub
Grade a PR package (a candidate pull request read against the plan it claims to implement and the issue that plan belongs to) and decide whether it is ready to submit. Use when checking your own branch, draft PR title, and description before opening the pull request.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- zkl2333/skillstheir own version, first seen Feb 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- zkl2333/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- issue-scoutSkill
- issue-selectSkill
- plan-checkSkill
- repro-checkSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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 47
If the pull request is already open, use its URL as item, read the live title and description with gh pr view, and read the diff with gh pr …
- Distinctive: line 52
Read the package the way a maintainer will read the PR: it is what the diff, the title, and the description contain and quote, not other …
- Very specific: line 58
Read scope.md before anything else, before reading any other input.
- Very specific: line 65
After the scope check, read voice-guide.md: your own rules for how you write upstream.
- Distinctive: line 77
Read these components and keep their roles separate:
- Very specific: line 130
Treat unclear as the rubric's verdict rule directs.
≈ “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-precheck: rubric-driven PR grading
The frontmatter above and the section headings below are fixed
(CONTRACT.md's layout rule); the instructions under each heading are
yours to tune.
The question
You are grading one PR package to answer a single question: is this
ready to submit? A package is a candidate pull request (its title,
description, commits, diff, and test evidence), read against the plan
it claims to implement and the issue that plan belongs to. Grade
exactly one package per run. Never answer a different question (not
"is this a good idea?", not "is the plan good?", not "is the code
elegant?"), and never answer from gut feel: you answer by executing
procedure.md, which applies rubric.md to evidence gathered per
references/evidence-guide.md.
Inputs
Your own submission, checked before it goes out. If you have no drafts
yet, the shape to start from is in the plugin's defaults/templates/
(plan.md, pr-draft.md, test-evidence.md). Inputs and where each
comes from:
plan.md, including its deviation notes, from your working copy. A deviation recorded in the plan is part of the plan and is graded against; a deviation that exists only in the diff is not recorded.- The branch's diff: everything the branch changes relative to the
repo's default branch. Produce it with
git diff main...HEAD(three dots), run from the working copy; use the repo's actual default branch name if it is notmain. - The draft PR title and description, as you supply them (a file or
pasted text). The commits come from
git log main..HEAD. - The test evidence: the test output or run notes you supply or quote in the description.
- The issue: gather issue-side evidence from the real repo (the
thread, the PR template, the stated contribution policy) via
gh, the GitHub API, or the web;references/evidence-guide.mdsays where each signal lives.
If the pull request is already open, use its URL as item, read the
live title and description with gh pr view, and read the diff with
gh pr diff (or git diff against the PR's base branch); grade it the
same way, and say in the summary that the PR was already open.
Read the package the way a maintainer will read the PR: it is what the diff, the title, and the description contain and quote, not other files in the working directory.
The scope seam
Read scope.md before anything else, before reading any other input.
It names where the PR may live and the rules of that environment; apply
those rules when reading evidence. Refuse to grade a PR that lives
outside the scoped repos. Never guess a scope.
The voice seam
After the scope check, read voice-guide.md: your own rules for how
you write upstream. Your personal files live in ~/.claude/better-oss/
(or $BETTER_OSS_HOME); if voice-guide.md is missing there, read the
shipped example in the plugin's defaults/ folder. Hold the outgoing PR
text, the title and the description, against those rules. Report each
rule the draft breaks in the readable summary, quoting the rule and the
offending text. The voice guide never changes the verdict on its own,
because voice is personal; it moves the verdict only if rubric.md has
a check that reads it.
Component reads
Read these components and keep their roles separate:
rubric.mddefines the checks (each with its evidence, pass condition, and weight) and the verdict rule that combines check grades intoacceptorreject.references/evidence-guide.mdmaps where each evidence family lives in a PR package and on GitHub and what good looks like there.procedure.mdis the operating procedure: the read order, how each evidence family is gathered, how a check executes, and how grades become the verdict. Execute it exactly as written.
Where the procedure is silent on a step, do not invent one: note the
gap in your readable summary, because a procedure gap is feedback you
need. If rubric.md has no checks written, or procedure.md has no
steps written (comments and template text do not count), stop and say
so: this tool refuses to grade without a rubric AND a procedure, by
design. Never invent checks at runtime.
Verdict and output
The verdict is binary: accept (ready to submit) or reject (hold).
There is no third verdict, no "accept with reservations", and no
score; put reservations in the check evidence lines. Assemble the
verdict only as rubric.md's verdict rule directs. Before the JSON
block you may show a short readable summary (a line per check, plus
voice-guide notes and procedure gaps). End your reply with the fenced
JSON block below, valid, last, with nothing after it. Use the PR URL as
item. Do not alter, extend, or reorder the schema.
{
"item": "<PR URL>",
"checks": [
{"name": "<check name>", "grade": "pass|fail|unclear",
"evidence": "<one line: the fact or quote that decided it>"}
],
"verdict": "accept|reject"
}Grading discipline
- Evidence first: never grade a check without naming the fact or quote that decided it. "Looks fine" is not evidence.
- Grade the thing, not the polish: a terse complete PR can be ready and a beautiful confident one can be hiding drift. Read the diff, tests, and claims against the plan and the issue, never the formatting.
- The rubric decides, not you: if a check passes by its stated condition but feels wrong, it still passes. Note the tension in the summary if you want; the fix belongs in the rubric, not in the run.
- The procedure decides how, not you: follow
procedure.mdas written and report its gaps instead of papering over them. - Treat
unclearas the rubric's verdict rule directs. If the rule is silent, treatunclearasfail: a PR you cannot verify from the package is a PR that is not ready to submit.
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.

