django-security
Skill by affaan-m
Provides Django security guidance for authentication, authorization, CSRF, SQL injection, XSS and secure production settings. It is aimed at developers who build, review or deploy Django applications.
Install django-security
Built from the published package, never by AI.
git clone --depth 1 https://github.com/affaan-m/ECC /tmp/ECC && mkdir -p ~/.claude/skills && cp -r /tmp/ECC/.kiro/skills/django-security ~/.claude/skills/django-securityRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/affaan-m/ECC /tmp/ECC && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ECC/.kiro/skills/django-security ~/.gemini/antigravity-cli/skills/django-securityAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
django-security is an agent skill that gives an AI assistant Django security best practices. It covers production settings such as DEBUG, ALLOWED_HOSTS, HTTPS redirects, secure cookies and HSTS. It also covers a custom user model, password validators and hashers, session settings, and permission checks. The skill includes guidance on SQL injection, XSS, CSRF, file upload validation and API rate limiting, with good and bad code examples.
The skill is written as a SKILL.md file. It applies when setting up authentication and authorization, configuring production settings, reviewing a Django application for security issues, or deploying one. It is aimed at developers building or auditing Django applications. The source is an excerpt that ends partway through the rate limiting section.
Written from the project's SKILL.md and checked against it.
What it can do
- Production settingsShows security settings for production, including DEBUG, ALLOWED_HOSTS, HSTS and secure cookies.
- AuthenticationCovers a custom user model, password validators, password hashers and session management.
- AuthorizationCovers model permissions, custom DRF permission classes and role-based access control.
- SQL injection preventionShows safe Django ORM queries and parameterized raw SQL, and marks unsafe interpolation.
- XSS preventionCovers template auto-escaping, safe string handling and security HTTP headers.
- CSRF protectionCovers CSRF settings, template tokens, AJAX token use and when to exempt views.
- File upload validationShows extension and file size validators and separate storage for user uploads.
- API rate limitingShows Django REST Framework throttle settings for anonymous and authenticated users.
What you need
- A Django application
Try asking
- Review my Django production settings for security problems.
- Show me how to set up a custom Django user model with email login.
- Check my Django views for SQL injection and XSS risks.
Good to know
- The source is an excerpt and ends partway through the rate limiting example.
- The source is guidance and code snippets, not a tool that scans code automatically.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .kiro/skills/django-security/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md15 KB
Alternatives to django-security
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
django-security: common questions
Does django-security cover CSRF protection?
Yes. The skill covers default CSRF protection, CSRF cookie settings, using tokens in templates and AJAX requests, and exempting views with csrf_exempt.
Does it help prevent SQL injection in Django?
Yes. It shows how the Django ORM and parameterized raw() queries protect against SQL injection, and it marks direct string interpolation as vulnerable.
Is this skill only for Django?
The source is written for Django applications. Some examples also use Django REST Framework.
How do I install django-security?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is django-security free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is django-security safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to django-security?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
