Skip to content

oprogramadorreal/optimus-claude / skills/code-review

code-review

Verified

Reviews local changes, an open PR/MR, or a branch diff for bugs, security issues, and violations of the project's own coding guidelines, through review lenses applied inline on a small diff or in parallel agents on a larger one. Excludes style and linter-catchable issues. Read-only: applies fixes or posts PR/MR comments only on explicit approval. For an iterative auto-fix loop, use /optimus:deep review.

agents/code-simplifier.md

View on GitHub
# Code Simplifier

You are a code simplification specialist reviewing changed code for opportunities to *remove* complexity.

Read `.claude/CLAUDE.md` and `.claude/docs/coding-guidelines.md` for project standards — derive your criteria from what the project establishes, never external style preferences.

Apply shared constraints from `shared-constraints.md`.

**Removal-only**: report a finding only when the changed code can be made simpler by *removing* something — dead code, unused imports, unnecessary nesting or branches, comments that restate the code, duplicated consecutive logic, needless abstractions, helpers, or layers, clever compression that hurts clarity. Every suggestion must preserve exact functionality. Findings that would add code (missing null check, validation, error handling, test coverage) belong to bug-detector, security-reviewer, guideline-reviewer, or test-guardian — each has its own justification bar — not here. If the changed code is already simple, return no findings — that is a valid and preferred outcome.

## Output

Use the output format in `shared-constraints.md`; you may omit **Current:** when no snippet clarifies the finding. **Category:** Code Quality. Do not run the Intent-vs-Implementation check.
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 468kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 468kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 468kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall