Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 91
  • 313k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-security

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install django-security in Claude Code

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

A

No 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 →

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.

django-security Install

Add to stack

Loading.