roninforge/roninforge-django/django-validate
Claude Code and agent skill by roninforge/roninforge-django
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Scan a Django project for common anti-patterns, performance issues, and security problems. Reports N+1 queries, missing indexes, wrong field types, insecure settings, and DRF misconfigurations.
Install
npx vskill@latest install roninforge/roninforge-django/django-validateSKILL.md
The same SKILL.md was published earlier as roninforge/roninforge-django/django-validate.
Validate Django Project
When to Use
Use this skill when:
- Auditing a Django project for quality issues before deployment
- Reviewing a codebase for performance problems
- Checking for common security misconfigurations
- A project is slow and the cause is unknown
Instructions
- Read
settings.pyand check for:
- Hardcoded
SECRET_KEY(should be from environment) DEBUG = Truewithout environment check- Empty
ALLOWED_HOSTSin production config - Missing
SECURE_SSL_REDIRECT - Missing
CSRF_COOKIE_SECUREandSESSION_COOKIE_SECURE USE_TZ = False(should be True since Django 5.0 default)- Missing
DEFAULT_AUTO_FIELDsetting REST_FRAMEWORKmissingDEFAULT_PAGINATION_CLASSorPAGE_SIZE- Deprecated settings:
DEFAULT_FILE_STORAGE,STATICFILES_STORAGE(useSTORAGES)
- Scan all
models.pyfiles for:
- Missing
__str__methods - Missing
Metaclass orordering CharFieldused whereEmailField,URLField,BooleanField, etc. is appropriatenull=TrueonCharField/TextField(should beblank=True, default="")FloatFieldused for monetary values (should beDecimalField)- Missing
related_nameon ForeignKey/M2M fields - Missing
on_deleteon ForeignKey (syntax error in modern Django) - Missing
db_indexon frequently filtered fields - Missing indexes in
Meta.indexes ManyToManyFielddefined in both sides of a relationship
- Scan all
views.pyandviewsets.pyfor:
- QuerySets without
select_related/prefetch_relatedwhen accessing related fields - N+1 query patterns: loops accessing
.related_fieldwithout prefetch - Business logic in views (should be in models)
- Missing
login_requiredor permission checks - Missing pagination on list endpoints
querysetclass attribute whereget_queryset()should be used
- Scan all
serializers.pyfor:
fields = '__all__'(should be explicit field list)- Missing
read_only_fields - Nested serializers without corresponding
select_related/prefetch_relatedin viewset save()called without prioris_valid()- Writable nested serializers without
create()/update()methods
- Scan
urls.pyfor:
- Hardcoded URLs (should use
reverse()/reverse_lazy()) - Use of deprecated
url()(should bepath()orre_path()) - Missing
app_namenamespace - Class-based views without
.as_view()
- Scan templates for:
- Forms missing
{% csrf_token %} - Direct database queries in templates (accessing manager methods)
- Complex logic that should be in views
- Scan
admin.pyfor:
- Models registered without customization (bare
admin.site.register(Model)) - Missing
list_display,list_filter,search_fields
- Check for Django 5.x opportunities:
- Can any
defaultfields usedb_defaultinstead? - Can computed properties use
GeneratedField? - Is
LoginRequiredMiddlewareappropriate instead of per-view@login_required? - Are there manual querystring builders in templates that should use
{% querystring %}?
- Produce a summary report with:
- Issue count by severity (critical / warning / suggestion)
- Issue list grouped by file with line numbers
- Performance impact estimate (N+1 queries are always critical)
- Recommended next steps
- Consult the validation checks reference for the complete checklist.
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 repositoryCheckingskills/django-validate/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/roninforge/roninforge-django/django-validate)