Skip to content

notque/vexjoy-agent / skills/review/review

Code review: systematic single-file, parallel multi-reviewer, full-repo audit, PR diff review.

FileKindSize
SKILL.mdskill md11.7 KB
references/architecture-smell-baseline.mdmarkdown6.8 KB
references/audit-playbook.mdmarkdown10.2 KB
references/disprove-pass.mdmarkdown2.3 KB
references/go-review-patterns.mdmarkdown4.0 KB
references/receiving-feedback.mdmarkdown3.0 KB
references/report-template.mdmarkdown1.9 KB
references/reviewer-code.mdmarkdown6.2 KB
references/reviewer-code/code-quality.mdmarkdown4.6 KB
references/reviewer-code/comments.mdmarkdown3.6 KB
references/reviewer-code/config-safety.mdmarkdown3.7 KB
references/reviewer-code/dead-code.mdmarkdown3.2 KB
references/reviewer-code/language-checks.mdmarkdown6.7 KB
references/reviewer-code/language-specialist.mdmarkdown4.7 KB
references/reviewer-code/naming.mdmarkdown3.3 KB
references/reviewer-code/performance.mdmarkdown3.5 KB
references/reviewer-code/simplifier.mdmarkdown5.3 KB
references/reviewer-code/test-analyzer.mdmarkdown4.5 KB
references/reviewer-code/type-design.mdmarkdown4.0 KB
references/reviewer-domain.mdmarkdown9.1 KB
references/reviewer-domain/adr-compliance.mdmarkdown3.0 KB
references/reviewer-domain/business-logic.mdmarkdown4.6 KB
references/reviewer-domain/common-bugs.mdmarkdown6.7 KB
references/reviewer-domain/edge-case-tables.mdmarkdown4.5 KB
references/reviewer-domain/operational-preferred-patterns.mdmarkdown7.2 KB
references/reviewer-domain/pragmatic-builder.mdmarkdown4.2 KB
references/reviewer-domain/production-gaps.mdmarkdown5.3 KB
references/reviewer-domain/sapcc-structural.mdmarkdown5.4 KB
references/reviewer-domain/state-machine-verification.mdmarkdown5.2 KB
references/reviewer-domain/structural-categories.mdmarkdown5.8 KB
references/reviewer-perspectives.mdmarkdown8.0 KB
references/reviewer-perspectives/clarity-and-assumption-detection.mdmarkdown4.8 KB
references/reviewer-perspectives/code-review-detection.mdmarkdown4.4 KB
references/reviewer-perspectives/contrarian.mdmarkdown2.3 KB
references/reviewer-perspectives/meta-process.mdmarkdown2.7 KB
references/reviewer-perspectives/newcomer.mdmarkdown2.0 KB
references/reviewer-perspectives/pedant.mdmarkdown3.3 KB
references/reviewer-perspectives/review-detection-commands.mdmarkdown8.7 KB
references/reviewer-perspectives/skeptical-senior.mdmarkdown2.9 KB
references/reviewer-perspectives/user-advocate.mdmarkdown2.9 KB
references/reviewer-system.mdmarkdown14.0 KB
references/reviewer-system/api-contract.mdmarkdown3.4 KB
references/reviewer-system/compliance-checklists.mdmarkdown5.1 KB
references/reviewer-system/concurrency.mdmarkdown3.6 KB
references/reviewer-system/dependency-audit.mdmarkdown3.3 KB
references/reviewer-system/docs-validator.mdmarkdown4.0 KB
references/reviewer-system/error-messages.mdmarkdown3.1 KB
references/reviewer-system/financial-resilience-de-eu.mdmarkdown5.3 KB
references/reviewer-system/german-it-security.mdmarkdown10.7 KB
references/reviewer-system/industry-specific-compliance.mdmarkdown3.5 KB
references/reviewer-system/migration-safety.mdmarkdown3.3 KB
references/reviewer-system/observability.mdmarkdown3.1 KB
references/reviewer-system/security-authz.mdmarkdown9.0 KB
references/reviewer-system/security-ci-cd.mdmarkdown7.6 KB
references/reviewer-system/security-data-exfil.mdmarkdown9.5 KB
references/reviewer-system/security-finding-template.mdmarkdown3.0 KB
references/reviewer-system/security-injection.mdmarkdown6.3 KB
references/reviewer-system/security-pii.mdmarkdown7.3 KB
references/reviewer-system/security.mdmarkdown3.6 KB
references/reviewer-system/silent-failures.mdmarkdown3.6 KB
references/reviewer-system/sovereign-cloud-data-residency.mdmarkdown6.6 KB
references/reviewer-system/stride-threat-model.mdmarkdown3.2 KB

