backend-review
Skill9 starsChanged 8 months agoMITView on GitHub
**Backend Code Review (Node.js, Java, Microservices)**: Expert review of backend code focusing on Node.js, Java, Clean Architecture, SOLID principles, microservices patterns, SQL/database design, messaging (Kafka, SQS, SNS), and payment flows. Use whenever the user wants a review of backend code, API design, service architecture, database queries, or mentions Node, Java, Spring, NestJS, Express, microservices, REST API, gRPC, or asks to review server-side code. Also trigger for database schema reviews, query optimization, and message queue patterns.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- tuvatechvalley/fastapi-prod-readytheir own version, first seen Nov 29, 2026
- manishdashsharma/express-backend-skillstheir own version, first seen Nov 22, 2026
- frnkgns/Overgeared-Skillstheir own version, first seen Nov 8, 2026
- omdenkar2-ui/all-in-onetheir own version, first seen Nov 1, 2026
- henrilhos/skillstheir own version, first seen Oct 17, 2026
- aws-solutions/konductortheir own version, first seen Sep 23, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- aws-solutions/konductor★ 12same name
- frnkgns/Overgeared-Skills★ 7same name
- tuvatechvalley/fastapi-prod-ready★ 2same name
- henrilhos/skills★ 1same name
- manishdashsharma/express-backend-skills★ 0same name
- omdenkar2-ui/all-in-one★ 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 repository53 other files it gives its agents.
- adrSkill
- ai-ml-engineeringSkill
- api-documentationSkill
- api-gateway-patternsSkill
- architecture-review-boardSkill
- chaos-engineeringSkill
- code-reviewSkill
- compliance-reviewSkill
- cost-optimizationSkill
- csharp-dotnet-reviewSkill
- database-reviewSkill
- data-engineeringSkill
- design-patternsSkill
- developer-experienceSkill
- devops-infraSkill
- domain-modelingSkill
- elixir-reviewSkill
- engineering-budgetSkill
- engineering-metricsSkill
- event-driven-architectureSkill
- feature-flagsSkill
- flutter-reviewSkill
- frontend-reviewSkill
- full-reviewSkill
- git-flowSkill
- go-reviewSkill
- graphql-reviewSkill
- health-checkSkill
- incident-postmortemSkill
- kubernetes-reviewSkill
- migration-strategySkill
- multi-tenancySkill
- observabilitySkill
- on-call-designSkill
- one-on-oneSkill
- pentestSkill
- performance-profilingSkill
- pr-descriptionSkill
- python-reviewSkill
- quality-standardSkill
- rust-reviewSkill
- security-reviewSkill
- sprint-planningSkill
- swift-reviewSkill
- systematic-debuggingSkill
- team-scalingSkill
- tech-debt-prioritizationSkill
- technical-interviewSkill
- tech-specSkill
- terraform-iacSkill
- testing-strategySkill
- ux-reviewSkill
- vendor-evaluationSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 9 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
9
Distinctive
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
- Very specific: line 20
Before conducting any review: Read the Quality Standard Protocol at /sessions/vigilant-blissful-darwin/mnt/skills/quality-standard/SKILL.md …
- Distinctive: line 29
Error Handling: Every failure path explicitly handled?
- Distinctive: line 37
Input Validation: All parameters validated for type, length, format, range?
- Distinctive: line 40
Error Responses: All error paths return proper HTTP status codes + error details?
- Distinctive: line 43
Idempotency: If this endpoint is called twice with the same input, is it safe?
- Distinctive: line 54
When entity, model, interface, DTO, or type files are changed:
- Very specific: line 57
Check TypeScript compilation: run npx tsc --noEmit — if it fails, the review is blocked until build passes
- Distinctive: line 59
Interface contract changes: if an interface/type is modified, verify all implementations conform to the new contract
- Distinctive: line 60
Import path changes: if files were moved/renamed, verify all import statements are updated
- Distinctive: line 97
Use cases orchestrating, not implementing domain logic?
- Distinctive: line 148
No N+1 queries (JOINs or batch loading)
“Common” is measured: kept by at least 6 in 10 of the 6 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
Backend Code Review
You are a senior backend architect reviewing code with expertise in Node.js, Java, Clean Architecture, microservices, and distributed systems. Focus on production-readiness, scalability, and maintainability.
Before conducting any review: Read the Quality Standard Protocol at /sessions/vigilant-blissful-darwin/mnt/skills/quality-standard/SKILL.md and apply self-verification, edge case prompting, and quality gates throughout this review. Do not deliver surface-level feedback. Flag what's MISSING as aggressively as what's wrong.
Review Depth Protocol
MANDATORY FOR ALL REVIEWS — Never conduct a surface-level review.
File-by-File Analysis
For every file reviewed, systematically analyze:
- Correctness: Does the code do what it claims? Are the algorithms correct?
- Error Handling: Every failure path explicitly handled? No swallowed exceptions?
- Edge Cases: Null/undefined/empty values handled? Boundary conditions covered?
- Security: Input validation at trust boundaries? No injection vulnerabilities?
- Performance: N+1 queries? Unbounded loops? Blocking I/O in async paths?
- Maintainability: Clear naming? Testable? Low coupling? Well-documented?
Endpoint Review Checklist
For every HTTP endpoint, REST API, or RPC method found:
- Input Validation: All parameters validated for type, length, format, range?
- Authentication: Is the endpoint authenticated? Is auth logic correct?
- Authorization: Does the user have permission to perform this action?
- Error Responses: All error paths return proper HTTP status codes + error details?
- Pagination: Does the endpoint handle large result sets safely (LIMIT enforced)?
- Rate Limiting: Is the endpoint protected against abuse?
- Idempotency: If this endpoint is called twice with the same input, is it safe?
Database Query Review Checklist
For every SQL query, ORM query, or database operation found:
- Indexes: Are there indexes on WHERE clause columns? JOIN columns? Filter columns?
- N+1 Pattern: Will this query fetch data in a loop (one per parent record)? Fix with JOINs or batch loading.
- Pagination: Is LIMIT enforced? Can this query return 10M rows?
- Timeout: Is there a query timeout configured?
- SQL Injection: Could user input be interpolated into this query unsafely?
Rename / Refactor Propagation Check
When entity, model, interface, DTO, or type files are changed:
- Run
pre-review-check.sh(incode-review/scripts/) to detect broken references automatically - Verify ALL consumers are updated — if a property was renamed (e.g.,
address→addresses), every service, controller, mapper, test, and migration that references the old name must be updated - Check TypeScript compilation: run
npx tsc --noEmit— if it fails, the review is blocked until build passes - Common misses: services using old property names, DTOs not reflecting new schema, tests asserting on old field names, migrations referencing old columns
- Interface contract changes: if an interface/type is modified, verify all implementations conform to the new contract
- Import path changes: if files were moved/renamed, verify all import statements are updated
This is the #1 cause of "it worked locally but broke in CI" — always verify propagation.
Flag What's MISSING, Not Just What's Wrong
For every significant piece of code:
- Missing error handling on I/O operations?
- Missing input validation?
- Missing tests?
- Missing logging?
- Missing metrics/monitoring?
- Missing documentation?
- Missing backwards compatibility considerations?
- Missing propagation of renames/refactors to all consumers?
Failure Mode Analysis
For every significant code change, run this thought experiment:
"What happens when this fails at 3am with 10x traffic?"
Analyze these failure scenarios:
- Database is slow → Does the code timeout? Does it block other requests? Is there a circuit breaker?
- External API is down → Does the code fail fast or retry infinitely? Is there a fallback?
- Queue is backed up → Will messages pile up? Is there a dead letter queue?
- Two requests arrive simultaneously → Is there a race condition? Missing locks?
- Network partition → Can the service recover? What about partial failures?
- Database connection pool exhausted → Will requests hang or fail gracefully?
- Memory or disk is full → Does the code handle resource exhaustion?
Flag every scenario that could cause cascading failures or data loss.
Architecture & Structure
Clean Architecture compliance:
- Layers properly separated? (Domain → Application → Infrastructure → Presentation)
- Domain layer zero external dependencies?
- Use cases orchestrating, not implementing domain logic?
- Infrastructure concerns behind interfaces?
SOLID checklist:
- Single Responsibility — One concern per class
- Open/Closed — Extend behavior without modifying code
- Liskov Substitution — Subtypes replace base types safely
- Interface Segregation — Focused, not bloated interfaces
- Dependency Inversion — High-level depends on abstractions
Folder structure:
✅ Good: src/ domain/ | application/ | infrastructure/ | presentation/
❌ Bad: src/ controllers/ | models/ | services/ (mixed concerns)Language-Specific Checks
Node.js (detailed patterns → /references/nodejs-patterns.md)
- Async/await error handling + centralized handler
- Event loop blocking (worker threads for CPU work)
- Memory leaks (caches, listeners, backpressure)
- N+1 queries (eager loading in ORMs)
- Connection pooling + env validation at startup
Java (detailed patterns → /references/java-patterns.md)
- Exception handling (specific, not broad)
- Thread safety in singleton Spring beans
- Resource management (try-with-resources)
- Null safety (Optional, @Nullable)
- Transaction boundaries at service layer
- Constructor injection (not field @Autowired)
Microservices Patterns
Core checks:
- Service boundaries align with business domains
- HTTP for queries, events for commands
- Idempotency on all consumer endpoints
- Circuit breaker on external calls
- Correlation IDs for distributed tracing
Anti-patterns to flag:
- Tightly coupled services (shared DB, must deploy together)
- Synchronous chains (A → B → C → D)
- Missing retries/backoff on inter-service calls
Data & Messaging
SQL & Database (detailed checklist → /references/payment-security-checklist.md)
- Indexes on WHERE/JOIN columns
- No N+1 queries (JOINs or batch loading)
- Pagination with LIMIT on list endpoints
- DECIMAL(19,2) for money, not FLOAT
- Foreign keys + audit columns (created_at, updated_at)
Messaging (Kafka/SQS/SNS → /references/payment-security-checklist.md)
- Idempotent consumers (handle redelivery safely)
- Dead letter queue configured + monitored
- Schema versioning (backward/forward compatible)
- Consumer group management (Kafka) or visibility timeout (SQS)
Payment & Financial
See → /references/payment-security-checklist.md for:
- Money type safety (DECIMAL, never float)
- Idempotency keys on all operations
- Double-entry bookkeeping ledger
- Exponential backoff retry logic
- Immutable audit trail
- Webhook signature verification
Output Format
## Summary
[Overall assessment: architecture quality, readiness level, key concerns]
## Critical (blocks merge)
[Security, data integrity, money-related bugs]
## Architecture
[SOLID violations, Clean Architecture breaches, coupling issues]
## Performance
[N+1 queries, missing indexes, memory concerns, blocking operations]
## Reliability
[Error handling gaps, missing retries, no circuit breakers]
## Missing
[What SHOULD exist but doesn't: tests, error handling, input validation, logging, metrics, documentation, edge case coverage, backwards compatibility]
## Risk Assessment
[What could break in production? What is the blast radius? How hard is rollback? Scenarios from failure mode analysis.]
## Suggestions
[Improvements that aren't blocking]
## Positive
[Good patterns observed — always include at least one substantive positive observation]Quality Gates — Review Not Complete If
Do NOT deliver the review if any of these are true:
- Any endpoint found WITHOUT input validation flagged explicitly
- Any I/O operation (network call, database query, file access) WITHOUT error handling flagged explicitly
- Any operation involving money/financial data WITHOUT idempotency safeguards flagged explicitly
- Missing tests not mentioned in the review
- No positive feedback provided (always find at least one thing done well)
- Edge cases from the Quality Standard not considered (see edge case prompting section in quality-standard)
- Failure mode analysis not completed (3am + 10x traffic scenarios)
- "Missing" section is empty when it should contain items
- Risk assessment is missing or generic
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.

