public-code-review
Skill13 starsChanged 4 months agoMITView on GitHub
Review the current diff or a specified set of files as public open-source code before publishing or merging. Use to check code quality, public-repository safety (secrets and private data), documentation trustworthiness, provenance, onboarding, and maintainability. Reports grouped findings; does not fix them unless asked.
In this repository7 other files it gives its agents.
- dependency-reviewSkill
- implementation-integritySkill
- implement-minimalSkill
- oss-bootstrapSkill
- oss-planSkill
- release-deploySkill
- test-and-debugSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
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
- Distinctive: line 33
Read the first of these that exists, then follow it:
- Distinctive: line 38
If neither exists, apply this fallback: run one expensive command at a time, prefer the narrowest validation, disable watch mode, reuse …
- Distinctive: line 50
If neither exists, apply this fallback: select files before reading.
- Distinctive: line 66
Read the license so compatibility findings are accurate
- Distinctive: line 71
Run the review passes in order -> references/review-passes.md
- Distinctive: line 73
Run the privacy and provenance pass -> references/privacy-provenance.md
- Distinctive: line 75
Run the onboarding pass -> references/onboarding-review.md
- Distinctive: line 80
Stop; do not apply fixes unless the user asks
- Distinctive: line 84
Run these passes; each names what to look for -> references/review-passes.md
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
public-code-review
Review the current diff, or a clearly specified set of files, as public open-source code. Report findings; do not fix anything unless the user explicitly asks.
Activate when
- Code is about to be published or merged to a public repository
- A diff needs a safety and quality pass before release
- An external contribution needs review before acceptance
Do not activate when
- A test or build is failing and needs a fix -> use
test-and-debug - The change has not been implemented yet -> use
implement-minimal - The task is packaging and shipping a release -> use
release-deploy
Required inputs
- The diff to review, or an explicit list of files
- Whether the target repository is already public
- The project's stated license
Low-resource policy
Read the first of these that exists, then follow it:
${CLAUDE_PROJECT_DIR}/.claude/shared/LOW_RESOURCE.md$HOME/.claude/shared/LOW_RESOURCE.md
If neither exists, apply this fallback: run one expensive command at a time, prefer the narrowest validation, disable watch mode, reuse existing environments, and run full validation only at a milestone boundary. Do not scan the whole filesystem to locate the policy.
Context-efficiency policy
Read the first of these that exists, then follow it:
${CLAUDE_PROJECT_DIR}/.claude/shared/CONTEXT_EFFICIENCY.md$HOME/.claude/shared/CONTEXT_EFFICIENCY.md
If neither exists, apply this fallback: select files before reading; use targeted searches and bounded ranges; do not preload references; do not reread unchanged files; finish one atomic increment and stop; create a compact handoff before context is exhausted.
Facts that must not be assumed
- That the diff is the whole change; confirm the scope under review
- That secrets scanning tooling is installed
- That README claims match current behavior
- That copied code is licensed for redistribution
Preflight
git status --shortandgit diff --statto bound the review scope- Confirm whether the review is the working diff, a staged diff, or a file list
- Read the license so compatibility findings are accurate
Workflow
- Establish the exact set of files and hunks under review
- Run the review passes in order -> references/review-passes.md
- Run the privacy and provenance pass -> references/privacy-provenance.md
- Run the onboarding pass -> references/onboarding-review.md
- Classify each finding into one output group
- Produce the report using templates/public-review-report.md
- Stop; do not apply fixes unless the user asks
Review passes
Run these passes; each names what to look for -> references/review-passes.md
- Code quality
- Public-repository safety (secrets and private data)
- Trustworthiness of documentation and claims
- Maintainability
- Privacy and provenance -> references/privacy-provenance.md
- Onboarding -> references/onboarding-review.md
Decision branches
- A secret, key, or private datum is present -> blocking, and flag it for immediate rotation in human review
- A README claim contradicts behavior -> blocking until reconciled
- Copied code lacks a compatible license or attribution -> blocking
- A quality issue does not affect safety or correctness -> recommended cleanup
- A deliberate, explained compromise -> acceptable trade-off
Stop conditions
- The scope under review cannot be established
- The review would require running an unavailable external system
- A finding needs a human decision the reviewer cannot make (see below)
Human review boundaries
- Any detected secret, key, or private datum, regardless of apparent validity
- Auth, wallet, or user-data handling changes
- License or provenance questions on copied or bundled material
Final report
Produce the report in the exact section order of templates/public-review-report.md, with findings grouped as Blocking issues, Recommended cleanup, Acceptable trade-offs, and Files requiring human review. Do not fix anything unless the user explicitly asks.
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.

