igorwarzocha/opencode-workflows/security-django
Claude Code and agent skill by igorwarzocha/opencode-workflows
- community
Checking that the SKILL.md file is still in the repository.
Review Django security audit patterns for settings and middleware. Use for auditing SECRET_KEY, DEBUG, CSRF, and auth decorators. Use proactively when reviewing Django apps (settings.py or manage.py present). Examples: - user: "Audit my Django settings.py" → check SECRET_KEY, DEBUG, and ALLOWED_HOSTS - user: "Check Django views for auth" → verify @login_required and permission classes - user: "Review Django CSRF config" → check middleware and @csrf_exempt usage - user: "Scan for SQL injection in Django" → find raw SQL usage instead of ORM - user: "Audit Django REST framework config" → check default permissions and auth
Install
npx vskill@latest install igorwarzocha/opencode-workflows/security-djangoSKILL.md
<overview>
Security audit patterns for Django applications covering critical settings, security middleware, CSRF protection, and common vulnerabilities.
</overview>
<rules>
Critical Settings (settings.py)
SECRET_KEY
Check: Is SECRET_KEY in .env and .env is in .gitignore?
DEBUG
ALLOWED_HOSTS
Security Middleware
Required Middleware
Check: Is SecurityMiddleware present and near the top?
Security Middleware Settings
</rules>
<vulnerabilities>
CSRF Protection
Disabled CSRF (Critical)
Audit: Search for @csrf_exempt - each needs justification.
CSRF Trusted Origins (Django 4.0+)
Common Vulnerabilities
SQL Injection
Command Injection
Path Traversal
IDOR (Insecure Direct Object Reference)
Auth Decorators Missing
Django REST Framework
</vulnerabilities>
<commands>
Quick Audit Commands
</commands>
<checklist>
Hardening Checklist
- [ ] SECRET_KEY from environment, not hardcoded
- [ ] DEBUG = False in production
- [ ] ALLOWED_HOSTS explicitly set (no wildcards)
- [ ] SecurityMiddleware enabled and configured
- [ ] CSRF middleware enabled
- [ ] SECURE_SSL_REDIRECT = True
- [ ] SESSION_COOKIE_SECURE = True
- [ ] CSRF_COOKIE_SECURE = True
- [ ] No @csrf_exempt without justification
- [ ] All views have appropriate auth decorators
- [ ] No raw SQL with string formatting
- [ ] DRF has IsAuthenticated as default permission
</checklist>
Security
- Security scanPassed, 85 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 repositoryCheckingagents/security-reviewer/.opencode/skill/security-django/SKILL.md
Popularity
- Repository stars
- 111
- Repository forks
- 10
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 3 May 2026, 5 months ago.
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/igorwarzocha/opencode-workflows/security-django)