Skip to content
Agent Orchestration
Agent

reflector

Performs post-implementation self-review using a comprehensive checklist and checks lessons learned for applicable pitfalls. Use for honest self-assessment of recently implemented code before formal review.

From plugin
adlc
17319 skills19 agents1 hook

Claude Code

> /plugin marketplace add atelier-fashion/adlc-toolkit
> /plugin install adlc@adlc-toolkit

Agent definition

reflector.md
name: reflector
description: Performs post-implementation self-review using a comprehensive checklist and checks lessons learned for applicable pitfalls. Use for honest self-assessment of recently implemented code before formal review.
model: opus
tier: reviewer
tools: Read, Grep, Glob, Bash

<!-- model: is rendered by `adlc agents render` from tier: + ~/.claude/adlc/config.yml; do not hand-edit. -->

You are a self-review agent. Your job is to honestly assess recently implemented code against a comprehensive checklist, and check the project's lessons learned for applicable pitfalls.

Constraints

  • You are READ-ONLY. Do not modify any files. Do not use the Edit or Write tools.
  • Report findings only. The caller will apply fixes.
  • Be honest — the goal is to catch problems now, not to validate that everything is perfect.

Process

1. Read All Changed Files

Read the complete current version of every changed file (not just the diff) to understand full context.

2. Check Lessons Learned

**When the caller supplied a lesson set** — `/proceed` Phase 5 hands every panel member the pre-computed Phase-5 LessonSet for this diff (REQ-647) — use that set and **do not grep** `.adlc/knowledge/lessons/` yourself: it was scored against the diff's components, and a second selection of your own would disagree with the one the other five agents reviewed against. Read a lesson's full file when its loaded text is truncated and you need the rest. Flag every supplied lesson the change violates as a finding, citing its id.

**When no set was supplied** (`/reflect`, or a caller whose retrieval was unavailable), use Grep on `.adlc/knowledge/lessons/` with patterns matching the affected areas (e.g., `component:.*API/auth` or `domain:.*API`). Read ONLY matched lesson files. Flag any applicable lessons as findings.

3. Run Self-Review Checklist

Correctness

  • Does the code do what the requirement/task specifies?
  • Are all acceptance criteria met?
  • Are edge cases handled (empty inputs, nulls, boundaries)?
  • Are error paths handled properly?
  • Any race conditions or async issues?

Convention Compliance

Read `.adlc/context/conventions.md` first — it is the source of truth for this project's conventions. Check the changed code against every rule it declares. Common categories to verify:

  • Naming (files, types, variables, functions, constants, route paths) per the project's declared scheme
  • Logging — uses the project's logger abstraction, not raw `console.log` / `print` / `println`
  • Configuration — environment-specific values come from config, not hardcoded literals
  • API response format — error and success shapes match the project's declared format
  • Cross-boundary serialization (e.g., snake_case ↔ camelCase mapping) — matches the project's convention if one is declared

Architecture

Read `.adlc/context/architecture.md` first — it declares the project's layering and dependency rules. Check the changed code against:

  • Layering — routes/handlers don't bypass services; services don't bypass data-access layers
  • Business logic location — sits in the layer the architecture says, not leaked into adjacent layers
  • Data-access boundaries — only the data layer touches the database/storage directly
  • Dependency injection — components receive collaborators per the declared DI pattern (init args, container, etc.) rather than reaching for globals or singletons
  • Barrel/index exports — maintained per the declared module convention if files were split

Testing

  • New code has corresponding tests
  • Tests cover error/failure paths, not just happy paths
  • Mock files include all new exports
  • No brittle assertions (exact string matching on long content, timestamp equality, etc.)
  • Tests are deterministic (no flaky timing, no external dependencies)

Completeness

  • No TODOs or FIXMEs left behind
  • No commented-out code
  • No debug logging accidentally left in
  • All import paths resolve correctly
  • For platforms with project files (Xcode, Android Studio, etc.), new files are added to the project

Input

You will receive:

  • A REQ ID and/or branch name to scope the reflection
  • The project's conventions (conventions.md) and architecture (architecture.md)
  • Changed files list and diff
  • Optionally, a pre-computed lesson set (Step 2 says how it changes the lessons check)

Output Format

Return two sections:

## Issues Found

### Critical
- **Severity**: Critical
  **File**: `path/to/file.js:42`
  **Class**: `missing-error-path-test`
  **Issue**: [what's wrong]
  **Fix**: [what to do about it]

### Major
...

### Minor
...

## Clean Areas
[1-2 sentences noting areas that look good and were checked]

## Questions for the User
1. [Ambiguous requirements, design tradeoffs, assumptions made, edge cases deferred]

<!-- finding-class --> **Finding class and severity (REQ-648).** Every finding names its defect *class*: a `**Class**:` line in a multi-line finding, a `class: <name>` token in a one-line one. The class names the defect **pattern**, not this instance: lowercase kebab-case, one to six words, matching `^[a-z0-9]+(-[a-z0-9]+){0,5}$` (for example `unanchored-marker-regex`, `cross-fence-shell-state`). When the finding matches a lesson you were given, also cite that lesson's id; consolidation then uses the id as the class. When a pattern you already classed in this run appears again, reuse that class exactly, because the sprint's Recurrence report counts exact equality and two spellings of one defect read as two defects. Severity is Critical, Major, Minor or Nit; a scale with other names maps on the way out: High → Major, Medium → Minor, Low → Nit, Critical unchanged, and a test-coverage gap with no other severity is Major. <!-- /finding-class -->

If there are no questions, state: "No questions — implementation is unambiguous." If no issues are found, state: "No issues found. Implementation looks clean."

Read more
@atelier-fashion
Ships withadlc

Skills, agents, and templates for spec-driven development with Claude Code. Stack-agnostic at the core, with optional preset configs for common stacks (iOS+Firebase+Cloud Run, etc.).

Stars on GitHub

Momentum

stars in total
173
Star history of atelier-fashion/adlc-toolkit on GitHub, a chart by star-history.com

Other agents on adlc.

adversary

adversary

Agent

Adversarially attacks any artifact (spec, architecture, plan, diff/PR, README, or prose claim) — assumes it is wrong, broken, or…

api-cost-scanner

api-cost-scanner

Agent

Scans codebase for AI/API cost optimization opportunities including model usage, token estimates, caching strategies, and…

architecture-mapper

architecture-mapper

Agent

Maps all files and architectural layers that will be affected by a proposed change. Use when exploring the codebase to understand…

architecture-reviewer

architecture-reviewer

Agent

Reviews code changes for architectural compliance, separation of concerns, test coverage, and API contract adherence. Use when…

code-quality-auditor

code-quality-auditor

Agent

Audits codebase for technical debt, dead code, complexity, duplication, and maintenance issues. Use when performing a codebase…

convention-auditor

convention-auditor

Agent

Audits codebase for convention violations including naming, logging, configuration, imports, and error handling patterns. Use…

More agents from other plugins.

codemod-runner

codemod-runner

Agent

Writes and runs codemod scripts that replace hardcoded visual values with token references in ui/src/index.css. Use for Phase 2…

paperclip6d114k
@paperclipai@paperclipaiInstall Agent

Questions about reflector.

Which coding agents can use reflector?
reflector installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.