| name | code-review |
| description | Guides code review process with focus on architecture compliance, truth boundaries, and contract stability Use when this capability is needed. |
| metadata | {"author":"giantcroissant-lunar"} |
Code Review Skill
Purpose
This skill guides code reviews with focus on project-specific concerns: architecture compliance, truth/derived boundaries, contract stability, and proper encoding.
When to Invoke
- When reviewing pull requests
- When self-reviewing before commit
- When auditing existing code
Review Dimensions
1. Spec Alignment
2. Vocabulary Correctness
Check for conflation of two distinct vocabularies:
Governance/Identity Axes:
Pipeline Layering:
Topology, Sampling, View/Product
interface PlateVariantSampling { ... }
interface PlateVariant { ... }
interface PlateSampling { ... }
3. Truth Boundary Violations
Red Flags:
- Derived data being used as input to truth computation
- Spatial substrates (Voronoi, cells) treated as authoritative
- Events depending on sampling products
function updateTopology(voronoiMesh: VoronoiMesh) {
topology.boundaries = voronoiMesh.edges;
}
function generateMesh(topology: PlateTopology): VoronoiMesh {
return sample(topology);
}
4. Contract Stability
5. Persistence Correctness
6. Graph Engine Encapsulation
Review Checklist Template
## Code Review: [PR/Change Name]
### Spec Alignment
- [ ] Matches RFC: [RFC number]
- [ ] ADR compliance: [ADR numbers]
### Architecture
- [ ] No vocabulary conflation
- [ ] Truth boundaries respected
- [ ] Contracts stable
### Implementation
- [ ] MessagePack encoding
- [ ] ModernSatsuma encapsulated
- [ ] Incremental and runnable
### Issues Found
1. [Issue description]
- Location: [file:line]
- Severity: [Critical/Major/Minor]
- Recommendation: [fix]
Severity Levels
| Level | Description | Action |
|---|
| Critical | Truth boundary violation, contract break | Block merge |
| Major | Vocabulary conflation, wrong encoding | Request changes |
| Minor | Style, naming, documentation | Suggest improvement |
Converted and distributed by TomeVault — claim your Tome and manage your conversions.