references/reviewer-perspectives/review-detection-commands.md

View on GitHub
# Review Detection Commands

> **Scope**: grep/rg commands for finding issues each perspective flags. Run during VERIFY phase before drafting findings.
> **Version range**: All languages (language-specific variants noted inline)
> **Generated**: 2026-04-14 — adapt file extensions to match the repository under review

---

## Newcomer Perspective — Documentation & Clarity Gaps

### Undocumented public exports

```bash
# Python: exported functions/classes missing docstrings
rg 'def [A-Z][a-z]|^class [A-Z]' --type py -l | xargs -I{} python3 -c "
import ast, sys
with open('{}') as f: tree = ast.parse(f.read())
for n in ast.walk(tree):
    if isinstance(n, (ast.FunctionDef, ast.ClassDef)) and not ast.get_docstring(n):
        print(f'{}: {n.name}:{n.lineno}')
" 2>/dev/null

# Go: exported identifiers without doc comments
rg '^func [A-Z]|^type [A-Z]|^var [A-Z]|^const [A-Z]' --type go | rg -v '// '

# TypeScript/JS: exported functions without JSDoc
rg 'export (function|const|class|async function) ' --type ts | rg -v '/\*\*'
```

### Magic numbers

```bash
# Numeric literals that aren't 0, 1, or -1 — confirm each lacks a named constant before flagging
rg '[^0-9]\b([2-9][0-9]{2,}|[0-9]{4,})\b' --type py --type ts --type go -n
```

### TODO/FIXME/HACK comments

```bash
rg 'TODO|FIXME|HACK|XXX|TEMP|KLUDGE' --type py --type ts --type go --type js -n
rg 'todo!|unimplemented!|todo_or_die' --type rs -n
```

### Long functions (complexity proxy)

```bash
awk '/^def |^func |^function /{start=NR} start && NR-start==50{print FILENAME ":" start " (50+ lines)"}' **/*.py **/*.go **/*.ts 2>/dev/null

# Go: quick approximation
rg -c '^func ' --type go | sort -t: -k2 -rn | head -20
```

---

## Skeptical Senior Perspective — Production Readiness

### Missing error handling

```bash
# Go: errors discarded with _
rg '\b_, err\b' --type go -n
rg 'if err != nil' --type go -c  # compare to _ usage above

# Python: bare except clauses
rg 'except\s*:' --type py -n

# TypeScript: promise chains without .catch()
rg '\.then\(' --type ts | rg -v '\.catch\('
```

### Missing timeouts on network calls

```bash
# Go: http.Get/http.Post without timeout context
rg 'http\.Get\(|http\.Post\(' --type go -n

# Python: requests without timeout
rg 'requests\.(get|post|put|delete|patch)\(' --type py | rg -v 'timeout='
```

### Check-then-act race conditions

```bash
# Python: os.path.exists followed by open (TOCTOU)
rg 'os\.path\.exists' --type py -n -A 3 | grep -A3 'exists' | grep 'open\('

# Go: sync/mutex missing on shared state
rg 'var\s+\w+\s+map\[' --type go | rg -v 'sync\.'
```

### N+1 query patterns

