All commands

Harness Component — Command

OCR: Create Reviewer

Create a new custom reviewer from a natural language description.

Runtimeuniversal
Intentreview

Definition

Usage

/ocr-create-reviewer {name} --focus "{description}"

Examples

create-reviewer rust-safety --focus "Memory safety, ownership patterns, lifetime management, unsafe block auditing"
create-reviewer api-design --focus "REST API design, backwards compatibility, versioning, error response consistency"
create-reviewer graphql --focus "Schema design, resolver efficiency, N+1 queries, type safety"

What it does

Creates a new reviewer markdown file in .ocr/skills/references/reviewers/, following the standard reviewer template structure, and automatically syncs the metadata so the dashboard can see the new reviewer.

Steps

  1. Parse arguments: Extract the reviewer name and --focus description from the arguments.

    • Normalize the name to a slug: lowercase, hyphens for spaces, alphanumeric + hyphens only
    • Example: "API Design" → api-design
  2. Check for duplicates: Verify .ocr/skills/references/reviewers/{slug}.md does NOT already exist.

    • If it exists, report: "Reviewer {slug} already exists. Edit the file directly at .ocr/skills/references/reviewers/{slug}.md."
    • Stop — do not overwrite.
  3. Read the template (REQUIRED — this is the source of truth for reviewer structure): Read .ocr/skills/assets/reviewer-template.md. This file defines the exact sections, ordering, and format every reviewer MUST follow. Do not invent sections or skip sections — adhere to the template.

  4. Read exemplars: Read 2-3 existing reviewer files from .ocr/skills/references/reviewers/ as style reference. Good choices:

    • One holistic reviewer (e.g., architect.md or fullstack.md)
    • One specialist reviewer close to the requested domain (if applicable)
    • Study the tone, section depth, and specificity level
  5. Generate the reviewer file: Write a complete reviewer markdown file that follows the template structure from step 3:

    • Starts with # {Display Name} Reviewer (title case, no "Principal" prefix — a
View full source (4,074 chars) on GitHub

More from spencermarx/open-code-review