harperaa avatar

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-code

Installs 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
1wwwzhouhui avatarjimeng_mcp_skillwwwzhouhui/skills_collection使用jimeng-mcp-server进行AI图像和视频生成。当用户请求从文本生成图像、合成多张图片、从文本描述创建视频或为静态图像添加动画时使用此技能。支持四大核心能力:文生图、图像合成、文生视频、图生视频。需要jimeng-mcp-server在本地运行或通过SSE/HTTP访问。165skills.sh installs
2vm0-ai avatarchatwootvm0-ai/vm0-skillsChatwoot API for customer support. Use when user mentions "Chatwoot", "conversations", "support chat", or customer messaging.164skills.sh installs
3charleswiltgen avataraxiom-metrickit-refcharleswiltgen/axiomMetricKit API reference for field diagnostics - MXMetricPayload, MXDiagnosticPayload, MXCallStackTree parsing, crash and hang collection163skills.sh installs
4aibtcdev avataropenrouteraibtcdev/skillsOpenRouter AI integration — list available models, get integration code examples for different environments, and send prompts to any OpenRouter-compatible model162skills.sh installs
5davila7 avatarupstash-qstashdavila7/claude-code-templatesUpstash QStash expert for serverless message queues, scheduled jobs, and reliable HTTP-based task delivery without managing infrastructure. Use when: qstash, up162skills.sh installs
6oguzhan18 avatarangular-queryoguzhan18/angular-ecosystem-skillsALWAYS use when working with TanStack Query (Angular Query) for server state management, data fetching, caching, or mutations in Angular applications.160skills.sh installs