/oss-skills:code-reviewfrom oss-skills
Reviews pull requests with an open-source maintainer's perspective, covering intent-first reading order, severity-labeled feedback, and community-building practices.
Ships in oss-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An open-source review does two things at once: it protects the codebase, and it decides whether this person contributes again. Most reviews are competent at the first and terrible at the second.
Never start at the diff. Start at intent.
api-design).gh pr checkout 123
gh pr diff 123 --name-only # scope at a glance
gh pr view 123 --json title,body,additions,deletions,files,author
make test # run it locally; CI green is necessary, not sufficient
Unlabeled feedback makes contributors guess which comments block the merge. Prefix every comment:
| Prefix | Meaning | Author must |
|---|---|---|
| blocking: | Must change before merge | Fix it |
| question: | I don't understand yet | Answer; may resolve to nothing |
| suggestion: | Better, but your call | Decide |
| nit: | Style/taste, non-blocking | Ignore freely |
| praise: | This is good | Nothing — but say it anyway |
Reserve blocking for: correctness bugs, security issues, data loss, breaking changes without a migration path, missing tests on new behavior, and public API mistakes. Everything else is a suggestion. A review where every comment is blocking is a rewrite request wearing a costume.
Use praise: genuinely at least once per review when it is warranted. It is not
decoration — it tells the contributor which instincts to repeat.
Ranked by cost-if-wrong:
supply-chain-security.Delegate everything mechanical to tooling. Formatting, import order, lint rules and typos should be enforced by CI, never by a human comment. If you find yourself typing a style comment, the correct fix is a linter rule and a follow-up PR — otherwise you will type it again next month, to someone else.
The same technical content lands completely differently depending on framing.
| Instead of | Write |
|---|---|
| "This is wrong." | "This breaks when items is empty — line 42 indexes [0]." |
| "Why did you do it this way?" | "What led you to the recursive approach here? I want to make sure I'm not missing a constraint." |
| "Use a map." | "suggestion: a map keyed by id would drop this to O(n). Not blocking." |
| "Needs tests." | "blocking: could you add a test for the empty-input case? tests/parser_test.py has a similar pattern at line 88." |
| "Rewrite this." | "This is a bigger change than I can review in one pass — could we split the refactor into its own PR and keep this one to the fix?" |
Principles:
Response latency matters more to contributor retention than review depth.
CONTRIBUTING.md if you are slow. Honest expectations beat
optimistic silence.The 3,000-line unsolicited PR. Do not review it line by line — you will burn a
weekend on something you may close. Respond at the design level within two days:
thank them, state clearly whether the direction is acceptable, and if it is, ask for
a split into reviewable pieces. If it is not, say so immediately and explain why. The
real failure here was upstream — add "open an issue before large changes" to
CONTRIBUTING.md so the next person doesn't lose a weekend.
Right change, wrong implementation. Merge-and-fix beats a long review cycle when
the author is unlikely to iterate. Merge to a branch, do the cleanup yourself, credit
them with Co-authored-by:. Their name stays on the contribution, which is the part
that actually matters to them.
Drive-by contributor who disappears. Give it two weeks and a ping. Then either finish it yourself with co-authorship, or close with "happy to reopen if you come back." Do not let it sit for a year.
AI-generated PRs. Increasingly common, and the tell is code that is plausible but
untethered — invented APIs, tests that assert nothing, a description that restates the
diff. Review by the same standard as any other PR; do not accuse anyone. But do
require that the author can explain the change, and be firm that CI green plus a
passing test they cannot describe is not sufficient. State a policy in
CONTRIBUTING.md if volume becomes a problem: disclosure is fine, unreviewed
generation is not.
Contributor pushes back on blocking feedback. Restate the constraint, ask what you are missing, and if you still disagree, decide — you are the maintainer. Then say so plainly and without hedging: "I hear you, but I'm going to keep this as-is because X. I appreciate the argument." Ambiguity here is crueler than a clear no.
Some PRs must be closed. Doing it well preserves the contributor.
Thanks for putting this together, and sorry for the outcome.
I'm going to close this — <specific reason: out of scope / conflicts with the
plugin design in #412 / adds a dependency we can't take on>.
That's a gap in our docs rather than a mistake on your part; I've opened #520 to
document the scope boundary so this is clearer next time.
If you're up for it, #445 is a close relative and I'd merge that quickly.
Elements that matter: thank them first, give a specific reason, take responsibility for anything that was your project's fault, and offer a concrete next thing. Never close silently, and never let it expire into a stale-bot close — that is the version contributors remember and post about.
[ ] Linked issue exists and the change was wanted
[ ] Scope matches the description — no unrelated drive-by changes
[ ] Tests added; they fail without the fix
[ ] Public API changes are intentional and documented
[ ] Backward compatible, or has a migration path
[ ] Error paths handled with actionable messages
[ ] No secrets, no new unvetted dependencies
[ ] Docs and changelog updated
[ ] CI green, and I ran it locally
[ ] Every comment is prefixed with a severity
[ ] Something specific praised
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-review, pull-request, open-source, maintainer, feedback
Other plugins' skills for the same job
18 skills in this plugin
/api-designDesign public interfaces for libraries and tools that other people depend on. Use when designing or reviewing a public API surface, deciding what to export, naming functions and CLI flags, adding configuration options, planning deprecations, or when the user asks "is this a good API" or "how do I change this without breaking users". Covers minimal surface area, error design, async and extension patterns, CLI ergonomics, config precedence, and stability guarantees. Also use before a 1.0 release to freeze the interface./ci-pipelinesDesign continuous integration for an open-source repository. Use when setting up GitHub Actions from scratch, when CI is slow or flaky, when adding a build matrix across OS and language versions, when configuring caching, or when handling PRs from forks that need secrets. Covers workflow structure, concurrency and cancellation, caching strategy, required checks and branch protection, self-hosted runner risks, and keeping CI cheap. Also use for "our CI takes 40 minutes" or "why is CI failing on forks"./contributor-experienceTurn users into contributors and make their first PR succeed. Use when a project gets stars but no contributions, when first-time PRs stall or get abandoned, when writing or improving CONTRIBUTING.md, when setting up a dev environment that works on the first try, or when the user asks "how do I get contributors" or "why does nobody contribute". Covers the contribution funnel, good first issues, local setup, mentorship, recognition, and onboarding a contributor into a maintainer.npx claudepluginhub the-open-agent/oss-skills --plugin oss-skills