calcosmic/aether/api-security
Claude Code and agent skill by calcosmic/aether
Trust tier 1
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when the project uses APIs that require authentication, authorization, rate limiting, or threat protection
Install
npx vskill@latest install calcosmic/aether/api-securitySKILL.md
The same SKILL.md was published earlier as calcosmic/aether/api-security.
API Security Best Practices
OAuth2 and OpenID Connect
- Use OAuth2 Authorization Code Flow with PKCE for public clients (SPAs, mobile); never use Implicit Flow
- Validate ID tokens server-side: verify
iss,aud,exp, and signature before trusting claims - Use the OIDC discovery endpoint (
/.well-known/openid-configuration) for dynamic configuration - Store tokens securely: HttpOnly+Secure+SameSite cookies for web, Keychain/Keystore for mobile
- Implement token rotation: short-lived access tokens (15 min) with refresh token rotation on use
JWT Best Practices
- Keep JWT payloads minimal: include
sub,exp,iat, andscope-- never embed sensitive data - Use asymmetric signing (RS256, ES256) when multiple services verify tokens; symmetric (HS256) only for single-service
- Set a reasonable
expclaim; validate expiration on every request -- never accept tokens without it - Implement a token revocation mechanism: maintain a denylist or use short TTLs with refresh rotation
- Validate the
aud(audience) andiss(issuer) claims to prevent token confusion attacks
Rate Limiting
- Apply rate limiting at the API gateway or reverse proxy layer: per-user and per-IP strategies
- Use sliding window counters over fixed windows to prevent burst behavior at window boundaries
- Return
429 Too Many RequestswithRetry-Afterheader; do not silently drop requests - Differentiate limits by endpoint sensitivity: stricter for auth, relaxed for read-heavy public endpoints
- Implement backoff strategies client-side: exponential jitter backoff on 429 responses
OWASP API Security Top 10
- API1 -- Broken Object-Level Authorization: Validate that the authenticated user owns the requested resource
- API2 -- Broken Authentication: Use proven auth libraries; never roll your own crypto or session management
- API3 -- Broken Object Property-Level Authorization: Return only fields the user is authorized to see; filter responses
- API4 -- Unrestricted Resource Consumption: Enforce pagination, field selection, and query complexity limits
- API5 -- Broken Function-Level Authorization: Enforce RBAC at the route/handler level; deny by default
- API8 -- Security Misconfiguration: Disable verbose errors in production, enforce HTTPS, remove default credentials
Security Headers
- Set
Content-Type: application/jsonon all API responses; reject unexpected content types on input - Apply
Strict-Transport-Security: max-age=31536000; includeSubDomainsfor HSTS - Set
X-Content-Type-Options: nosniffandX-Frame-Options: DENYas defense-in-depth - Use CORS with explicit
Access-Control-Allow-Origin-- never use*for authenticated endpoints - Implement
Content-Security-Policyfor any API that serves HTML documentation or UI
Security
- Security scanPassed, 40 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.aether/skills/domain/api-security/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/calcosmic/aether/api-security)