Review
Purpose
Audit the current branch against the global style guide and run the final code review process.
Workflow
- •Load the style guide
- •Read
~/.codex/docs/style-guide.md. - •Build a written checklist of issues before proposing any changes.
- •Scope the review
- •Use
git statusandgit diffto identify the current branch changes. - •Prioritize reviewing changed files; expand to related files if needed to confirm consistency.
- •Inspect for style-guide violations
- •Check for unsafe TypeScript, duplication, non-idiomatic patterns, and React concerns.
- •Use
rgto locate patterns when needed.
- •Report findings
- •Provide a concise checklist of every issue found.
- •Include file paths (and line numbers when feasible) for each issue.
- •If no issues are found, say so explicitly.
- •Final code review process
- •Run through the steps in
~/.codex/prompts/final-code-review.mdbefore concluding.
- •Write to shared context
- •Append a "## Style Guide Review" section to
factory/context.md. - •Summarize findings and include key file references.
- •Next-step guidance
- •Suggest fixes, but do not modify files unless explicitly asked.
Output format
- •Start with a short summary sentence.
- •Then list issues as bullets with file references and rationale.
- •End with a small "Suggested fixes" section if issues exist.