Requesting code review

From Undermybelt/hermes-skills · View interactive version

Requesting code review is an AI agent skill from the GitHub repository Undermybelt/hermes-skills. Use when explicitly requesting an independent code review, after subagent-driven implementation slices, before merging high-risk work, or when verification finds evidence, baseline, architecture, compatibility, or retirement uncertainty that needs reviewer scrutiny.

How to use this skill

Skill file

Requesting Code Review

Dispatch aegis:code-reviewer subagent to catch issues before they cascade. The reviewer gets precisely crafted context for evaluation β€” never your session's history. This keeps the reviewer focused on the work product, not your thought process, and preserves your own context for continued work.

This skill is the canonical review-request workflow for method-pack implementation work. Use it to request review only after you have enough evidence, enough context, and a clear authority boundary for what the reviewer is being asked to assess.

Core principle: Review early, review often.

Findings First: Reviews lead with concrete findings before summary. Use

bugs first, risk first, tests first. Strengths and general assessment are still

useful, but they must not bury correctness, evidence, architecture, or

retirement problems.

Review readiness is not merge approval. A review can reduce uncertainty and

recommend readiness, but it does not replace verification-before-completion

and does not grant completion authority.

When to Request Review

Mandatory:

Optional but valuable:

Required Outputs

Before you leave this workflow, you must be able to state:

  1. What exact scope is being reviewed
  2. What plan, requirement, or contract defines success
  3. What Product / Requirement Baseline defines accepted behavior and non-goals
  4. What Architecture / Runtime Boundary Baseline defines the expected architecture state
  5. What fresh evidence already exists
  6. What compatibility boundary must still hold
  7. What old owner / fallback / patch stays, shrinks, or retires
  8. What the reviewer must specifically validate
  9. Whether the reviewer is providing advisory review only, or also any higher-level merge recommendation

Review in this method pack is advisory and evidence-oriented. It is not authoritative completion by itself.

How to Request

1. Gather minimum review inputs:

requirements/product alignment and architecture/current-authority alignment

Auto Backfill or baseline sync findings

an ADR action or baseline sync closure is in scope

If you cannot answer these, stop and gather them before dispatching review.

2. Get git SHAs:

BASE_SHA=$(git rev-parse HEAD~1)  # or origin/main
HEAD_SHA=$(git rev-parse HEAD)

3. Dispatch code-reviewer subagent:

Use Task tool with aegis:code-reviewer type, fill template at code-reviewer.md

Placeholders:

4. Act on feedback:

legacy alias such as architecture drift, decide explicitly whether to repair

now, correct the baseline, or record retirement conditions

Example

[Just completed Task 2: Add verification function]

You: Let me request code review before proceeding.

BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
HEAD_SHA=$(git rev-parse HEAD)

[Dispatch aegis:code-reviewer subagent]
  WHAT_WAS_IMPLEMENTED: Verification and repair functions for conversation index
  PLAN_OR_REQUIREMENTS: Task 2 from docs/aegis/plans/deployment-plan.md
  EVIDENCE: pytest tests/index/test_verify.py -v -> 12 passed
  COMPATIBILITY_BOUNDARY: Existing index format and CLI flags must remain stable
  RETIREMENT_NOTES: Legacy repair fallback still exists in old helper; remove once new path covers all four issue types
  BASE_SHA: a7981ec
  HEAD_SHA: 3df7661
  DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types

[Subagent returns]:
  Strengths: Clean architecture, real tests
  Issues:
    Important: Missing progress indicators
    Minor: Magic number (100) for reporting interval
  Assessment: Ready to proceed

You: [Fix progress indicators]
[Continue to Task 3]

Integration with Workflows

Subagent-Driven Development:

Executing Plans:

Ad-Hoc Development:

What the Reviewer Must Check

The review request must prompt the reviewer to inspect at least:

non-goals

source-of-truth, compatibility, and retirement boundaries

scope: requirements | architecture | both

drift must map back to Design Defect / Implementation Drift rather than

becoming parallel result vocabularies

decisions

baseline sync closure is in scope

If the review only asks β€œis this code good?”, it is underspecified.

Red Flags

Never:

If reviewer wrong:

Review Boundaries

See template at: requesting-code-review/code-reviewer.md

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.