agentleFS
MetaX-MACAMetaX-MACA/vLLM-metax/.agents/skills/independent-review/SKILL.md

independent-review

Skill194 starsChanged 8 days agoApache-2.0View on GitHub

Perform a fresh-context review of staged, unstaged, commit or commit-range code and produce a machine-checkable review artifact bound to the exact reviewed diff.

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use security-review.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill whenever a workflow needs a code review that is independent from the implementer.

    line 8
  2. Distinctive:

    Create a review context bound to the exact target:

    line 29
  3. Distinctive:

    Start a fresh reviewer. Give it the context path, repository/worktree, and the specific diff.

    line 45
  4. Very specific:

    Write <run-dir>/REVIEW.json with the schema in review-modes.md.

    line 52
  5. Distinctive:

    Do not claim a domain-specific approval from this generic result alone.

    line 80

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “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

Independent Review

Use this skill whenever a workflow needs a code review that is independent from the implementer. It supports:

  • staged index review;
  • unstaged worktree review, including untracked files;
  • one commit against a base;
  • a commit range.

This skill is repository-agnostic inside vLLM-MetaX. Domain skills may add their own applicability, validation or merge gates on top, but should reuse this skill for the general code-review pass.

Independence

The reviewer must be a fresh task/subagent or human who did not implement the change. The implementer cannot write or approve the review artifact.

The reviewer is read-only for source and Git state. It writes only the review JSON.

Workflow

  1. Create a review context bound to the exact target:

    # Staged index
    python .agents/skills/independent-review/scripts/review_context.py snapshot      --repo . --mode staged --output <run-dir>/REVIEW-CONTEXT.json
    
    # Unstaged worktree, including untracked files
    python .agents/skills/independent-review/scripts/review_context.py snapshot      --repo . --mode worktree --output <run-dir>/REVIEW-CONTEXT.json
    
    # One commit
    python .agents/skills/independent-review/scripts/review_context.py snapshot      --repo . --mode commit --base <base-sha> --head <commit-sha>      --output <run-dir>/REVIEW-CONTEXT.json
    
    # Commit range
    python .agents/skills/independent-review/scripts/review_context.py snapshot      --repo . --mode range --base <base-sha> --head <head-sha>      --output <run-dir>/REVIEW-CONTEXT.json
  2. Start a fresh reviewer. Give it the context path, repository/worktree, and the specific diff. The reviewer inspects the actual diff and relevant surrounding code.
  3. Review correctness, regressions, design fit, error handling, tests, resource lifetime, security, compatibility and maintainability. Domain skills may provide additional review questions.
  4. Write <run-dir>/REVIEW.json with the schema in review-modes.md.
  5. Validate that the review still belongs to the current target:

    python .agents/skills/independent-review/scripts/check_review.py      --context <run-dir>/REVIEW-CONTEXT.json      --review <run-dir>/REVIEW.json      --verify-context

For workflows that require approval, add --require-approval.

Domain review profiles

A workflow may pass an additional domain review profile. The profile may add applicability checks, domain verdicts, artifact paths and validators, but it cannot weaken this skill's independence, read-only or exact-target requirements.

For a code review, keep the generic review result valid as well: write one superset artifact containing both schemas, or a separate generic REVIEW.json. Applicability-only profiles can define their own artifact when no code diff exists yet. Follow the profile's additional validator after the generic checker.

Output status

  • APPROVE: no blocking or major findings remain.
  • CHANGES_REQUIRED: at least one blocking or major finding exists.
  • BLOCKED: the review target is ambiguous, stale or cannot be inspected.

Do not claim a domain-specific approval from this generic result alone. Branch-port, model, patch and release workflows must still satisfy their own gates.

Staleness

review_context.py snapshot records hashes of the reviewed diff/index/untracked manifest. check_review.py --verify-context recomputes them. Any changed staged content, worktree file or commit SHA invalidates the review.

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.