maximus-code-review
Skill1 starsChanged 4 months agoMITView on GitHub
Review a diff, PR, or file for correctness, security, performance, and style, with severity-tagged findings (critical/warning/nit), line references, and suggested fixes. Does not silently rewrite. Use for 'review', 'audit this code', 'sanity-check', 'red-team', or before merging.
In this repository49 other files it gives its agents.
- core/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- file-opsSkill
- maximus-agent-designSkill
- maximus-ai-cost-controlSkill
- maximus-ai-data-pipelineSkill
- maximus-ai-fluency-for-buildersSkill
- maximus-ai-product-specSkill
- maximus-ai-safety-governanceSkill
- maximus-ai-ux-patternsSkill
- maximus-brainSkill
- maximus-build-featureSkill
- maximus-chain-of-verificationSkill
- maximus-contact-intelligenceSkill
- maximus-counterparty-discoverySkill
- maximus-debug-incidentSkill
- maximus-deep-research-proSkill
- maximus-deep-researchSkill
- maximus-design-specSkill
- maximus-devops-shipSkill
- maximus-eval-and-testSkill
- maximus-fine-tuningSkill
- maximus-fintech-paymentsSkill
- maximus-investigative-researchSkill
- maximus-k3-model-selectionSkill
- maximus-k3-self-hostingSkill
- maximus-literature-reviewSkill
- maximus-llm-model-selectionSkill
- maximus-local-research-assistantSkill
- maximus-local-research-assistantSkill
- maximus-mlops-deploySkill
- maximus-ollama-opsSkill
- maximus-openclaw-localSkill
- maximus-people-finder-recruiterSkill
- maximus-people-finderSkill
- maximus-plan-implementationSkill
- maximus-prompt-engineeringSkill
- maximus-python-scientificSkill
- maximus-rag-pipelineSkill
- maximus-replit-handoff-proSkill
- maximus-slm-evalSkill
- maximus-slm-local-finetuneSkill
- maximus-slm-local-stackSkill
- maximus-slm-tool-callingSkill
- maximus-transaction-analystSkill
- maximus-write-articleSkill
- memory-keeperSkill
- skill-templateSkill
- web-researchSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
Never inflate a nit to a critical.
- Distinctive: line 41
Read the diff in context: Don't just read the changed hunks — read the surrounding code so you can spot what the diff *should* have touched …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Maximus — Code Review
A good review is not a rewrite. It is the load-bearing skepticism that catches the bug, the unsafe assumption, and the subtle regression before they ship. The horse pulls the plough — the rider checks that the row is straight before turning the next one.
When to use
- A pull request, diff, or branch needs reviewing.
- The user says: "review this", "audit this", "look over my code", "check for issues", "find bugs", "sanity-check", "red-team", "before I merge".
- Pre-deploy review of an AI-assisted change.
What you review for (in priority order)
- Correctness — does this do what it claims? Off-by-one errors, wrong condition, missing return, ignored error, stale cache, race condition.
- Security — injection (SQL/command/template), auth bypass, broken access control, secrets in code, unsafe deserialization, missing CSRF/CORS controls, leak via logs.
- Data integrity — money handled as int? IDs unique under concurrency? Transactions wrap what they should? Migrations reversible? Idempotency where needed?
- Performance — N+1 queries, unbounded loops, blocking IO in async code, missing index, hot-path allocations.
- Tests — does the new code have meaningful tests, not just coverage? Do existing tests still pass? Are there obvious uncovered branches?
- Style and clarity — names that mislead, comments that drift from code, dead code, formatting that fights the project's tooling. Lowest priority — never lead a review with style.
Severity model
Tag every finding:
- 🔴 Critical — blocks merge. Bug, security hole, data corruption risk, regression.
- 🟠 Warning — needs response before merge. Real concern; might be acceptable with a deliberate decision documented.
- 🟡 Nit — optional. Style, clarity, micro-improvement. The author is free to ignore.
Never inflate a nit to a critical. Reviewer credibility is finite — burn it on the real findings.
Procedure
- Understand the intent before reading the diff. What is this PR supposed to do? Read the description, the linked ticket, the design spec if any. A review without intent is style commentary.
- Read the diff in context. Don't just read the changed hunks — read the surrounding code so you can spot what the diff should have touched and didn't.
- Walk the new control flow. Pretend you're the program. What inputs reach which branch? What happens on error? What is the worst-case caller?
- Trace data: where does each new value come from, where does it go, who can influence it? This finds injection bugs and trust-boundary mistakes.
- Check tests against the change: are the new code paths actually exercised? Mutation-test by hand: if you flipped this condition, would any test fail?
- Check the things the diff isn't showing you: migrations, env vars, secrets, config files, infra-as-code, dependency changes. Critical findings often live here.
- Write findings, not rewrites. Point at the line, name the issue, suggest a direction. The author owns the fix.
- Summarize at the top. A one-paragraph verdict and a count by severity so the author can triage. Followed by the line-level findings.
Domain-specific checklists
- Web service: input validated at boundary; output not echoing untrusted data unescaped; auth enforced on every protected endpoint; rate limits sane; error responses don't leak internals; CORS surface intentional.
- Fintech / payments: integer cents; idempotency keys on mutations; webhook signatures verified; audit log written; refunds / disputes handled with the same care as charges.
- Scientific / ML: seeds set; deps pinned; raw data not mutated; configs not hard-coded; new transforms inside the pipeline object; new code has unit tests at the function level.
- Infra / DevOps: IaC change reviewed for blast radius; secrets via secret manager not env literals; rollback path obvious; SLO impact considered.
- Database / SQL: indexes for new query patterns; migrations both up and down; locks acquired in consistent order; long migrations not blocking writes on prod tables.
- Concurrency: shared mutable state behind a lock or replaced with immutability; no
goroutine/Task/Promiseleaks; cancellation propagated.
Review-comment template
🔴 Critical — <one-line summary>
file:line — <what's wrong, in plain language>
Why: <consequence if shipped>
Suggested fix: <direction, not necessarily code>Gotchas
- Lead with nits and you lose the author's attention before they hit your critical finding. Severity-order the findings.
- "Just rewrite it" without explaining why is not a review — it's a power move. Always say why.
- Reviewing only the diff misses the issue that should have been in the diff. Read the neighborhood.
- Asking for unrelated refactors is scope creep on the author. File a separate ticket.
- Approving with unresolved warnings trains the author to ignore warnings. Resolve, downgrade, or block.
- Skipping the migration / config / secrets is how critical findings escape a review.
Output
A review document or PR comment thread, structured as:
- Verdict: approve / request changes / block, with one-paragraph rationale.
- Summary table: counts by severity.
- Findings: severity-ordered, each with file:line, problem, why, suggested direction.
- Out-of-scope notes (optional): observations not blocking this PR but worth a follow-up ticket.
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
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.

