backend-review
Skill0 starsChanged 15 days agoMITView on GitHub
Strict production review of Node.js/Express backend code — conventions, database queries and indexes (Mongoose and Prisma), Redis usage, response shape, error handling, security and performance — that fixes every violation it finds and reports what needs a human. Use when asked to review, audit, check or clean up backend code, a module, a diff or a PR, or before committing or shipping backend changes.
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
- camilooscargbaptista/cto-toolkittheir own version, first seen Nov 29, 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
- camilooscargbaptista/cto-toolkit★ 9same name
- frnkgns/Overgeared-Skills★ 7same name
- tuvatechvalley/fastapi-prod-ready★ 2same name
- henrilhos/skills★ 1same 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 repository14 other files it gives its agents.
- ai-integrationSkill
- api-docsSkill
- auth-sessionsSkill
- backend-conventionsSkill
- create-backendSkill
- deploy-dockerSkill
- mongoose-mongodbSkill
- new-moduleSkill
- nextjs-api-routesSkill
- prisma-postgresSkill
- redis-cacheSkill
- scheduled-jobsSkill
- security-hardeningSkill
- session-logSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
No argument → git diff + git diff --staged (and untracked files under src/).
- Distinctive: line 14
Read the project CLAUDE.md first.
- Distinctive: line 15
Never touch files outside the scope.
- Distinctive: line 88
If nothing is wrong: "No issues found — code meets production standards." Do not invent findings.
“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 Review
Find every issue, fix every fixable one, report precisely.
1. Scope and context
- No argument →
git diff+git diff --staged(and untracked files undersrc/). Module name → every file insrc/modules/<name>/plus its model/schema. Path → that file. - Read the project
CLAUDE.mdfirst; its rules override the checklist. Read one healthy neighbouring module to know the house style. - Never touch files outside the scope.
2. Checklist
Structure & naming
- Module files and names follow
<name>.<type>.js,<verb><Resource>Service,<verb><Resource>,<verb><Resource>Schema,E-prefixed enums - Named exports at the bottom of services/controllers; default export for models and routers
- Controllers contain no DB/cache/business logic; services never touch
req/res - Route chain:
authenticate → role → validateRequest → controller - Only GET and POST
Data access (Mongoose)
.select()on every read;.lean()on every read-only queryisActive: true+ scope on every filter; scope fromreq.user- No query in a loop (
$in+Map); independent queries inPromise.all - Paginated:
countDocuments+findinPromise.all, with.limit() - Every filter/sort field indexed;
{ scope: 1, isActive: 1 }exists - Soft delete only;
findOneAndUpdatefilters by scope
Data access (Prisma)
select/includeexplicit everywhere; getters called inside functionsgetReadDBfor reads,getWriteDBfor writes and read-before-write{ in: [...] }instead of loops; counters via{ increment }in a transaction@@index([scope, isActive])and indexes for filter fields; FKs indexed- No
delete/deleteMany; scopedupdateManywithcount === 0→ 404
Redis
- Helpers only, never
new Redis(); every set has a TTL - Every write busts the keys that cover it; keys include the scope
- Cache failures never throw; no
KEYS; paginated lists not cached
Responses & errors
- Thrown errors carry
statusCodeand a user-actionable message - Controller catch:
logger.errorwitherror,stack,userId,requestId→httpError(req, res, error, error.statusCode || 500) - No double-wrapped
data; list passes{ items, pagination }straight through; single item consistent with project rule - Other tenant's record → 404
Security
- Every body/query/params validated with Zod; strings and arrays bounded
- No mass assignment of
role,isActive, scope or ownership fields - No secrets in code or logs; no sensitive fields in responses
- Rate limits on credential and expensive routes
Hygiene
- Zero comments, JSDoc, TODOs, commented-out code
- Zero
console.log - No
no-param-reassignviolations; lines ≤ 100 - No dead code, unused exports or imports; no unrequested abstractions
- API docs updated for changed routes
Performance
- No unbounded reads; payloads return only needed fields
- Hot single-entity reads cached where it pays off
- No sequential awaits that could be parallel; no heavy work inside transactions
3. Fix
Apply each fix with minimal edits in the existing style. For an index change, also add the migration (Prisma) or model index (Mongoose). Run the project's lint after fixing.
4. Report
Fixed 6 issues in 3 files
- src/modules/order/services/order.service.js:48 — N+1 customer lookup → $in + Map
- src/models/order.model.js:31 — added { storeId: 1, isActive: 1, status: 1, createdAt: -1 }
- src/modules/order/controllers/order.controller.js:22 — removed { data: {...} } double wrap
Needs your decision
- POST /v1/orders/:id/refund has no rate limit — which limiter tier?
Lint: passingIf nothing is wrong: "No issues found — code meets production standards." Do not invent findings.
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.

