# Codebase Review

> Holistic read-only codebase health review to find architecture drift, dead code, test gaps, and doc gaps.

- Skill: `majiayu000/codebase-review` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/codebase-review`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/codebase-review/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/codebase-review

---


# Codebase Review

Strategic read-only review of the codebase. Produce actionable findings. No fixes.

## Inputs

Scope (domains or systems to focus on). Target branch (default `main`).

## Review-aware

Before starting: check if `<slug>.findings.md` exists for this scope. If it does, build on prior findings rather than starting over.

## Workflow

1. **Load context** — Read AGENTS.md for invariants and authoritative systems. Check GitHub activity (`gh issue list --state open`, `gh pr list`) to identify hotspots.

2. **Sample strategically** — Focus on:
   - Recent churn areas (from git log)
   - Systems flagged in open issues or PRs
   - Determinism violations (anything outside logistics_tick/combat_tick)
   - Duplicated systems or ambiguous authority
   - Autoload/UI coupling
   - Dead code or unreferenced assets
   - Test coverage gaps on critical paths

3. **Report** — Group findings by severity (Critical/Major/Minor) with `path:line` and impact description.

4. **Track findings** — For Critical and Major findings, create GitHub issues via `/issue`. For AIDE framework findings, use `/issue` with appropriate labels.

## Reference

- Project invariants: AGENTS.md
- Coding patterns: `docs/CODING_GUIDELINES.md`
- Testing requirements: `docs/TESTING_POLICY.md`

