Skip to content
ln-513-agent-reviewer logo

Agent Reviewer (Code)

ln-513-agent-reviewer

Runs parallel external agent reviews (Codex + Gemini) on code changes. Process-as-arrive, critical verification with debate. Returns filtered suggestions.

SKILL.md

Full skill instructions

Paths: File paths (shared/, references/, ../​ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.

Agent Reviewer (Code)

Runs parallel external agent reviews on code implementation, critically verifies suggestions, returns filtered improvements.

Purpose & Scope

  • Worker in ln-510 quality coordinator pipeline (invoked by ln-510 Phase 4)
  • Run codex-review + gemini-review as background tasks in parallel
  • Process results as they arrive (first-finished agent processed immediately)
  • Critically verify each suggestion; debate with agent if Claude disagrees
  • Return filtered, deduplicated, verified suggestions with confidence scoring
  • Health check + prompt execution in single invocation

When to Use

  • Invoked by ln-510-quality-coordinator Phase 4 (Agent Review)
  • All implementation tasks in Story status = Done
  • Code quality (ln-511) and tech debt cleanup (ln-512) already completed

Parameters

ParameterValue
review_typecodereview
skill_group513
prompt_templateshared/​agents/​prompt_templates/​code_review.md
verdict_acceptableCODE_ACCEPTABLE

Inputs

InputRequiredSourceDescription
storyIdYesargs, git branch, kanban, userStory to process

Resolution: Story Resolution Chain. Status filter: In Progress, To Review

Workflow

MANDATORY READ: Load shared/​references/​input_resolution_pattern.md, shared/​references/​tools_config_guide.md, shared/​references/​storage_mode_detection.md, shared/​references/​agent_review_workflow.md, and shared/​references/​agent_delegation_pattern.md.

Phase 0: Resolve Inputs & Tools Config

  1. Resolve storyId (per input_resolution_pattern.md):

    • IF args provided → use args
    • ELSE IF git branch matches feature/​{id}-* → extract id
    • ELSE IF kanban has exactly 1 Story in [In Progress, To Review] → suggest
    • ELSE → AskUserQuestion: show Stories from kanban filtered by [In Progress, To Review]
  2. Extract: task_provider from docs/​tools_config.md (per tools_config_guide.md).

Unique Steps (before shared workflow)

  1. Health check: per shared workflow, filter by skill_group = 513.

  2. Get references:

    • IF task_provider = linear: get_issue(storyId) → extract URL + identifier. list_issues(filter: {parent: {id: storyId}, status: "Done"}) → extract Done implementation Task URLs/​identifiers (exclude label "tests").
    • IF task_provider = file: Read story.md → extract path. Glob("docs/​tasks/​epics/​*/​stories/​*/​tasks/​*.md") → filter Done tasks (check **Status:** Done), exclude label "tests".
  3. Ensure .agent-review/: per shared workflow.

  4. Build prompt: Read template shared/​agents/​prompt_templates/​code_review.md.

    • Replace {story_ref} with - Linear: {url} or - File: {path}
    • Replace {task_refs} with bullet list: - {identifier}: {url_or_path} per task
    • Save to .agent-review/​{identifier}_codereview_prompt.md (single shared file -- both agents read the same prompt)

Shared Workflow Steps

5-8) Load Review Memory, Run agents, Critical Verification + Debate, Aggregate + Return: per shared workflow.

  • {review_type} = "Code Implementation" (for challenge template)
  1. Save Review Summary: per shared workflow "Step: Save Review Summary".

Output Format

verdict: CODE_ACCEPTABLE | SUGGESTIONS | SKIPPED
suggestions:
  - area: "security | performance | architecture | correctness | best_practices"
    issue: "What is wrong"
    suggestion: "Specific fix"
    confidence: 95
    impact_percent: 15
    source: "codex-review"
    resolution: "accepted | accepted_after_debate | accepted_after_followup | rejected"

Agent stats and debate log per shared workflow output schema.

Fallback Rules

Per shared workflow, plus:

ConditionAction
Parent skill (ln-510)Falls back to Self-Review (native Claude)

Verdict Escalation

  • Findings with area=security or area=correctness -> parent skill can escalate PASS -> CONCERNS
  • This skill returns raw verified suggestions; escalation decision is made by ln-510

Critical Rules (additional)

  • MANDATORY INVOCATION: Parent skills MUST invoke this skill. Returns SKIPPED gracefully if agents unavailable. Parent must NOT pre-check and skip.

Reference Files

  • Tools config: shared/​references/​tools_config_guide.md
  • Storage mode operations: shared/​references/​storage_mode_detection.md
  • Shared workflow: shared/​references/​agent_review_workflow.md
  • Agent delegation pattern: shared/​references/​agent_delegation_pattern.md
  • Prompt template (review): shared/​agents/​prompt_templates/​code_review.md
  • Challenge schema: shared/​agents/​schemas/​challenge_review_schema.json

Version: 2.0.0 Last Updated: 2026-02-11

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View