- Home
- Skills
- Affaan M
- Everything Claude Code
- Django Verification
django-verification_skill
- JavaScript
46.5k
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill affaan-m/everything-claude-code --skill django-verification- SKILL.md11.2 KB
Overview
This skill runs a repeatable verification loop for Django projects to validate migrations, code quality, tests with coverage, security scans, and deployment readiness before PRs or releases. It automates environment checks, linting, type checking, migration validation, test execution, security audits, and configuration reviews. The goal is fast, actionable reports and a clear pre-deploy checklist to reduce production risk.
How this skill works
The skill executes a staged pipeline: environment validation, formatting and static analysis (mypy, ruff, black, isort), migration inspection and dry-run, pytest with coverage, dependency and code security scans (pip-audit, bandit, safety), and configuration and performance checks. It aggregates results into a concise verification report and a prioritized next-steps list. Outputs include test counts, coverage percentages, security findings, migration status, and a pass/fail recommendation for deployment.
When to use it
- Before opening a pull request for Django changes
- After modifying models, migrations, or dependencies
- As a pre-deployment gate for staging or production
- On CI for continuous verification on push and pull_request events
- When enforcing coverage and security thresholds before release
Best practices
- Run in an isolated, reproducible environment (CI container or consistent dev VM) with required env vars set
- Fail fast on misconfigured environment or unapplied migrations to avoid false positives
- Enforce coverage targets per component and block merge if overall coverage is below threshold
- Auto-fix formatting and import ordering in pre-commit hooks; keep type checks in CI
- Treat pip-audit/bandit findings as actionable tickets and prioritize fixes before deploy
Example use cases
- CI job that runs the full verification pipeline on pull requests and blocks merges on failures
- Pre-release script developers run locally to ensure migrations, tests, and static assets are ready
- Security triage after dependency upgrades to identify vulnerable packages before production deploy
- Staging acceptance check to confirm DEBUG=False, secret keys, ALLOWED_HOSTS, and logging configuration are correct
- Audit run after refactors to ensure no debug statements, TODOs, or hardcoded secrets slipped into diffs
FAQ
It produces a multi-phase verification report summarizing environment health, lint/type check results, migration status, test counts and coverage, security scan results, performance flags, and a deployment recommendation.
Can it run in CI?
Yes. The skill is designed to run in CI (GitHub Actions example provided) with services like Postgres and environment variables configured for test runs.
Which coverage targets are recommended?
Recommended targets are Overall ≥80%, Models ≥90%, Services ≥90%, Serializers ≥85%, Views ≥80%. Adjust per project needs and block merges when targets are not met.