vstorm-co/production-stack-skills/production-security
Claude Code and agent skill by vstorm-co/production-stack-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Production security hardening — secrets management, CORS policy, authentication patterns, authorization models, rate limiting, security headers, dependency scanning, and OWASP Top 10 awareness. Use this skill when the user works on authentication, authorization, secrets, CORS, rate limiting, security headers, or any security-adjacent code. Also trigger when user says /production security.
Install
npx vskill@latest install vstorm-co/production-stack-skills/production-securitySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as vstorm-co/production-stack-skills/production-security.
Production Security
This skill encodes the security patterns that stop your application from becoming a headline. Every recommendation here comes from real breaches, real CVE exploits, and real incident reports — not theoretical threat models. The patterns are opinionated because security is not a place for "it depends." If you ship with allow_origins=["*"], hardcoded API keys, or MD5 password hashes, you are not making a tradeoff — you are making a mistake.
1. Secrets Management
The #1 rule: secrets never touch code, ever. Not in variables, not in comments, not in "temporary" config files, not in Docker build args. If git log -p or docker history --no-trunc can reveal a secret, you have a breach waiting to happen.
Environment Variables for Local Dev
Secret Managers for Production
Never use .env files in production. Use a proper secret manager:
Other production-grade options: HashiCorp Vault, Doppler, 1Password Secrets Automation.
Docker: BuildKit Secrets Only
What NEVER to do:
For complete container secret patterns, see production-docker section 4.
Secret Rotation
Design for rotation from day one. Secrets will be compromised — the question is how fast you can rotate.
Pre-Commit Hooks: Catch Secrets Before They Ship
Detection: Grep for Hardcoded Secrets
2. CORS Configuration
CORS (Cross-Origin Resource Sharing) controls which origins can make requests to your API from a browser. Get it wrong and you either block your own frontend or open your API to every site on the internet.
What CORS Protects Against (And What It Does Not)
CORS prevents: A malicious site (evil.com) from making authenticated requests to your API using a victim's browser cookies. Without CORS, any site could read your API responses if the user is logged in.
CORS does NOT prevent: Server-to-server attacks, API key theft from client-side code, or attacks from non-browser clients (curl, Postman, bots). CORS is a browser-only enforcement mechanism.
Python FastAPI
Node.js Express
CORS Rules
- Never
allow_origins=["*"]whenallow_credentials=True— browsers actually reject this combination, but it signals you have not thought about your CORS policy - Whitelist specific origins — your frontend domain(s), your staging domain, nothing else
allow_methods— only the methods your API actually uses. If you do not support PATCH, do not allow PATCHallow_headers— onlyAuthorizationandContent-Typefor most APIsmax_age— set to 600 (10 min) to reduce preflight requests. Do not set to 86400 in dev (causes stale CORS debugging)
3. Authentication Patterns
JWT: Short-Lived Access, Long-Lived Refresh
Access tokens are short-lived so that if stolen, the damage window is small. Refresh tokens are long-lived but can be revoked server-side.
JWT Storage: HttpOnly Cookies, Not localStorage
Why not localStorage? Any XSS vulnerability gives the attacker full access to tokens stored in localStorage. HttpOnly cookies are invisible to JavaScript — XSS cannot read them.
JWT Validation
Password Hashing: bcrypt or argon2id
Never use: MD5, SHA1, SHA256 (unsalted), or any general-purpose hash for passwords. These are fast by design — attackers can brute-force billions of hashes per second. bcrypt and argon2id are intentionally slow.
OAuth2 Flows
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 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 repositoryCheckingskills/production-security/SKILL.md
Popularity
- Repository stars
- 26
- Repository forks
- 7
- 7-day trend score
- 16
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
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/vstorm-co/production-stack-skills/production-security)