tlamatini-csrf-exempt-audit

Enumerate @csrf_exempt-decorated Django views and classify exemption necessity.

14|1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/XAIHT/Tlamatini --skill tlamatini-csrf-exempt-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tlamatini-csrf-exempt-audit
Source: https://github.com/XAIHT/Tlamatini/tree/main/Tlamatini/agent/skills_pkg/tlamatini_csrf_exempt_audit
Command: npx skills add https://github.com/XAIHT/Tlamatini --skill tlamatini-csrf-exempt-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enumerate every @csrf_exempt-decorated view in the codebase and classify whether each exemption is truly necessary, helping reduce security risks.

Core Features & Use Cases

  • Detect and classify csrf_exempt usage across Django views.
  • Propose minimal, concrete fixes for unsafe exemptions.
  • Generate a structured report with total counts, classifications, and recommendations.

Quick Start

Inspect the Tlamatini project and run the audit against Tlamatini/agent/views.py to produce the findings.

Frequently Asked Questions about tlamatini-csrf-exempt-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit Django views for unnecessary csrf_exempt decorators?

To audit Django views for unnecessary csrf_exempt decorators, enumerate every decorated view in views.py, inspect surrounding code to classify risk, and propose minimal mitigations. This generates a structured report with total counts, classifications, and recommendations.

What is a csrf_exempt security audit and why do I need it?

A csrf_exempt security audit detects and classifies csrf_exempt usage across Django views to determine if each exemption is truly necessary. It helps reduce security risks by identifying unsafe exemptions and proposing concrete fixes for them.

How to find and classify all @csrf_exempt usage in a Django project?

Finding and classifying all @csrf_exempt usage involves scanning the codebase to enumerate decorated views and inspecting each view to determine its risk category. The process outputs a structured result containing total counts, classifications, and recommendations.

Can I automatically generate mitigation recommendations for unsafe CSRF exemptions?

Yes, you can automatically generate mitigation recommendations for unsafe CSRF exemptions by inspecting the surrounding view logic to determine the risk category. The audit proposes minimal, concrete fixes for unsafe exemptions in a structured report.

Does this CSRF audit output structured data suitable for automated validation?

Yes, this CSRF audit outputs structured data suitable for automated validation. It returns a structured result containing total counts of exemptions, classifications of each view, and actionable recommendations for security fixes.

When should I run a CSRF exemption audit on my web application?

You should run a CSRF exemption audit when reducing security risks in web applications that use Django. It inspects views.py to detect and classify csrf_exempt usage, ensuring each exemption is truly necessary and proposing fixes for unsafe ones.