Ganeshguru5

Secure API Architect — Security skill for Claude Code

Security community

A practical guide and skill framework for designing secure, scalable, and production-ready APIs.

How to install Secure API Architect

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Ganeshguru5/secure-api-architect and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Secure API Architect does

A practical guide and skill framework for designing secure, scalable, and production-ready APIs. Covers authentication, authorization, input validation, rate limiting, encryption, API security, error handling, testing, monitoring, and common vulnerabilities, helping developers build robust enterprise-grade backend systems.

Alternatives in Security

  • Security Guardian — Comprehensive security analysis for RTK CLI tool, focusing on command injection, shell escaping, hook security 11.9k ★
  • MCP Security Checklist (SlowMist) — Comprehensive checklist: input validation, rate limiting, RBAC, credential management, container hardening 819 ★
  • Spring-ai MCP Security — Authorization framework for MCP client/server using Spring Security 85 ★

README

secure-api-architect

An [Agent Skill](https://agentskills.io) that helps coding agents design, implement, and review secure web APIs in JavaScript and TypeScript. Its main focus is Next.js, Express, Node.js, PostgreSQL, and Zod. It's a defensive engineering skill: it prevents vulnerabilities while code is being written, finds security defects in existing code, makes minimal fixes, and proves them with tests.

Every API change has to answer five questions:

  1. Who is the caller, and how is their identity established?
  2. May the caller perform this operation?
  3. May the caller access this particular resource, and these specific fields?
  4. Can the request abuse resources, exploit an input, or violate a business invariant?
  5. How will the expected security behavior be verified?

Why it exists

Coding agents know the standard security advice. The failures happen in specific places:

  • The agent confirms that an auth library is installed, but never checks whether the route it is editing calls it.
  • It fetches WHERE id = $1 on a tenant-owned table and returns the row.
  • It passes await req.json() into prisma.user.update, so role becomes writable.
  • It treats middleware.ts, a hidden button, or CORS as authorization.
  • It "verifies" a JWT with jwt.decode.
  • It adds a second auth library next to a working one.
  • It writes tests that only check that access is denied, or it claims an endpoint is secure because the tests pass.

This skill makes the agent read the repository's real security architecture first. The agent then traces each endpoint from the route to the SQL and applies only the controls that endpoint needs. Every finding is reported with evidence, severity, and confidence.

How it works

Analyze repository → API contract → Select risks → Trace implementation → Minimal fix → Verify
  1. Analyze the repository. The agent finds the identity mechanism, where authentication is enforced, the authorization model, tenancy, validati