django-verification

Automate Django pre-deployment verification with pytest, mypy, ruff, and security scans.

41|8|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/codelably/harmony-claude-code --skill django-verification-codelably
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: django-verification
Source: https://github.com/codelably/harmony-claude-code/tree/main/skills/django-verification
Command: npx skills add https://github.com/codelably/harmony-claude-code --skill django-verification-codelably

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Django projects suffer from undetected configuration issues, failing migrations, and insufficient tests or insecure deployments. This Skill provides a structured verification loop to validate environment, code quality, migrations, tests, security, configuration, and readiness before release.

Core Features & Use Cases

  • Phase 1 Environment checks verify Python version, virtual environment, and required env vars.
  • Phase 2 Code quality checks (mypy, ruff, black, isort, Django deploy checks).
  • Phase 3 Migrations verification: showmigrations, makemigrations --check, migrate plan, and apply migrations.
  • Phase 4 Tests & Coverage: run pytest with coverage reports and per-app stats.
  • Phase 5 Security scans: pip-audit, safety, bandit, and gitleaks where applicable.
  • Phase 6 Django management commands: collectstatic, create superuser, and integrity checks.
  • Phase 7 Performance checks: identify N+1 queries and verify indexes.
  • Phase 8 Static assets: npm audit and static asset validation.
  • Phase 9 Configuration review: validate DEBUG, SECRET_KEY, ALLOWED_HOSTS, HTTPS settings.
  • Phase 10 Logging: verify logging configuration and log outputs.
  • Phase 11 API documentation: generate and validate OpenAPI schema / Swagger UI.
  • Phase 12 Diff review: inspect diffs for common issues before merge.

Quick Start

Run the Django verification loop in your project to automatically perform environment checks, migrations, tests, and security scans before deploying.

Frequently Asked Questions about django-verification

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

FAQPage Schema
How do I automate Django pre-release verification for migrations, tests, and security?

Django pre-release verification automates environment checks, migration plans, pytest coverage, and security scans using bandit and safety. It enforces tooling checks across twelve phases to generate a comprehensive readiness report before deployment.

What does a Django CI pipeline need to check before deploying to production?

A Django CI pipeline needs to verify Python environments, run mypy and ruff for code quality, check migrations, execute pytest with coverage, scan dependencies with pip-audit, and validate configurations like DEBUG and SECRET_KEY before deploying.

How do I check Django migrations for errors before merging a pull request?

Checking Django migrations before merging involves running showmigrations, makemigrations --check, and verifying the migrate plan. This detection loop ensures schema consistency and prevents failing migrations from reaching the deployment stage.

Can I run Django security scans with bandit and pip-audit during pre-deployment workflows?

Yes, Django security scans integrate bandit, pip-audit, safety, and gitleaks during pre-deployment workflows. These tools identify vulnerabilities, audit dependencies, and detect leaked secrets to ensure secure releases.

What is the best way to enforce code quality standards in Django projects using CI?

The best way to enforce code quality in Django projects is applying automated mypy, ruff, black, and isort checks within CI pipelines. This standardizes formatting, type checking, and linting before code integration.

Does Django deployment verification include static asset validation and performance checks?

Django deployment verification includes static asset validation through collectstatic and npm audit. It also performs performance checks to identify N+1 queries and verify database indexes for optimized query execution.