deployment-readiness-check

Validates Django and Next.js security settings, secrets, dependencies, and database state before deployment.

Updated May 11, 2026
One-click install
npx skills add https://github.com/thachrocky12345/local-agent-train-workstation --skill deployment-readiness-check-thachrocky12345
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deployment-readiness-check
Source: https://github.com/thachrocky12345/local-agent-train-workstation/tree/main/.claude/skills/deployment-readiness-check
Command: npx skills add https://github.com/thachrocky12345/local-agent-train-workstation --skill deployment-readiness-check-thachrocky12345

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Deploying to staging or production without a systematic audit risks shipping insecure Django settings, hardcoded secrets, vulnerable dependencies, or unapplied migrations. This Skill runs a structured pre-deployment checklist across the backend and frontend so misconfigurations are caught before go-live. ## Core Features & Use Cases - Settings & Security Audit: Verifies Django production settings (DEBUG, SECRET_KEY, ALLOWED_HOSTS, CORS, SSL/HSTS, cookie flags) and checks for hardcoded secrets or leaked Stripe keys in frontend env files. - Dependency & Database Checks: Runs pip-audit and yarn audit for known vulnerabilities, confirms all migrations are applied, and verifies taxonomy fixtures are loaded. - Service & Build Verification: Validates required environment variables for Stripe, Twilio, SendGrid, and Azure Search, then runs TypeScript, lint, and production build checks on the Next.js frontend. - Use Case: Before promoting a release candidate to production, run the full check to generate a timestamped pass/fail report suitable as SOC 2 audit evidence. ## Quick Start Run a deployment readiness check against the production environment and generate the full pass/fail report.

Frequently Asked Questions about deployment-readiness-check

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

FAQPage Schema
How do I check if my Django settings are ready for production?

Audit key settings including DEBUG=False, a SECRET_KEY loaded from environment variables, explicit ALLOWED_HOSTS, CORS_ORIGIN_ALLOW_ALL=False, and SECURE_SSL_REDIRECT, SESSION_COOKIE_SECURE, and CSRF_COOKIE_SECURE all set to True. This Skill greps settings.py and runs a Django shell check to verify each value.

How to detect hardcoded secrets in a Python codebase before deployment?

Use grep patterns targeting assignments like SECRET_KEY, STRIPE_SECRET, TWILIO_AUTH_TOKEN, and SENDGRID_KEY with literal string values across settings and app directories. Also verify .env files are gitignored and not tracked by git, and confirm no Stripe secret keys appear in frontend NEXT_PUBLIC_ variables.

Does this check work with Docker-based Django deployments?

Yes, database and environment checks run inside the container using docker exec with the backend container. On Windows Git Bash, the MSYS_NO_PATHCONV=1 prefix prevents path mangling. For bare-metal deployments, the same commands run in the local virtualenv instead.

Why does my Next.js production build fail during deployment checks?

Next.js production builds fail when required environment variables like NEXT_APP_BACKEND_BASE_URL are missing, since they are compile-time constants. Ensure the variable points to the production backend URL rather than localhost before running yarn build.

What should block a production deployment in a readiness checklist?

Blocking findings include DEBUG=True, a hardcoded or short SECRET_KEY, ALLOWED_HOSTS containing "*", unapplied database migrations, critical dependency vulnerabilities from pip-audit or yarn audit, and missing production credentials for Stripe, Twilio, SendGrid, or Azure Search.