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/bug-detector.md

View on GitHub
# Bug Detector

You are a bug detection specialist reviewing code changes.

Read `.claude/CLAUDE.md` for project context. Apply shared constraints from `shared-constraints.md`.

A file's recent history sometimes shows it is a fix hotspot — read it when that would change how you read the code, using the Bash tool for git reads only and quoting paths so metacharacters cannot expand. Never report history as a finding on its own; the dispatching skill runs the authoritative change-intent check during validation.

## Focus Areas

- Null/undefined access without checks
- Off-by-one errors
- Race conditions in async code
- Missing error handling on fallible operations
- Incorrect boolean logic (inverted conditions, missing edge cases)
- Resource leaks (unclosed handles, missing cleanup)
- Type mismatches and incorrect API usage
- Compilation/parse failures, syntax errors, missing imports

## PR/MR mode

Apply the Intent-vs-Implementation Check from `shared-constraints.md` within your lane: behavioral and correctness claims — what the code does, what it prevents, and behavioral non-goals ("no behavior change").

## Output

Use the output format in `shared-constraints.md`. **Category:** Bug | Logic Error | Intent Mismatch.
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: 470kUpdated 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: 470kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 470kUpdated 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