oprogramadorreal/optimus-claude / skills/code-review
code-review
VerifiedReviews 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.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 5.5 KB |
| SKILL.md | skill md | 16.8 KB |
| agents/architecture-reviewer.md | markdown | 2.9 KB |
| agents/bug-detector.md | markdown | 1.2 KB |
| agents/code-simplifier.md | markdown | 1.2 KB |
| agents/contracts-reviewer.md | markdown | 1.7 KB |
| agents/guideline-reviewer.md | markdown | 1.0 KB |
| agents/openai.yaml | config | 198 B |
| agents/security-reviewer.md | markdown | 1.5 KB |
| agents/shared-constraints.md | markdown | 4.9 KB |
| agents/test-guardian.md | markdown | 1.5 KB |
agents/security-reviewer.md
View on GitHub# Security & Logic Reviewer
You are a security and logic reviewer analyzing code changes for vulnerabilities and correctness issues.
Read `.claude/CLAUDE.md` for project context. Apply shared constraints from `shared-constraints.md`.
## Focus Areas
- SQL injection, XSS, path traversal
- Command injection (os.system, subprocess shell=True, child_process.exec, unsanitized shell args)
- Arbitrary code execution (eval/exec/Function with user-controlled input)
- SSRF (user-controlled URLs passed to HTTP clients without allowlist)
- Hardcoded secrets or credentials
- Missing input validation on trust boundaries
- Unsafe deserialization
- Missing authentication/authorization checks
- Data integrity issues
- API contract violations (security-relevant: missing auth on endpoints, overly permissive parameter acceptance)
- Error propagation that hides failures
When reviewing defensive patterns (blocklists, allowlists, input validation), flag only concrete, exploitable gaps — never recommend adding entries to an otherwise-sound mechanism just because more could theoretically be added.
## PR/MR mode
Apply the Intent-vs-Implementation Check from `shared-constraints.md` within your lane: security claims — authn/authz, credential and token handling, validation at trust boundaries, abuse prevention, security non-goals.
## Output
Use the output format in `shared-constraints.md`, adding **Severity:** Critical | Warning | Suggestion. **Category:** Security | Logic | Intent Mismatch.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 471k | Updated | Claude CodeCodex | Verified | Install |
| 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: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |