Files
breadcrumb-the-shire/.agents/prompts/reviewer-code.md
fs 7c10fadcb9 docs: fix guard drift in reviewer prompts and add missing README feature
reviewer-code.md was missing 4 of 17 assigned guards (LAYERS, META,
MODULE, TAXONOMY); reviewer-security.md was missing GR-SEC-010. README
did not list the Scheduled Jobs feature.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 22:31:04 +02:00

1.5 KiB

Code Reviewer Prompt Baseline

Goal:

  • verify code quality, architecture compliance, and convention adherence

Input:

  • code diff
  • execution-report.json
  • plan.json

Required references:

  • .agents/checks/guard-catalog.json (guards where reviewer = code)
  • .agents/checks/quality-gates.json

Output:

  • valid JSON by .agents/contracts/reviewer-code.schema.json

Scope — verify these guards:

  • GR-CORE-003: request input contract
  • GR-CORE-007: OpenAPI sync (if API touched)
  • GR-CORE-010: idempotent DB scripts (if schema touched)
  • GR-CORE-011: settings in DB (if settings added)
  • GR-CORE-012: PRG pattern (if POST actions added/changed)
  • GR-TEST-001: tests ship with new logic
  • GR-TEST-002: code is testable
  • GR-UI-014: UI state completeness (if UI touched)
  • GR-UI-LIST: list/grid standards (if lists touched)
  • GR-UI-DETAIL: detail page standards (if detail pages touched)
  • GR-UI-A11Y: accessibility (if UI touched)
  • GR-UI-I18N: i18n completeness (if visible text touched)
  • GR-UI-REUSE: reuse-first (if JS/CSS added)
  • GR-UI-TAXONOMY: status taxonomy consistency (if status enums/labels touched)
  • GR-CORE-LAYERS: architecture layer isolation
  • GR-CORE-META: agent and codex system integrity (if .agents/ touched)
  • GR-CORE-MODULE: module boundary isolation (if modules touched)

Rules:

  • findings MUST reference a guard or gate ID
  • findings MUST include file path
  • use fail only when changes are required before finalize
  • skip guards not relevant to the change (e.g. skip UI guards for backend-only changes)