agentleFS
89jobrien89jobrien/godmode/skills/code-review/SKILL.md

godmode:code-review

Skill1 starsChanged 56 days agoMITView on GitHub

Structured code review before merge. Use when implementation is complete and you need a systematic quality pass — correctness, safety, architecture, tests, and style.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before creating a PR or merging a branch

    line 14
  2. Distinctive:

    After a feature is implemented and tests pass

    line 15
  3. Distinctive:

    When asked to "review", "audit", or "check" code

    line 16
  4. Distinctive:

    Apply all severity levels in one pass: Do not commit after fixing only blocking issues and leave suggestions for a follow-up — that creates …

    line 30
  5. Distinctive:

    Read the diff or specified files completely before commenting

    line 73
  6. Very specific:

    Use godmode:verification-before-completion before claiming done

    line 92
  7. Distinctive:

    When a reviewer (sentinel, clippy, obfsck) flags test data, string literals, or fixture content:

    line 98
  8. Very specific:

    Add a per-site #[allow(...)] or allowlist entry immediately

    line 101
  9. Distinctive:

    Do not change test content to work around the flag

    line 102
  10. Distinctive:

    Document why the allowlist entry was added

    line 103

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code Review

When to Use

  • Before creating a PR or merging a branch
  • After a feature is implemented and tests pass
  • When asked to "review", "audit", or "check" code

Severity Levels

(canonical source: nu skills/_lib/review-rules.nu severity-table)

LevelAction
BlockingMust fix before merge
SuggestionShould fix; explain if skipping
NitpickOptional; fix in one pass

(review-rules.nu one-pass-rule)

Apply all severity levels in one pass. Do not commit after fixing only blocking issues and leave suggestions for a follow-up — that creates noisy fix histories.

Review Checklist

Correctness

  • Logic matches the stated requirement
  • Edge cases handled: empty input, null/None, zero, overflow
  • Error paths return meaningful errors, not panics
  • No silent data loss (truncation, lossy casts)

Safety & Security

  • No SQL/command injection via string interpolation
  • Secrets not logged or serialised
  • File paths validated before use
  • No unsafe without justification

Architecture

  • Change is in the right layer (not mixing I/O into pure logic)
  • No new circular dependencies
  • Public API surface is intentional — not accidental leakage
  • Hexagonal boundary respected: ports define contracts, adapters implement them

Tests

  • Every new public function has at least one test
  • Happy path covered
  • At least one error/edge case covered
  • Tests use real code (mocks only where unavoidable)
  • No test-only methods on production types

Style

  • Names are clear and consistent with surrounding code
  • No dead code, unused imports, commented-out blocks
  • Doc comments on public items where non-obvious
  • Line width ≤ 100 columns

Process

  1. Read the diff or specified files completely before commenting
  2. Group findings by severity
  3. Report as structured list:
## Code Review — <file or feature>

### Blocking
- [file:line] <issue> — <why it matters>

### Suggestions
- [file:line] <issue> — <recommendation>

### Nitpicks
- [file:line] <issue>
  1. Fix all issues in one pass before marking done
  2. Re-run taskit check lint and taskit test run after fixes
  3. Use godmode:verification-before-completion before claiming done

False Positives

(review-rules.nu false-positive-protocol)

When a reviewer (sentinel, clippy, obfsck) flags test data, string literals, or fixture content:

  • Add a per-site #[allow(...)] or allowlist entry immediately
  • Do not change test content to work around the flag
  • Document why the allowlist entry was added

Additional Resources

  • references/review-checklist.md — full checklist with severity guide
  • helpers/review-report-template.md — structured report template to fill in

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.