What problem does it solve?
This Skill provides a comprehensive verification loop for Django projects, addressing migrations, code quality, tests, security, and deployment readiness before release or PR.
Core Features & Use Cases
- Migrations and Migrations: Checks for unapplied migrations, creates missing migrations, and performs dry-run migration applications.
- Code Quality and Formatting: Runs type checking, linting, formatting, and import sorting to ensure code quality.
- Tests and Coverage: Executes all tests with coverage reporting and specific app tests with markers.
- Security Scan: Checks for dependency vulnerabilities, Django-specific security checks, and secret scanning.
- Django Management Commands: Runs critical Django management commands like check, collectstatic, create superuser, and database integrity checks.
- Performance Checks: Identifies N+1 queries, missing indexes, and query count analysis.
- Static Assets: Checks npm dependencies and builds static files if using webpack/vite.
- Configuration Review: Verifies critical settings such as DEBUG, SECRET_KEY, ALLOWED_HOSTS, and HTTPS.
- Logging Configuration: Tests logging output and checks log files if configured.
- API Documentation (if DRF): Generates and validates API documentation if using Django REST Framework.
- Diff Review: Provides diff statistics, actual changes, changed files, and checks for common issues like debug statements and hardcoded secrets.
Quick Start
Activate the django-verification skill before opening a pull request for a Django project.