```bash
# Django ORM: queries inside loops
rg '\.objects\.(get|filter|all)\(' --type py -n -B 5 | grep -B5 'for '

# SQLAlchemy: session.query inside for
rg 'session\.query' --type py -B 5 | grep -B5 'for '

# Go/GORM: queries in loop
rg '\.Find\|\.First\|\.Where' --type go -B 3 | grep -B3 'for '
```

### Debug artifacts left in code

```bash
rg 'console\.log\(' --type ts --type js -n
rg 'fmt\.Println\|log\.Println' --type go -n | rg -v '_test\.go'
rg 'print\(|pprint\(' --type py -n | rg -v '# '
rg 'debugger;' --type ts --type js -n
rg 'binding\.pry|byebug|pp ' --type rb -n
```

### Hardcoded credentials or secrets

```bash
rg '(password|secret|api_key|token)\s*=\s*["'"'"'][^"'"'"']+["'"'"']' --type py --type ts --type go -in
rg 'Authorization.*Bearer [A-Za-z0-9+/]{20,}' -in
```

---

## Pedant Perspective — Spec Compliance & Terminology

### HTTP status code misuse (RFC 7231)

```bash
# 200 OK on error paths
rg '(status|StatusCode)\s*(=|:)\s*200' --type ts --type py --type go -n -A 2 | grep -A2 '200' | grep -i 'error\|fail\|err'

# Wrong method for mutation (GET with side effects)
rg 'router\.(get|GET)\(' --type ts | rg -v '#'  # review manually for mutations
```

### REST conventions

```bash
# POST returning 200 instead of 201
rg 'router\.(post|POST)\(' --type ts --type py -n -A 10 | grep -A10 'post' | grep '200'

# PUT for partial update (should be PATCH)
rg 'router\.(put|PUT)\(' --type ts --type py -n
```

### JWT claim misuse (RFC 7519)

```bash
rg '"userId"|"user_id"|"userName"' --type ts --type py -n | rg -v 'sub'
```

### SemVer violations

```bash
git diff HEAD~1 HEAD -- '*.ts' '*.py' | grep '^-export ' | head -20
git diff HEAD~1 HEAD -- 'package.json' | grep '"version"'
```

---

## Contrarian Perspective — Unnecessary Complexity

### Abstraction layers with single implementations

```bash
# Interfaces implemented exactly once (Python protocol/ABC)
rg 'class \w+\(Protocol\)|class \w+\(ABC\)' --type py -l | while read f; do
  rg "class \w+\($(rg 'class (\w+)\(' "$f" | head -1 | sed 's/.*class \(\w\+\).*/\1/')\)" --type py -l | wc -l
done

# Go: interfaces with one implementor
rg 'type \w+ interface' --type go -n
```

### Unused flags, config keys, or feature toggles

```bash
rg 'feature_flag|FeatureFlag|feature_toggle' --type py --type ts --type go -n
rg 'os\.environ\.get\(' --type py -n | head -30
```

### Deep nesting (complexity indicator)

```bash
# Python: 4+ levels of indentation
rg '^\s{16,}' --type py -n | rg 'if |for |while ' | head -20

# TypeScript: callback nesting
rg '^\s{12,}' --type ts -n | rg 'then\(' | head -20
```

---

## User Advocate Perspective — User-Facing Impact

### Breaking API changes

```bash
git diff main HEAD -- '*.ts' '*.py' | grep '^-export ' | grep -v '//'
git log --oneline -20 -- '*.ts' '*.py'  # scan for "rename" in commits
```

### Missing user-facing error messages

```bash
rg '"Internal Server Error"|"Something went wrong"' --type ts --type py -n | grep -v 'test'
rg 'throw new Error\(|raise Exception\(' --type ts --type py -n | rg -v '[A-Z][a-z].*[a-z]{10}'
```

### Loading states and error boundaries missing

