agentleFS
kirubaharan181kirubaharan181/sdlc-agentic-skills/skills/code-review/code-review-quality/SKILL.md

code-review-quality

Skill1 starsChanged 18 days agoMITView on GitHub

Use when assessing a pull request for correctness, design, standards, merge readiness. Do NOT use for writing code.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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:

    No external API keys, paid services or network access are required.

    line 29
  2. Distinctive:

    test and tool results

    line 34
  3. Distinctive:

    Verify test quality and that evidence refers to the exact reviewed commit.

    line 50
  4. Distinctive:

    Does not approve merge by itself: a named human reviewer approves where required.

    line 92

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

Independent engineering review

Purpose

Provides independent review of changes before merge: pull request quality, peer review, architecture conformance, static analysis, dependency and coverage review, standards validation and technical debt. It owns stages 68-76 and keeps reviewers independent of authors.

When to Use

  • A pull request needs review before merge.
  • Static analysis, dependency or coverage results need interpreting.
  • A change must be checked against agreed architecture or standards.

When NOT to Use

  • Implementing the change: use software-implementation.
  • Running the test suites: use quality-assurance.
  • Scanning for vulnerabilities: use application-security.

Prerequisites and Requirements

  • A pull request or diff with tests and a description.
  • Coding standards and tool configuration (see engineering-governance).
  • Reviewer who is not the author.
  • No external API keys, paid services or network access are required; work uses files and tools already approved in the repository.

Inputs and Outputs

Required inputs:

  • diff and description
  • test and tool results

Optional inputs:

  • architecture decisions
  • coverage data
  • dependency lock files

Outputs and deliverables:

  • review findings split into blockers and suggestions
  • tool result summary
  • merge decision recommendation
  • follow-up debt items

Procedure

  1. Inspect complete diff, target branch, acceptance criteria and architecture context.
  2. Review edge cases, concurrency, data safety, API compatibility, security and dependency risk.
  3. Verify test quality and that evidence refers to the exact reviewed commit.
  4. Classify findings by severity and recommend merge, changes or block with actionable evidence.

Shared rules (evidence, approvals, failure, handoff): references/CORE_PROCEDURE.md.

Decision Rules

SituationAction
Tool configuration weakened in the same changeReview the configuration change separately.
New suppression comment addedRequire a reason and owner.
Coverage falls on changed codeAsk for tests or a recorded decision.
Author and reviewer are the sameReject the review; request an independent one.

Quality Gates

  • All tools ran on the change
  • Findings cite file, rule and reason
  • Blockers are separated from suggestions
  • Reviewer is independent

Examples

Illustrative only: these show expected behavior and were not executed against a real project.

Example 1: Review a pull request

Request: Review PR 482 which adds refund handling.
Context: Diff touches payments and orders; tests included.
Agent behavior: Run tool checks, read the diff for error handling and authorization, check coverage on changed lines, and list blockers separately.
Output: Review with one blocker (no ownership check) and two suggestions.
Acceptance: Blocker has a file reference and a fix suggestion.

Example 2: Judge a suppression

Request: The change adds two lint suppressions.
Context: One has a ticket; one hides an unused variable.
Agent behavior: Accept the documented one, reject the other and ask for removal.
Output: Findings with the decision for each.
Acceptance: Each added suppression has a recorded decision.

Limitations

  • Cannot find defects in code it was not shown or tests that were not run.
  • Does not approve merge by itself: a named human reviewer approves where required.
  • Static analysis gives false positives and negatives.

Troubleshooting

ErrorCauseResolution
Tool results missingCI did not runState that review is incomplete and ask for the results.
Diff too largeMixed concernsAsk the author to split it.
Reviewer disagreementStandards unclearEscalate to the engineering lead and record the decision.

Tools

  • Git diff/blame
  • static analysis
  • test/coverage reports
  • dependency and security reports

Stages covered

StageNameStatusAccountable role
68Pull Request CreationcompleteFull Stack Engineer
69Peer Code ReviewcompleteCode Reviewer
70Architecture ReviewcompleteArchitecture Reviewer
71Static Code AnalysiscompleteDevSecOps Engineer
72Dependency ReviewcompleteDevSecOps Engineer
73Code Coverage ReviewcompleteCode Reviewer
74Coding Standards ValidationcompleteCode Reviewer
75Merge ApprovalcompleteMerge Steward
76Technical Debt ReviewcompleteSoftware Architect

Per-stage inputs, outputs, acceptance criteria and validation: references/stages.md.

Handoffs

Hands to:

  • quality-assurance: approved change with review findings
  • software-implementation: blocker findings for rework
  • engineering-governance: recurring findings as proposed rules

Receives from:

  • software-implementation: pull request with tests and notes

Contract: references/HANDOFF_CONTRACT.md.

Related

  • Examples (illustrative only): see the files in references/examples/.
  • Workflows: api-version-upgrade, bug-fix, dependency-update, emergency-hotfix, existing-application-enhancement, feature-development, new-product-development, security-vulnerability-remediation, technical-debt-reduction.
  • Roles: architecture-reviewer, code-reviewer, devsecops-engineer, engineering-governance-specialist, frontend-engineer, full-stack-engineer, license-compliance-specialist, merge-steward, software-architect, unit-testing-specialist.
  • Selection and handoff guidance: the skill selection guide in the repository documentation.

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.