tao12345666333/ankaloop/security-best-practices
Claude Code and agent skill by tao12345666333/ankaloop
- community
Checking that the SKILL.md file is still in the repository.
Security best practices and vulnerability prevention guidelines
Install
npx vskill@latest install tao12345666333/ankaloop/security-best-practicesSKILL.md
Security Best Practices Skill
When writing code, follow these security best practices to prevent common vulnerabilities.
Input Validation
Always validate and sanitize user input:
Validation Checklist
- Validate type, length, format, and range
- Use allowlists over denylists
- Sanitize for the specific output context
- Never trust client-side validation alone
Authentication
Implement secure authentication:
- Use established libraries (e.g., bcrypt, argon2)
- Never store passwords in plain text
- Implement rate limiting on login attempts
- Use secure session management
- Implement proper logout handling
Authorization
Check permissions on every request:
Secrets Management
Never hardcode secrets:
Environment Variables
- Use
.envfiles for development (in.gitignore) - Use secrets managers in production
- Rotate secrets regularly
- Use different secrets per environment
SQL Injection Prevention
Always use parameterized queries:
XSS Prevention
Escape output and use Content Security Policy:
CSRF Protection
Implement CSRF tokens:
Secure Headers
Set security headers:
Error Handling
Don't expose sensitive information in errors:
Dependency Security
Keep dependencies updated:
File Operations
Validate file paths to prevent path traversal:
Logging
Log security events but not sensitive data:
Quick Reference
| Vulnerability | Prevention | |
|---|---|---|
| SQL Injection | Parameterized queries | |
| XSS | Output encoding, CSP | |
| CSRF | CSRF tokens | |
| Path Traversal | Path validation | |
| Command Injection | Avoid shell=True | |
| Hardcoded Secrets | Environment variables | |
| Weak Passwords | bcrypt/argon2, complexity rules |
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 repositoryCheckingexamples/plugins/security-guidance/skills/security-best-practices/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
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/tao12345666333/ankaloop/security-best-practices)