Conductor Review
Overview
This skill provides a meticulous, first-principles code review. It compares implementation diffs against the "Law" (Style Guides), the "Identity" (Product Guidelines), and the "Mission" (Spec and Plan). It identifies critical bugs, safety risks, and architectural deviations.
When to Use
- When a user says "Review my changes," "Is this track ready?", or "Run a code review."
- Before archiving or deleting a completed track.
Workflow
- Scope Selection: Identify the track or changes to review. Confirm selection using
ask_user. - Context Loading: Retrieve guidelines, style guides, and the track's plan. Load all style guides in
conductor/code_styleguides/. - Meticulous Analysis (Smart Chunking): Perform a deep dive into the diff. For large changes (> 300 lines), use Iterative Review Mode after user confirmation.
- Automated Testing: Run the project's test suite and report results.
- Reporting: Generate a structured Review Report with severity-ranked findings.
- Decision Phase: Offer choices to Apply Fixes, Manual Fix, or Complete Track.
- Commit & Track: Automatically commit review fixes and update the
plan.mdto record review tasks and SHAs. - Track Cleanup: Offer choices to Archive, Delete, or Skip the reviewed track.
Implementation Details
Refer to the following protocols for detailed procedural instructions:
- Resolution Protocol: references/resolution-protocol.md - How to find Conductor artifacts.
- Review Protocol: references/review-protocol.md - The logic for deep analysis, report generation, and automated fixing.
Mandatory Constraints
- Style is Law: Violations of
conductor/code_styleguides/*.mdare HIGH severity. - Iterative Review Confirmation: You MUST use
ask_userbefore starting a large (> 300 lines) review. - Automated Verification: ALWAYS attempt to run existing tests to verify correctness.
- Plan Integrity: If fixes are applied, the
plan.mdMUST be updated to record the review-related tasks and commits.