agentleFS
olgaiv39olgaiv39/claude-oss-skills/skills/public-code-review/SKILL.md

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.

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
  1. Distinctive:

    Read the first of these that exists, then follow it:

    line 33
  2. Distinctive:

    If neither exists, apply this fallback: run one expensive command at a time, prefer the narrowest validation, disable watch mode, reuse …

    line 38
  3. Distinctive:

    If neither exists, apply this fallback: select files before reading.

    line 50
  4. Distinctive:

    Read the license so compatibility findings are accurate

    line 66
  5. Distinctive:

    Run the review passes in order -> references/review-passes.md

    line 71
  6. Distinctive:

    Run the privacy and provenance pass -> references/privacy-provenance.md

    line 73
  7. Distinctive:

    Run the onboarding pass -> references/onboarding-review.md

    line 75
  8. Distinctive:

    Stop; do not apply fixes unless the user asks

    line 80
  9. Distinctive:

    Run these passes; each names what to look for -> references/review-passes.md

    line 84

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. git status --short and git diff --stat to bound the review scope
  2. Confirm whether the review is the working diff, a staged diff, or a file list
  3. Read the license so compatibility findings are accurate

Workflow

  1. Establish the exact set of files and hunks under review
  2. Run the review passes in order -> references/review-passes.md
  3. Run the privacy and provenance pass -> references/privacy-provenance.md
  4. Run the onboarding pass -> references/onboarding-review.md
  5. Classify each finding into one output group
  6. Produce the report using templates/public-review-report.md
  7. 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.

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.