
Security Operations Deployment
This is your deployment security checklist in skill form. It tells you exactly when to apply rate limiting versus CSRF protection, walks through the full environment variable setup for Clerk and Convex projects, and gives you a pre-deployment checklist you can actually run through. The decision matrix for middleware combinations is genuinely useful because it's easy to over-apply or under-apply protections. The environment variable section is thorough, including the actual commands to generate secrets and a validation function you can drop into your config. If you're deploying a Next.js app with authentication and want to avoid the usual "did I forget to set that env var" panic, this covers the operational stuff that doesn't fit in other security skills.
- skills.sh installs
- 165
- GitHub stars
- 18
- last updated
- Aug 21, 2026
Install
$ npx -y skills add harperaa/secure-claude-skills --skill security-operations-deployment --agent claude-codeInstalls into .claude/skills of the current project.
Files
Security Operations & Deployment
When to Apply Each Middleware - Decision Guide
withRateLimit() - Apply to:
✅ Always apply to:
- Any route that could be abused (spam, brute force)
- Login-like operations (even if Clerk handles auth)
- Data creation/modification endpoints
- Contact/support form endpoints
- Webhooks (to prevent DoS)
- File upload endpoints
- Search endpoints
- Data export endpoints
- Any expensive AI/API operations
- Report generation
- Bulk operations
❌ Usually not needed for:
- Static asset requests (handled by CDN)
- Simple GET endpoints that only read public data
- Health check endpoints
- Endpoints already protected by authentication rate limits
withCsrf() - Apply to:
✅ Always apply to:
- All POST/PUT/DELETE operations
- Any state-changing operation
- Form submissions
- Account modifications
- Payment operations
- Data deletion operations
❌ Skip for:
- GET requests (read-only operations)
- Public read-only endpoints
- Webhooks (use signature verification instead)
Combining Both Middlewares
Sponsors
Details
- Repository
- github.com/harperaa/secure-claude-skills
- Categories
- Backend & APIs, Security, DevOps & CI/CD
- First seen
- Jun 3, 2026
More from harperaa/secure-claude-skills
All 12- Dependency Supply Chain Security253
- Csrf Protection206
- Security Headers203
- Security Architecture Overview200
- Rate Limiting199
- Security Testing Verification198
- Input Validation Xss Prevention197
- Secure Error Handling197
- Security Prompts193
- Authentication Authorization Clerk187
- Payment Security Clerk Billing Stripe183