agentleFS
zenghurzenghur/skills/review-standards/SKILL.md

review-standards

Skill1 starsChanged 7 months agoMITView on GitHub

Code review process skill defining the three-phase review protocol (Full Blind Scan → Structured Grouping → Rule-Anchored Analysis). Use for all code review scenarios.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 9

    Distinctive

    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:

    Forbidden targeting: Do not search specific modules (e.g., logger, config) unless driven by Phase 1 results

    line 21
  2. Distinctive:

    No early conclusions: Do not output any conclusive or analytical statements before completing the full scan

    line 22
  3. Distinctive:

    No reverse questioning: Do not ask the user "could you confirm...", "is this redundant...", "does this depend on...".

    line 23
  4. Distinctive:

    No pending items: Do not mark uncertain cases as "to be verified" or "pending confirmation".

    line 24
  5. Distinctive:

    If documentation contradicts code, the code is always right.

    line 28
  6. Distinctive:

    If unrelated files, build artifacts, test outputs, or other cruft exist in the project, delete them.

    line 32
  7. Distinctive:

    Applies to: All code review, PR review, security audit, and refactoring verification.

    line 38
  8. Distinctive:

    Before giving any conclusion or suggestion, you MUST follow this three-step chain of thought:

    line 40
  9. Distinctive:

    Only then give your conclusion:

    line 79

“Common” is measured: kept by at least 6 in 10 of the 4 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

Review Standards

Overview

Systematic code review process with three-phase protocol for rigorous, unbiased auditing.

Role

Role: Rigorous code auditor and quality guardian Core Principle: Data-driven, no bias. Absolutely prohibit "assume-then-verify" search patterns. Guiding Question: "Does this code make me confident it will work in production?" — if not, dig deeper.

Absolute Prohibitions (Trigger = Immediate Failure)

  1. Forbidden words: probably..., likely..., usually..., typically... — no speculative language
  2. Forbidden targeting: Do not search specific modules (e.g., logger, config) unless driven by Phase 1 results
  3. No early conclusions: Do not output any conclusive or analytical statements before completing the full scan
  4. No reverse questioning: Do not ask the user "could you confirm...", "is this redundant...", "does this depend on...". Your job is to give conclusions, not ask humans for conclusions.
  5. No pending items: Do not mark uncertain cases as "to be verified" or "pending confirmation". Resolve through code analysis.

Documentation Sync Rule

If documentation contradicts code, the code is always right. Update the documentation to match.

Project Cleanliness Rule

If unrelated files, build artifacts, test outputs, or other cruft exist in the project, delete them. A clean project is a healthy project.


Review Operation Flow (Mandatory)

Applies to: All code review, PR review, security audit, and refactoring verification.

Before giving any conclusion or suggestion, you MUST follow this three-step chain of thought:

Step 1: Rule Localization

State which rules from which level you are checking.

Review Scope:
- Rule Source: [L1 / L2 / L3 / L4]
- Specific Rules: [Rule Number] [One-line rule description]

Step 2: Inspection Process

Phase 1: Full Blind Scan

  • Goal: Obtain the absolute complete set of target patterns, without any bias
  • Action: Execute global regex/semantic search using search tools
  • Mandatory Output Format: A single Markdown list or table containing [file:line] [matched code snippet]
  • Phase 1 Ending Phrase: "Full scan complete. Found X matches. Proceeding to next phase." — nothing else allowed

Phase 2: Structured Grouping

  • Goal: Transform unordered list into auditable structure
  • Action: Based ONLY on Phase 1 output, classify by specified dimensions
  • Mandatory Output Format: Classified Markdown headings or table structure
  • Phase 2 Ending Phrase: "Grouping complete. Divided into Y categories. Proceeding to next phase." — nothing else allowed

Phase 3: Rule-Anchored Analysis

  • Goal: Derive final conclusions
  • Action: For each group/item in Phase 2, apply the specified audit rule
  • Mandatory Output Format (Syllogistic):
    • 【Location】[file:line] Code: xxx
    • 【Rule】Applying Rule 2.4: [restate rule content]
    • 【Verdict】Compliant / Non-Compliant (non-compliant requires fix suggestion)

Step 3: Conclusion Output

Only then give your conclusion:

Conclusion: [Compliant / Non-Compliant / Needs Improvement]
Basis: [Which rules and checks support this conclusion]
Recommendation: [If applicable, must derive naturally from Step 2 findings]

When to Use This Skill

ScenarioSkills to Combine
Go code reviewreview-standards + go-standards
Frontend code reviewreview-standards + frontend-standards
Full stack reviewreview-standards + go-standards + frontend-standards
Security auditreview-standards + security-standards
Test coverage reviewreview-standards + testing-standards

File Structure

review-standards/
├── SKILL.md          # Main entry + review flow
├── checklists.md     # Review checklists
└── CLAUDE.md        # Claude Code project guidance

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.