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

SKILL.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

  1. Read settings.py and check for:
  • Hardcoded SECRET_KEY (should be from environment)
  • DEBUG = True without environment check
  • Empty ALLOWED_HOSTS in production config
  • Missing SECURE_SSL_REDIRECT
  • Missing CSRF_COOKIE_SECURE and SESSION_COOKIE_SECURE
  • USE_TZ = False (should be True since Django 5.0 default)
  • Missing DEFAULT_AUTO_FIELD setting
  • REST_FRAMEWORK missing DEFAULT_PAGINATION_CLASS or PAGE_SIZE
  • Deprecated settings: DEFAULT_FILE_STORAGE, STATICFILES_STORAGE (use STORAGES)
  1. Scan all models.py files for:
  • Missing __str__ methods
  • Missing Meta class or ordering
  • CharField used where EmailField, URLField, BooleanField, etc. is appropriate
  • null=True on CharField/TextField (should be blank=True, default="")
  • FloatField used for monetary values (should be DecimalField)
  • Missing related_name on ForeignKey/M2M fields
  • Missing on_delete on ForeignKey (syntax error in modern Django)
  • Missing db_index on frequently filtered fields
  • Missing indexes in Meta.indexes
  • ManyToManyField defined in both sides of a relationship
  1. Scan all views.py and viewsets.py for:
  • QuerySets without select_related/prefetch_related when accessing related fields
  • N+1 query patterns: loops accessing .related_field without prefetch
  • Business logic in views (should be in models)
  • Missing login_required or permission checks
  • Missing pagination on list endpoints
  • queryset class attribute where get_queryset() should be used
  1. Scan all serializers.py for:
  • fields = '__all__' (should be explicit field list)
  • Missing read_only_fields
  • Nested serializers without corresponding select_related/prefetch_related in viewset
  • save() called without prior is_valid()
  • Writable nested serializers without create()/update() methods
  1. Scan urls.py for:
  • Hardcoded URLs (should use reverse() / reverse_lazy())
  • Use of deprecated url() (should be path() or re_path())
  • Missing app_name namespace
  • Class-based views without .as_view()
  1. Scan templates for:
  • Forms missing {% csrf_token %}
  • Direct database queries in templates (accessing manager methods)
  • Complex logic that should be in views
  1. Scan admin.py for:
  • Models registered without customization (bare admin.site.register(Model))
  • Missing list_display, list_filter, search_fields
  1. Check for Django 5.x opportunities:
  • Can any default fields use db_default instead?
  • Can computed properties use GeneratedField?
  • Is LoginRequiredMiddleware appropriate instead of per-view @login_required?
  • Are there manual querystring builders in templates that should use {% querystring %}?
  1. 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
  1. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/roninforge/roninforge-django/django-validate/badge)](https://verified-skill.com/skills/roninforge/roninforge-django/django-validate)

Something wrong with this skill or its page? Tell us.