```bash
rg 'useEffect' --type tsx --type jsx -n -A 5 | grep -A5 'fetch\|axios\|api' | rg -v 'loading\|isLoading\|pending'
```

### Empty states not handled

```bash
rg '\.map\(' --type tsx --type jsx -n -B 2 | grep -B2 '\.map\(' | rg -v 'length|empty|fallback|\?\.'
```

---

## Meta-Process Perspective — Structural Health

### Single points of failure: high fan-in modules

```bash
rg 'from \.\./\.\.' --type ts --type py | awk -F'from' '{print $2}' | sort | uniq -c | sort -rn | head -10

# Go: packages with high import count
rg '"github\.com/[^"]+/([^"]+)"' --type go --only-matching | sort | uniq -c | sort -rn | head -10
```

### Authority concentration: single config owners

```bash
find . -name 'config.*' -o -name '*.config.*' | xargs wc -l 2>/dev/null | sort -rn | head -5
rg 'catch.*\{\s*\}|except:\s*pass' --type py --type ts -n
```

### Reversibility: schema migrations without rollback

```bash
rg 'def up\|async up\|exports\.up' --include='*migration*' -l | while read f; do
  grep -L 'def down\|async down\|exports\.down' "$f" 2>/dev/null && echo "NO ROLLBACK: $f"
done
grep -r 'ALTER TABLE\|DROP COLUMN\|DROP TABLE' migrations/ 2>/dev/null
```

### Hidden global state

```bash
# Python: module-level mutable state
rg '^[a-z_]+ = \[\]|^[a-z_]+ = \{\}|^[a-z_]+ = 0' --type py -n | rg -v '^#|test'

# Go: package-level vars
rg '^var [a-z]' --type go -n | rg -v '_test\.go'

# TypeScript: module-level mutable state
rg '^let [a-z]|^var [a-z]' --type ts -n | rg -v 'export '
```

---

## Quick Reference

```bash
# === NEWCOMER ===
rg 'TODO|FIXME|HACK|XXX' --type py --type ts --type go -n
rg 'def [A-Z][a-z]|^class [A-Z]' --type py -n  # then check docstrings

# === SKEPTICAL SENIOR ===
rg '\b_, err\b' --type go -n
rg 'except\s*:' --type py -n
rg 'console\.log\(' --type ts -n
rg '(password|secret|api_key)\s*=\s*["'"'"']' -in

# === PEDANT ===
git diff HEAD~1 HEAD -- '*.ts' '*.py' | grep '^-export '
rg '(status|StatusCode)\s*(=|:)\s*200' -n -A2 | grep 'error\|err'

# === CONTRARIAN ===
rg 'type \w+ interface' --type go -n
rg '^[a-z_]+ = \[\]|^[a-z_]+ = \{\}' --type py -n

# === USER ADVOCATE ===
git diff main HEAD -- '*.ts' '*.py' | grep '^-export '
rg '"Internal Server Error"' --type ts --type py -n

# === META-PROCESS ===
rg 'catch.*\{\s*\}|except:\s*pass' --type py --type ts -n
grep -r 'ALTER TABLE\|DROP TABLE' migrations/ 2>/dev/null
```

---

## Review Pass Detection

```bash
# Check if review output cites file:line evidence
grep -c 'File:\|Where:\|:\d\+:' review_output.md 2>/dev/null || echo "No line references found"
```

Findings like "the code seems complex" without file:line references are unfalsifiable. Run the relevant detection command above before writing any finding. If it cannot be grounded in a file:line reference, it does not meet the Evidence-Based Critique requirement.

---

## See Also

- `contrarian.md` — Premise validation, alternative discovery, YAGNI analysis
- `skeptical-senior.md` — Production readiness checklist, edge case taxonomy
- `pedant.md` — Spec references (RFC 7231, RFC 7519, SemVer)
- `meta-process.md` — Five-lens framework for structural health
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: 472kUpdated 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: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated 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: 196kUpdated Claude CodeCodexVerifiedInstall