Secure api design

From charlieviettq/awesome-agent-skill · View interactive version

Secure api design is an AI agent skill from the GitHub repository charlieviettq/awesome-agent-skill. Design and implement secure APIs—authentication patterns, authorization models, input validation, secrets handling, and safe defaults. Use when designing new endpoints, auth flows, or reviewing API contracts.

How to use this skill

Skill file

Secure API design

Defaults

Authentication patterns

| Pattern | Use when | Notes |

|---------|----------|-------|

| Session cookie | Browser-first apps | CSRF protection, secure cookies |

| Bearer JWT | SPA/mobile, stateless | Short TTL, rotation, no sensitive claims in payload |

| API key | Machine-to-machine | Scoped keys, audit log, rate limits |

| OAuth2/OIDC | Third-party identity | Standard libraries; validate issuer/audience |

Authorization

Contract-first (public APIs)

Input and output

Secrets

Implementation checklist

Related

Use api-security-testing before release for verification.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.