security-setup
Installation
SKILL.md
Set up security hardening: $ARGUMENTS
$ARGUMENTS can include:
- "audit" — scan codebase for security issues and report (no changes)
- "full" — CSP + rate limiting + CORS + validation hardening (default)
- "headers-only" — just HTTP security headers
- "rate-limiting" — just Upstash rate limiting
- Framework hint: "nextjs" or "vite" (auto-detected)
- Empty — full hardening, auto-detect framework
Before Starting
- Read
package.jsonto detect framework - Read
src/middleware.ts— add security headers there - Read
next.config.ts— add HTTP headers config - Read
src/app/api/— find API routes needing rate limiting - Check if
@upstash/ratelimitor@upstash/redisis installed