Lewati ke konten
TakoAPI
Kembali ke skill

api-security

oleh brandonwise

Security & Passwords
552Unduhan dilaporkan oleh clawskills.sh
0Tayangan
0 sukaMasuk untuk menyukai skill ini
—Belum ada penilaian
Penilaian Anda

Ringkasan

Implement secure API design patterns including authentication, authorization, input validation, rate limiting.

Deskripsi

Apa yang Dilakukan Skill Ini

Covers secure API design patterns for REST, GraphQL, and WebSocket APIs. Addresses authentication (JWT, OAuth 2.0, API keys), input validation, rate limiting, and the OWASP API Security Top 10. Includes working code examples for middleware, schema validation, and authorization checks.

Covers authentication, validation, rate limiting, and OWASP compliance in one place instead of requiring separate references for each concern.

Kapan Menggunakannya

  • Adding JWT authentication to a new REST API
  • Locking down login endpoints against brute-force attempts
  • Preventing SQL injection in user-submitted query parameters
  • Enforcing role-based access control on admin routes
  • Preparing an existing API for a security audit

Contoh Alur Kerja

INPUT

User asks: How do I secure my Express API with JWT authentication and rate limiting?

AGENT
  1. 1

    Reviews the existing API structure and identifies unprotected endpoints

  2. 2

    Generates JWT login and token refresh endpoints with bcrypt password hashing

  3. 3

    Creates authentication middleware that verifies tokens on protected routes

  4. 4

    Adds Redis-backed rate limiting with stricter limits on auth endpoints

  5. 5

    Applies security headers via Helmet and validates request bodies with Zod schemas

OUTPUT

Complete Express middleware setup with JWT auth, refresh tokens, per-route rate limiting, input validation schemas, and security headers

Instalasi

clawhub install brandonwise/api-security

Jalankan perintah CLI-nya, atau tempel prompt ke Claude Code, Cursor, Codex, atau coding agent apa pun yang Anda pakai.

Tautan