map-template
Template for the final map output (`map.md`). Optimized for reviewer workflow: understand context first, then track per-file review progress.
$ npx -y skills add spencermarx/open-code-review --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Template for the final map output (`map.md`). Optimized for reviewer workflow: understand context first, then track per-file review progress.
Agent definition
map-template.mdCode Review Map Template
Template for the final map output (`map.md`). Optimized for reviewer workflow: understand context first, then track per-file review progress.
---
Complete Template
# Code Review Map
**Session**: {session_id} | **Generated**: {timestamp} | **Files**: {file_count} | **Sections**: {section_count}
> Mark `X` in Done column as you complete review. Requirements: ✅ full | ⚠️ partial | ❌ none
---
## Executive Summary
{1-2 paragraph narrative explaining what this changeset accomplishes. Frame as a hypothesis.}
**Hypothesis**: {One sentence summary of inferred intent}
**Key Approaches**:
- {Approach 1}: {Brief description}
- {Approach 2}: {Brief description}
---
## Questions & Clarifications
> Ambiguities and assumptions that need verification with the author.
### Questions for Author
- {Question about unclear intent or ambiguous requirement}
- {Question about design choice or deferred work}
### Assumptions Made
- {Assumption 1 — verify if uncertain}
- {Assumption 2 — verify if uncertain}
---
## Requirements Coverage
{Only include if requirements were provided}
| Requirement | Status | Implementing Files |
|-------------|--------|-------------------|
| REQ-1: {description} | ✅ Full | `file1.ts`, `file2.ts` |
| REQ-2: {description} | ⚠️ Partial | `file3.ts` |
| REQ-3: {description} | ❌ Not covered | — |
**Gaps**: {Brief note on unaddressed requirements, if any}
---
## Critical Review Focus
> High-value areas where human judgment matters most. Review these carefully.
| Focus Area | Files | Why It Matters | Req / Concern |
|------------|-------|----------------|---------------|
| {Area, e.g., "Business Logic"} | `file1.ts`, `file2.ts` | {Reason, e.g., "Complex pricing conditionals"} | REQ-1 |
| {Area, e.g., "Security"} | `auth.ts` | {Reason, e.g., "Token validation"} | Security |
| {Area, e.g., "Edge Cases"} | `processor.ts:78` | {Reason, e.g., "Empty array returns null"} | Correctness |
---
## Manual Verification
> Run these tests before or during code review to verify the changeset works.
### Critical Path
- [ ] **{Test Name}** (REQ-1) — {Steps} → Expected: {outcome}
- [ ] **{Test Name}** (REQ-2) — {Steps} → Expected: {outcome}
### Edge Cases & Error Handling
- [ ] **{Edge case}** (`file.ts:42`) — {Steps} → Expected: {behavior}
- [ ] **{Error scenario}** — Trigger: {how} → Expected: {handling}
### Non-Functional
- [ ] **Performance**: {Specific check}
- [ ] **Security**: {Specific check}
---
## File Review
{Main tracking section. Review files in section order, checking boxes as you go.}
### Section 1: {Section Title}
{1-2 sentence narrative hypothesis about this section's purpose}
| Done | File | Role |
|:----:|------|------|
| | `path/to/file1.ts` | {brief role description} |
| | `path/to/file2.ts` | {brief role description} |
| | `path/to/file3.test.ts` | {brief role description} |
**Flow**: {Entry point} → {calls} → {tests}
**Requirements**: REQ-1 ✅, REQ-2 ⚠️
**Review Suggestions**:
- {Specific area to pay attention to, mapped to requirement or concern}
- {Only include if there are key things reviewer should watch for}
---
### Section 2: {Section Title}
{1-2 sentence narrative hypothesis}
| Done | File | Role |
|:----:|------|------|
| | `path/to/file.ts` | {role} |
**Flow**: {flow summary}
**Requirements**: {coverage}
---
{Repeat for each section}
---
### Unrelated Changes
> Files that don't fit the main sections — opportunistic fixes or supporting changes.
| Done | File | Description |
|:----:|------|-------------|
| | `path/to/unrelated1.ts` | {description} |
| | `path/to/unrelated2.ts` | {description} |
---
## Section Dependencies
> How sections connect. Used by the dashboard dependency graph.
| From | To | Relationship |
|------|-----|-------------|
| 1: {Section Title} | 2: {Section Title} | {3-8 word description of dependency} |
| 2: {Section Title} | 3: {Section Title} | {3-8 word description of dependency} |
---
## File Index
| File | Section |
|------|---------|
| `path/to/api/auth.ts` | 1: {name} |
| `path/to/services/auth.service.ts` | 1: {name} |
| `path/to/utils/helper.ts` | Unrelated |
**Total**: {file_count} files
---
## Map Metadata
**Run**: {run_number} | **Flow Analysts**: {count} | **Requirements Mappers**: {count} | **Completeness**: {file_count}/{file_count} ✅---
Format Guidelines
Section Structure
### Section {n}: {Title}
{1-2 sentence narrative hypothesis}
| Done | File | Role |
|:----:|------|------|
| | `path/to/file.ts` | {role} |
**Flow**: {entry} → {calls} → {tests}
**Requirements**: REQ-1 ✅, REQ-2 ⚠️
**Review Suggestions**:
- {Only if key things to watch for}**Titles**: Use descriptive names (✅ "Authentication Flow", ❌ "Files 1-5")
**Role descriptions**: 3-10 words explaining what the file does
Review Suggestions (per section)
Include ONLY if there are specific areas worth highlighting:
- Business logic requiring human judgment
- Security-sensitive code paths
- Edge cases spotted during mapping
- Architectural decisions to verify
Map suggestions to requirements or concerns. Do NOT perform code review — just flag areas for the reviewer's attention.
**Good**: "Complex pricing conditionals — verify tier logic matches REQ-4" **Bad**: "This function has a bug on line 42" (that's code review)
Section Dependencies
Populate from cross-file flows identified during flow analysis:
- Use `{number}: {Title}` format matching section headings (e.g., `1: Authentication Flow`)
- Direction follows call/data flow: caller section → callee section
- Relationship is a 3-8 word description (e.g., "Auth middleware protects routes")
- Only include meaningful cross-section dependencies — not every possible connection
- If sections are independent, leave the table body empty (keep headers)
Requirements Coverage Indicators
- ✅ Full coverage
- ⚠️ Partial coverage
- ❌ Not covered
- ❓ Cannot assess
Writing Hypotheses
Read more
Code Review Map Template
Template for the final map output (`map.md`). Optimized for reviewer workflow: understand context first, then track per-file review progress.
---
Complete Template
# Code Review Map
**Session**: {session_id} | **Generated**: {timestamp} | **Files**: {file_count} | **Sections**: {section_count}
> Mark `X` in Done column as you complete review. Requirements: ✅ full | ⚠️ partial | ❌ none
---
## Executive Summary
{1-2 paragraph narrative explaining what this changeset accomplishes. Frame as a hypothesis.}
**Hypothesis**: {One sentence summary of inferred intent}
**Key Approaches**:
- {Approach 1}: {Brief description}
- {Approach 2}: {Brief description}
---
## Questions & Clarifications
> Ambiguities and assumptions that need verification with the author.
### Questions for Author
- {Question about unclear intent or ambiguous requirement}
- {Question about design choice or deferred work}
### Assumptions Made
- {Assumption 1 — verify if uncertain}
- {Assumption 2 — verify if uncertain}
---
## Requirements Coverage
{Only include if requirements were provided}
| Requirement | Status | Implementing Files |
|-------------|--------|-------------------|
| REQ-1: {description} | ✅ Full | `file1.ts`, `file2.ts` |
| REQ-2: {description} | ⚠️ Partial | `file3.ts` |
| REQ-3: {description} | ❌ Not covered | — |
**Gaps**: {Brief note on unaddressed requirements, if any}
---
## Critical Review Focus
> High-value areas where human judgment matters most. Review these carefully.
| Focus Area | Files | Why It Matters | Req / Concern |
|------------|-------|----------------|---------------|
| {Area, e.g., "Business Logic"} | `file1.ts`, `file2.ts` | {Reason, e.g., "Complex pricing conditionals"} | REQ-1 |
| {Area, e.g., "Security"} | `auth.ts` | {Reason, e.g., "Token validation"} | Security |
| {Area, e.g., "Edge Cases"} | `processor.ts:78` | {Reason, e.g., "Empty array returns null"} | Correctness |
---
## Manual Verification
> Run these tests before or during code review to verify the changeset works.
### Critical Path
- [ ] **{Test Name}** (REQ-1) — {Steps} → Expected: {outcome}
- [ ] **{Test Name}** (REQ-2) — {Steps} → Expected: {outcome}
### Edge Cases & Error Handling
- [ ] **{Edge case}** (`file.ts:42`) — {Steps} → Expected: {behavior}
- [ ] **{Error scenario}** — Trigger: {how} → Expected: {handling}
### Non-Functional
- [ ] **Performance**: {Specific check}
- [ ] **Security**: {Specific check}
---
## File Review
{Main tracking section. Review files in section order, checking boxes as you go.}
### Section 1: {Section Title}
{1-2 sentence narrative hypothesis about this section's purpose}
| Done | File | Role |
|:----:|------|------|
| | `path/to/file1.ts` | {brief role description} |
| | `path/to/file2.ts` | {brief role description} |
| | `path/to/file3.test.ts` | {brief role description} |
**Flow**: {Entry point} → {calls} → {tests}
**Requirements**: REQ-1 ✅, REQ-2 ⚠️
**Review Suggestions**:
- {Specific area to pay attention to, mapped to requirement or concern}
- {Only include if there are key things reviewer should watch for}
---
### Section 2: {Section Title}
{1-2 sentence narrative hypothesis}
| Done | File | Role |
|:----:|------|------|
| | `path/to/file.ts` | {role} |
**Flow**: {flow summary}
**Requirements**: {coverage}
---
{Repeat for each section}
---
### Unrelated Changes
> Files that don't fit the main sections — opportunistic fixes or supporting changes.
| Done | File | Description |
|:----:|------|-------------|
| | `path/to/unrelated1.ts` | {description} |
| | `path/to/unrelated2.ts` | {description} |
---
## Section Dependencies
> How sections connect. Used by the dashboard dependency graph.
| From | To | Relationship |
|------|-----|-------------|
| 1: {Section Title} | 2: {Section Title} | {3-8 word description of dependency} |
| 2: {Section Title} | 3: {Section Title} | {3-8 word description of dependency} |
---
## File Index
| File | Section |
|------|---------|
| `path/to/api/auth.ts` | 1: {name} |
| `path/to/services/auth.service.ts` | 1: {name} |
| `path/to/utils/helper.ts` | Unrelated |
**Total**: {file_count} files
---
## Map Metadata
**Run**: {run_number} | **Flow Analysts**: {count} | **Requirements Mappers**: {count} | **Completeness**: {file_count}/{file_count} ✅---
Format Guidelines
Section Structure
### Section {n}: {Title}
{1-2 sentence narrative hypothesis}
| Done | File | Role |
|:----:|------|------|
| | `path/to/file.ts` | {role} |
**Flow**: {entry} → {calls} → {tests}
**Requirements**: REQ-1 ✅, REQ-2 ⚠️
**Review Suggestions**:
- {Only if key things to watch for}**Titles**: Use descriptive names (✅ "Authentication Flow", ❌ "Files 1-5")
**Role descriptions**: 3-10 words explaining what the file does
Review Suggestions (per section)
Include ONLY if there are specific areas worth highlighting:
- Business logic requiring human judgment
- Security-sensitive code paths
- Edge cases spotted during mapping
- Architectural decisions to verify
Map suggestions to requirements or concerns. Do NOT perform code review — just flag areas for the reviewer's attention.
**Good**: "Complex pricing conditionals — verify tier logic matches REQ-4" **Bad**: "This function has a bug on line 42" (that's code review)
Section Dependencies
Populate from cross-file flows identified during flow analysis:
- Use `{number}: {Title}` format matching section headings (e.g., `1: Authentication Flow`)
- Direction follows call/data flow: caller section → callee section
- Relationship is a 3-8 word description (e.g., "Auth middleware protects routes")
- Only include meaningful cross-section dependencies — not every possible connection
- If sections are independent, leave the table body empty (keep headers)
Requirements Coverage Indicators
- ✅ Full coverage
- ⚠️ Partial coverage
- ❌ Not covered
- ❓ Cannot assess
Writing Hypotheses
AI-powered multi-agent code review. Simulates a customizable team of Engineers performing code review with built-in discourse.
Repo: spencermarx/open-code-review
Other agents on open-code-review.
- analyze-code-quality
Advanced code quality analysis agent for comprehensive code reviews and improvements
Open agent - code-analyzer
Advanced code quality analysis agent for comprehensive code reviews and improvements
Open agent - arch-system-design
Expert agent for system architecture design, patterns, and high-level technical decisions
Open agent - byzantine-coordinator
Coordinates Byzantine fault-tolerant consensus protocols with malicious actor detection
Open agent - crdt-synchronizer
Implements Conflict-free Replicated Data Types for eventually consistent state synchronization
Open agent - gossip-coordinator
Coordinates gossip-based consensus protocols for scalable eventually consistent systems
Open agent

