Review

From arbazkhan971/godmode · View interactive version

Review is an AI agent skill from the GitHub repository arbazkhan971/godmode. 4-agent code review. Correctness, security, performance, style. Auto-fixes NITs.

How to use this skill

Skill file

Activate When

Workflow

1. Gather Diff

git diff main...HEAD

Read every changed file. >500 lines -> split into

per-directory reviews.

2. Multi-Agent Review (4 agents, parallel)

unhandled promise rejections, missing returns

secrets in code, insecure defaults

missing pagination, memory leaks

missing types/returns

Each agent outputs:

SEVERITY | FILE:LINE | DESCRIPTION | SUGGESTED FIX

Severities: MUST-FIX, SHOULD-FIX, NIT.

IF no findings: state {category}: No issues found.

3. Merge & Deduplicate

Combine findings. Same file:line = merge, keep highest

severity, first agent's fix. Sort: MUST-FIX first.

4. Auto-Fix NITs

SAFE: imports, formatting, whitespace, comment typos.

UNSAFE (human): logic, API, security, test changes.

Each auto-fix = separate commit:

"review-autofix: {description}".

5. Verdict

Score: 0-10 (median of all agents).

IF score < 8: author responds to every MUST + SHOULD.

Re-review only modified parts. Max 3 iterations.

<!-- tier-3 -->

Quality Targets

Hard Rules

  1. Every finding: file:line + suggested fix (code).
  2. MUST-FIX blocks merge. NIT = auto-fix if safe.
  3. Review against spec + tests, not personal style.
  4. Score = median of 4 agents.
  5. Deduplicate same file:line across agents.

TSV Logging

Append .godmode/review-log.tsv:

timestamp	scope	category	severity	file_line	description	status

Keep/Discard

KEEP if: finding has file:line + severity + fix.
DISCARD if: vague, lacks evidence, or duplicate.

Failure Classification

On finding DISCARD: classify and append to .godmode/review-failures.tsv.

False positive classes: stale_context, framework_idiom, test_only_code, intentional_pattern, duplicate_finding.

Cross-Model Review (Optional)

For higher-confidence reviews, dispatch agents with different models:

Findings caught by only one model are flagged as "cross-model finding" —

these are the blind spots that self-play misses.

Enable with: --cross-model flag or when reviewing security-critical code.

Stop Conditions

STOP when FIRST of:
  - All 4 agents completed and findings merged
  - Max 3 re-review iterations
  - Re-review found 0 new issues

Autonomous Operation

On failure: git reset --hard HEAD~1. Never pause.

Error Recovery

| Failure | Action |

|--|--|

| Diff too large (>500) | Split per-directory reviews |

| Vague findings | Discard, re-run with explicit instruction |

| Auto-fix breaks tests | Revert, reclassify as SHOULD-FIX |

| Conflicting findings | Escalate to highest severity |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.