agentleFS
yanzyuyuyanzyuyu/min-tok/skills/api-security-reviewer/SKILL.md

api-security-reviewer

Skill1 starsChanged 47 days agoApache-2.0View on GitHub

Melakukan audit kode dan merancang sistem backend yang aman. Gunakan ketika membuat API, mengelola autentikasi, ORM, atau menyusun schema database.

The file

Files
SKILL.md

API Security Reviewer (Data Hygiene SOP)

Tujuan

Membangun lapisan logika bisnis backend yang kebal dari eksposur internal, injeksi data, dan kebocoran state.

Workflow Eksekusi

  1. Endpoint Audit: Verifikasi bahwa setiap endpoint memiliki Middleware Validasi (contoh: Zod, Joi) sebelum menyentuh logika controller.
  2. Database Hygiene: Pastikan query destruktif menggunakan strategi Soft Delete (menyematkan deleted_at) alih-alih DELETE FROM SQL.
  3. Error Masking: Bungkus handler dengan global exception catcher yang mengubah error internal/driver DB menjadi 500 Generic Error.

Aturan Absolut (Guardrails)

  • Zero Stack Trace: DILARANG KERAS mengembalikan stack trace sistem, nama tabel, atau fragment query ke response body JSON HTTP.
  • Authorization over Authentication: Jangan hanya cek apakah user login (JWT valid). Selalu cek apakah user tersebut berhak mengakses baris data tersebut (Ownership/RBAC Check).
  • Rate Limiting: Pastikan route publik krusial (seperti login, register, password reset) dilengkapi pembatasan rate limiting.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.