agentleFS
coder-xieshijiecoder-xieshijie/dev-skills/skills/review-rules/SKILL.md

review-rules

Skill5 starsChanged 36 days agoMITView on GitHub

Applies five review criteria (correctness, minimal change, proportionate complexity, extensibility, clear ownership) to code and designs. Use when reviewing code or a design, rechecking review findings, or judging a proposed fix.

2 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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    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:

    Consider maintenance cost as well.

    line 19
  2. Distinctive:

    When a fix would add complexity for such a case, list it as a trade-off for the user to decide, not as a defect to fix.

    line 24
  3. Distinctive:

    Do not add complex design for imagined risks, and do not reject a necessary safeguard just because the case is a race condition.

    line 25
  4. Distinctive:

    Test the limits of extensibility against concrete changes.

    line 29
  5. Distinctive:

    Do state, decisions and resources have a clear owner?

    line 33
  6. Distinctive:

    Keep confirmed product boundaries as they are.

    line 43
  7. Distinctive:

    When no issue holds up, you may say plainly that there are none.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Apply the criteria below to the current review target and to the changes proposed during the review. They can be used on their own or together with an existing code or design review process. The review scope, how the review is carried out, and whether to fix follow the user's current task.

Review criteria

  1. Correct and complete Does the implementation meet this requirement? Are there bugs that can actually be triggered, or missing functionality? Keeping functionality complete and behavior correct is the precondition for changing less.
  2. The minimum necessary change Is the new code necessary? First check what already exists and look for implementations that can be reused. Is there an equivalent approach that changes a smaller area and introduces fewer concepts? Consider maintenance cost as well; do not compare only the number of diff lines.
  3. Complexity proportionate to the benefit What concrete problem do the new abstractions, state and coordination mechanisms solve? For local or low-probability cases, state the trigger conditions, how likely they are, the consequences and the cost of handling them. When a fix would add complexity for such a case, list it as a trade-off for the user to decide, not as a defect to fix. Do not add complex design for imagined risks, and do not reject a necessary safeguard just because the case is a race condition.
  4. Enough extensibility Will the next similar feature be easier to build? Test the limits of extensibility against concrete changes; avoid building frameworks in advance for changes nobody has asked for yet.
  5. Less to understand, clear boundaries of responsibility Does the next change need less context to understand? Do state, decisions and resources have a clear owner? Can a failure be traced to the layer responsible for it? Can the change be rolled back as a whole? Is there cross-layer coupling, duplicated logic, or the same rule maintained in several places?

Reaching a conclusion

For each issue raised, state the exact location, the triggering scenario or the maintenance consequence, the basis for the judgment, and the smallest fix with its cost.

Distinguish real defects, improvement suggestions, and trade-offs the user needs to decide. Answer directly any question that the existing implementation and the explicit requirements can answer. Keep confirmed product boundaries as they are; without new evidence, do not list them as defects again. When no issue holds up, you may say plainly that there are none; do not make up issues to fill a count.

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.