better-oss
AGENTS.md1 starsChanged 12 days agoApache-2.0View on GitHub
Guidance for AI coding agents (and people) working in this repository. better-oss is a Claude Code plugin plus a small npx installer. It helps a contributor find, claim, plan and ship a pull request to someone else's open source repo, and holds each draft to a written rubric before it goes out. A human posts everything; the tools only grade and draft. Pipeline: issue-scout -> issue-select -> repro-check -> plan-check -> pr-precheck, plus two hooks (voice-guard, ship-gate) and a read-only…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,196 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- issue-scoutSkill
- issue-selectSkill
- plan-checkSkill
- pr-precheckSkill
- repro-checkSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 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.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
Run hooks directly by piping JSON, with an empty BETTER_OSS_HOME so your own files are not read:
- Very specific: line 53
Commit messages: [add] ..., [update] ..., [fix] ....
- Very specific: line 55
Keep the SKILL.md frontmatter (name, description) and the pr-precheck file layout in skills/pr-precheck/CONTRACT.md: the ship-gate reads …
- Distinctive: line 63
Do not add a model flag or swap the model without evidence it still grades the same.
- Distinctive: line 65
Only change check names, pass conditions, or the verdict rule on purpose.
- Very specific: line 70
The monitor never posts: Keep its READONLY_GH allowlist as is.
- Very specific: line 74
If AI helped with a change, say how in the PR description, in your own words, as pr-precheck itself asks of the people who use it.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
AGENTS.md
Guidance for AI coding agents (and people) working in this repository.
What this repo is
better-oss is a Claude Code plugin plus a small npx installer. It helps a
contributor find, claim, plan and ship a pull request to someone else's open
source repo, and holds each draft to a written rubric before it goes out. A
human posts everything; the tools only grade and draft.
Pipeline: issue-scout -> issue-select -> repro-check -> plan-check ->
pr-precheck, plus two hooks (voice-guard, ship-gate) and a read-only
pr-monitor.
Layout
skills/<name>/: one skill each:SKILL.md,rubric.md,scope.md,references/evidence-guide.md(plusprocedure.md/CONTRACT.mdwhere present).core/: stdlib-only Python.paths.py(where code vs. user files live),voice_guard/,ship_gate/,pr_monitor/,init.py.hooks/hooks.jsonandcommands/: plugin wiring.defaults/: prefilled example files users copy and rewrite.examples/: a real worked run.cli/: the npx installer (Node 18+, no dependencies).- User files live in
~/.claude/better-oss/(or$BETTER_OSS_HOME), never in the plugin folder.
Commands to run before a PR
ruff check . # Python lint (targets Python 3.9)
python3 -m pytest # scripts, hooks, skills, docs (no model calls)
python3 scripts/leak_check.py # no home paths, emails, tokens or symlinks
cd cli && npm test # installer tests (node --test)
claude plugin validate . # plugin manifest
claude plugin validate skills # skill files
python3 core/init.py --check # prerequisites on your machineTry a change for real: claude --plugin-dir ., then /reload-plugins after edits.
Run hooks directly by piping JSON, with an empty BETTER_OSS_HOME so your own
files are not read:
echo '{"tool_name":"Bash","tool_input":{"command":"gh issue comment 1 --web"},"cwd":"."}' \
| BETTER_OSS_HOME=$(mktemp -d) python3 core/voice_guard/check_voice.py # exits 2To test an install, set CLAUDE_CONFIG_DIR to an empty folder so your real
Claude config is untouched.
Conventions
- Commit messages:
[add] ...,[update] ...,[fix] ...; one logical change per commit. - Python 3.9+, standard library only. Add no dependency without an issue first.
- Keep the
SKILL.mdfrontmatter (name,description) and thepr-precheckfile layout inskills/pr-precheck/CONTRACT.md: the ship-gate reads those paths.
Hard rules
- Live mode only. The tools work on real repos: keep practice-repo scopes, eval-only files, and tutorial-specific wording out.
- The Sonnet pin is deliberate. The rubrics were tuned and checked on Sonnet. Do not add a model flag or swap the model without evidence it still grades the same.
- Rubric changes need evidence. Show a before/after verdict on a real case in the PR. Only change check names, pass conditions, or the verdict rule on purpose.
defaults/stay prefilled and keep theirEXAMPLE:banner comment.- No symlinks, home-directory paths, emails, or tokens in committed files.
- Never write to a user's
~/.claudefrom the code except throughcore/init.pyand the installer, and never edit theirsettings.json. - The monitor never posts. Keep its
READONLY_GHallowlist as is.
AI use
If AI helped with a change, say how in the PR description, in your own words,
as pr-precheck itself asks of the people who use it. Do not commit, push or
open a PR unless the person you are working for asked you to.
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.

