cc-skill-security-review · davila7 — Claude Code skill: setup guide
Security checklist and defensive code patterns for Claude Code. Guides the assistant during authentication setup and API endpoint creation.
npx claude-code-templates@latest --skill development/cc-skill-security-reviewWhat cc-skill-security-review does
The skill equips Claude Code with defensive programming guidelines. It directs the AI assistant to catch unsafe coding habits, such as storing auth tokens in localStorage or stitching raw user input directly into SQL queries.
The checklist details input validation, file upload limits, cross-site scripting safeguards, and endpoint rate limits. Code snippets demonstrate patterns using TypeScript libraries like zod for object validation, DOMPurify for HTML sanitization, and express-rate-limit for request quotas, alongside Supabase Row Level Security rules.
Adopting these rules requires installing the respective validation or sanitization packages in your application codebase.
What it helps with
- spot hardcoded secrets and unhandled environment variables
- enforce strict request schema validation using Zod
- configure httpOnly cookies and SameSite attributes for JWT tokens
- write parameterized database queries to block SQL injection
Example prompts for the agent
- Review this user registration route against security guidelines
- Implement file upload validation checking size, mime type, and extension
- Check our database queries to ensure all inputs are parameterized
How to install cc-skill-security-review
1claude-code-templates
npx claude-code-templates@latest --skill development/cc-skill-security-review2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill cc-skill-security-review -a claude-code3Manually: put the files in place
~/.claude/skills/cc-skill-security-review/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cc-skill-security-review/
Manually: put the files in place
.agents/skills/cc-skill-security-review/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/cc-skill-security-review/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates cc-skill-security-review2Manually: put the files in place
.github/skills/cc-skill-security-review/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/cc-skill-security-reviewManually: put the files in place
.devin/skills/cc-skill-security-review/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about cc-skill-security-review
How to install cc-skill-security-review in Claude Code?
Run npx claude-code-templates@latest --skill development/cc-skill-security-review in your terminal.
What does cc-skill-security-review do?
It provides Claude Code with a reference checklist and code patterns to prevent vulnerabilities when handling secrets and database queries.
Which packages are referenced in the security patterns?
The skill features TypeScript examples relying on zod for payload checks, isomorphic-dompurify for HTML scrubbing, and express-rate-limit for request throttling.
Similar skills
All skills for Security →cc-skill-security-review by other authors comes first.