skill-code-review
Skill0 starsChanged 3 months agoMITView on GitHub
MANDATORY PHASE 3 AUDIT GATE. Systematic 5-axis code review framework (Correctness, Readability, Architecture, Security, Performance), OWASP Top 10 auditing, and AST-Grep pattern verification. MUST ACTIVATE before committing code, creating PRs, or completing significant code modifications.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- nomdedev/agent-manager-templatetheir own version, first seen Sep 30, 2026
- nyldn/claude-octopustheir own version, first seen Aug 13, 2026
- saitarrun/Sdlc-ai-workflowtheir own version, first seen Jun 16, 2026
- kannaka-labs/Kannaktopustheir own version, first seen Mar 19, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- nyldn/claude-octopus★ 4.2ksame name
- saitarrun/Sdlc-ai-workflow★ 4same name
- nomdedev/agent-manager-template★ 2same name
- kannaka-labs/Kannaktopus★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- core/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- avoid-ai-writingSkill
- c-cpp-systemsSkill
- doubt-driven-developmentSkill
- marketing-copywritingSkill
- mempalace-recallSkill
- mempalaceSkill
- mempalace-taskSkill
- retro-emulation-engineeringSkill
- seo-optimization-and-auditSkill
- skill-ai-mlSkill
- skill-backend-architectSkill
- skill-codebase-onboardingSkill
- skill-context-engineeringSkill
- skill-creative-designSkill
- skill-data-analysisSkill
- skill-data-scienceSkill
- skill-design-engineeringSkill
- skill-devops-cloudSkill
- skill-emulator-wasmSkill
- skill-frontend-architectSkill
- skill-graph-analyticsSkill
- skill-graphics-webglSkill
- skill-low-level-programmingSkill
- skill-master-orchestratorSkill
- skill-mcp-builderSkill
- skill-monorepo-architectSkill
- skill-osint-engineeringSkill
- skill-plugin-architectureSkill
- skill-qa-engineerSkill
- skill-researchSkill
- skill-resume-tailorSkill
- skill-stealth-scrapingSkill
- skill-system-diagnosticsSkill
- skill-web-architectureSkill
- skill-web-performanceSkill
- spec-driven-developmentSkill
- spec-minerSkill
- wasm-emscriptenSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
When reviewing code, systematically evaluate the changes against these five axes:
- Distinctive: line 44
In-Place Refactoring: If an existing component/endpoint was inadequate, was it refactored in-place rather than bypassed with a parallel …
- Distinctive: line 47
Dependency Direction: Do dependencies flow strictly downward (e.g., UI depends on Domain, not vice-versa)?
- Very specific: line 52
All database queries MUST use parameterized inputs (e.g.
- Very specific: line 56
Verify that object lookups enforce tenant/user ownership (e.g.
- Distinctive: line 59
Verify that sensitive credentials are read strictly from environment variables or secret managers.
- Very specific: line 63
Run structural checks for unhandled Promise rejections, missing dependencies in useEffect, unsafe evals, and insecure CORS headers (* on …
- Very specific: line 68
N+1 Database Queries: Ensure relations are fetched with JOIN, include, or batched IN (...) rather than looping queries.
- Distinctive: line 76
When providing review feedback, categorize issues using these severity labels:
- Distinctive: line 87
Keep reviews focused and manageable:
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Overview
The 5-Axis Code Review Framework provides a systematic, thorough approach to code reviews. This skill enforces rigorous standards across correctness, readability, architecture, security, and performance to maintain a high-quality codebase. Use this framework before completing any user request, before committing code, or when explicitly asked to perform a code review.
When to Use
- Pre-commit code reviews
- Pull request reviews
- Code quality audits
- Architecture reviews
- Security & OWASP vulnerability audits
When NOT to Use
- Quick typo fixes in documentation
- Comment-only changes
- Purely automated formatting changes (e.g., Prettier/Black output)
The 5-Axis Review Framework
When reviewing code, systematically evaluate the changes against these five axes:
1. Correctness
- Logic Validation: Does the code do what it's supposed to do?
- Edge Cases: Are boundary conditions, empty inputs, and null/undefined values handled?
- Error Handling: Are errors caught and handled gracefully? Are error messages helpful and actionable?
- Business Requirements: Does the implementation align with the stated requirements?
- Off-by-one Errors: Are loop indices and slice boundaries strictly correct?
- Race Conditions: Is concurrent state mutation safely managed (
async/locks/mutexes)?
2. Readability
- Code Organization: Is the code logically structured and easy to follow?
- Naming Conventions: Are variables, functions, and classes named descriptively and consistently?
- Self-Documenting Structure: Can the code be understood without excessive comments?
- Cognitive Complexity: Is the logic too deeply nested? Can it be simplified with early returns?
- Dead Code Elimination: Has unused code, deprecated imports, and commented-out snippets been removed?
3. Architecture & SSOT
- Single Source of Truth (SSOT): Does this code duplicate logic, schemas, endpoints, or utilities that already exist elsewhere in the repo?
- DRY Adherence (Anti-Wheel-Reinvention): Are existing shared services, endpoints, and helpers reused rather than re-implemented?
- In-Place Refactoring: If an existing component/endpoint was inadequate, was it refactored in-place rather than bypassed with a parallel duplicate?
- Component Boundaries: Are responsibilities clearly separated? (Hexagonal/Clean Architecture: Domain isolated from API/DB).
- Coupling & Cohesion: Are related things grouped together? Are unrelated things decoupled?
- Dependency Direction: Do dependencies flow strictly downward (e.g., UI depends on Domain, not vice-versa)?
- Single Responsibility: Does each function/class do only one thing (max ~150-200 lines per file)?
4. Security & OWASP Hardening
- Injection Attacks (SQLi / Commandi / Path Traversal):
- All database queries MUST use parameterized inputs (e.g.
$1, $2or ORM bindings), NEVER raw string concatenation (SELECT ... WHERE id = '${id}'). - File access MUST validate paths against directory traversal (
../sanitized withpath.resolveand root confinement). - System commands MUST avoid shell execution of unsanitized user inputs (
execFile/spawnwith explicit argument arrays, not rawexec).
- All database queries MUST use parameterized inputs (e.g.
- Broken Access Control & IDOR:
- Verify that object lookups enforce tenant/user ownership (e.g.
WHERE id = :id AND user_id = :current_user).
- Verify that object lookups enforce tenant/user ownership (e.g.
- Secrets & Token Leakage:
- Audit for hardcoded API keys, JWT secrets, private tokens, or passwords.
- Verify that sensitive credentials are read strictly from environment variables or secret managers.
- Cross-Site Scripting (XSS) & Content Security:
- Audit React/HTML outputs for
dangerouslySetInnerHTMLor raw unescaped injections.
- Audit React/HTML outputs for
- AST-Grep Pattern Verification (
ast-grepMCP):- Run structural checks for unhandled Promise rejections, missing dependencies in
useEffect, unsafe evals, and insecure CORS headers (*on authenticated endpoints).
- Run structural checks for unhandled Promise rejections, missing dependencies in
5. Performance
- Computational Complexity: Analyze Big-O time and space complexity. Avoid unintentional O(N^2) loops.
- Memory Allocation: Are there memory leaks, unclosed streams/connections, or excessive allocations?
- N+1 Database Queries: Ensure relations are fetched with
JOIN,include, or batchedIN (...)rather than looping queries. - Unnecessary Re-renders: (Frontend) Ensure heavy computations use
useMemo/useCallbackand state is scoped locally. - Async Efficiency: Are independent async operations batched with
Promise.allrather than executed in slow sequential waterfalls?
Severity Labels for Feedback
When providing review feedback, categorize issues using these severity labels:
BLOCKER: Must fix before merge. Security vulnerabilities, data loss risk, broken functionality.FYI: Informational observation. No action required.NIT: Minor style/preference issue. Fix if convenient.OPTIONAL: Suggested improvement. Author's discretion.
Atomic Change Enforcement
Keep reviews focused and manageable:
- Target ~100 lines per review unit.
- Large changes must be decomposed into smaller, atomic commits or PRs.
- Reject monolith PRs that mix unrelated changes.
Review Output Format
Provide your review findings structured by axis, using severity labels:
## Code Review Summary
### 1. Correctness
- [BLOCKER] ...
- [NIT] ...
### 2. Readability
- [OPTIONAL] ...
### 3. Architecture
- [FYI] ...
### 4. Security
- [BLOCKER] ...
### 5. Performance
- [NIT] ...Anti-Rationalization Table
| Agent Excuse | BLOCKED Rebuttal |
| "This is a small change, it doesn't need a review" | BLOCKED: Small changes cause hidden regressions. All changes require review. |
| "The tests pass so the code is correct" | BLOCKED: Tests may not cover edge cases, security, or performance. Manual review is still required. |
| "I wrote this code so I know it's correct" | BLOCKED: Self-review is insufficient, apply the 5-axis framework anyway to catch blind spots. |
| "This is just a refactor, no behavior change" | BLOCKED: Refactors can introduce subtle behavioral changes, verify with tests and a rigorous review. |
| "The user didn't ask for security review" | BLOCKED: Security is a default quality requirement, not an opt-in feature. |
| "Performance optimization is premature here" | BLOCKED: Identifying O(n^2) or N+1 queries is not premature optimization, it is basic architectural correctness. |
| "The existing code already does it this way" | BLOCKED: Existing patterns may be wrong, don't propagate bad practices. |
Red Flags
- Ignoring security warnings or skipping input sanitization.
- Merging PRs with
BLOCKERcomments unresolved. - Reviews that only comment on style (missing correctness/security).
- Missing test coverage for new functionality.
Verification Gates
- Have you evaluated the code against all 5 axes?
- Are all issues tagged with a severity label (
BLOCKER,FYI,NIT,OPTIONAL)? - Are there any unresolved
BLOCKERissues? - Is the change atomic (~100 lines)?
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.

