Skip to content
Back to skills

Node Api Review

ASecurity

Node.js (Express/Fastify) backend review — async, validation, memory, security, observability.

  • 4 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 12, 2026
testingnodeexpressapibackendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add aibot88/sec_skill_store --skill node-api-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Node Api Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Node Api Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aibot88-node-api-review/badge)](https://www.skillsdirectory.com/skills/aibot88-node-api-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: node-api-review
description: Node.js (Express/Fastify) backend review — async, validation, memory, security, observability.
---

# Node API Review

## Ortak Doktrin

`agents/shared/severity-rubric.md` ve `agents/shared/escalation-matrix.md` default-load
sayılır (`agents/coordination.md` §11). Bu skill'in çıktısı **Critical / High / Medium /
Low + kanıt** formatında olmak zorunda — spekülatif Critical yasak. Sahiplik dışı bulgu
ilgili agent'a delege; karar yetkisi eşiği aşılırsa **kullanıcı onayı zorunlu**.

## Ne Zaman Kullanılır
- PR review
- Memory leak şüphesi
- Yeni endpoint
- Audit prod hazırlık

## Workflow
1. **Statik**
   - `tsc --noEmit`, eslint
   - `npm audit --omit=dev`
2. **Async**
   - `await` üstüne try/catch
   - `Promise.all` vs `allSettled`
   - `unhandledRejection` listener
3. **Input**
   - zod/valibot schema her endpoint
   - File upload size + mime + path sanitize
4. **Memory**
   - Stream büyük payload
   - Buffer.allocUnsafe sadece güvenli
   - Heap snapshot komutu (`kill -USR2 <pid>` Node inspect veya `clinic heapprofile`)
5. **Security**
   - Helmet, CORS allowlist, rate limit
   - JWT alg
6. **Observability**
   - pino JSON
   - request id middleware
   - metric expose (`prom-client`)

## Checklist
- [ ] TS strict + noUncheckedIndexedAccess
- [ ] Validation tüm boundary
- [ ] Helmet + CORS + rate limit
- [ ] Stream upload/download büyük payload
- [ ] Logger PII redact
- [ ] Config zod validate
- [ ] Graceful shutdown SIGTERM
- [ ] Test vitest + supertest
- [ ] Dep audit clean

## Antipattern
- `fs.readFileSync` request handler içinde
- `child_process.exec` user input
- `JSON.parse` try/catch'siz
- Global mutable cache (no TTL)
- `process.exit` library kodda
- `Promise.all` partial fail tüm batch'i kaybeder
- `console.log` prod
- `require('dotenv').config()` lib kodu içinde

## Örnek Agent Davranışı
```
User: /node-review src/routes/upload.ts
Agent:
1. Detect: fs.readFileSync(req.body.path) — path traversal + sync
2. Detect: validation yok
3. Suggest: pipeline + zod schema + size limit
4. Diff
```

## Çıktı Formatı
```markdown
# Node Review: <path>

## Critical/High/Medium/Low
## Diff
## Test plan
```

Files in this skill

  • SKILL.md2.2 KB
  • source.json608 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.