pre-deploy-validator

A pre-deployment checker that reviews a project before it is released to production. It detects common Go, JavaScript or TypeScript, Python, and Rust project files and runs applicable checks.

In plain words
What is it for?
Use it as a release gate to run compilation checks, linters, tests, migration checks, API checks, configuration checks, bundle-size checks, and secret scans.
Why use it?
It catches build errors, lint problems, failing tests, migration issues, API specification problems, debug artifacts, environment mistakes, oversized bundles, and exposed secrets before release.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/random6913/claude-code-superkit/pre-deploy-validator
Any agent
npx skills add RaNDoM6913/claude-code-superkit --skill pre-deploy-validator
Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit

Made for: Claude Code, Codex.

Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,422 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00034 $0.01422
Opus 5 $0.00017 $0.00711
Sonnet 5 $0.00007 $0.00284
Haiku 4.5 $0.00003 $0.00142

Measured yesterday against content hash 9a9442a0c793, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

pre-deploy-validator scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

# Extract env var references from source
packages/codex/skills/pre-deploy-validator/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pre-Deploy Validator

Run comprehensive checks before deploying to production. Auto-detects the tech stack and runs all applicable validations.

Detection Strategy

Scan the project root to identify components and their verification commands:

  • go.mod — Go: go vet, go test, golangci-lint (if available)
  • package.json — Node.js/frontend: tsc --noEmit, npm run lint, npm run build, npm test
  • requirements.txt / pyproject.toml — Python: mypy, ruff/flake8, pytest
  • Cargo.toml — Rust: cargo check, cargo clippy, cargo test
  • migrations/ — SQL migrations
  • **/openapi.yaml — API spec

Pre-Deploy Checklist

1. Compilation

Auto-detect and run for each component:

  • Go: go vet ./...
  • TypeScript: npx tsc --noEmit
  • Python: mypy . (if configured)
  • Rust: cargo check

FAIL if any compilation errors.

2. Linting

Auto-detect and run:

  • Go: golangci-lint run or go vet ./...
  • Node.js: npm run lint (if script exists)
  • Python: ruff check . or flake8
  • Rust: cargo clippy

FAIL for lint errors. WARN for warnings.

3. Tests

Auto-detect and run:

  • Go: go test ./... -count=1 -short
  • Node.js: npm test (if script exists)
  • Python: pytest -x --tb=short
  • Rust: cargo test

FAIL if any test fails.

4. Build/Bundle

For frontend projects:

npm run build 2>&1

FAIL if build fails. WARN if bundle size exceeds thresholds (configurable; defaults: main chunk > 250KB gzip).

5. Migration Consistency

If a migrations directory exists:

# Check every up migration has a matching down migration
for f in $(find . -path "*/migrations/*.up.sql" -o -path "*/migrations/*.up.*" 2>/dev/null); do
  down=$(echo "$f" | sed 's/\.up\./\.down\./')
  [ ! -f "$down" ] && echo "MISSING ROLLBACK: $(basename $f)"
done

# Check migration numbering is sequential (no gaps, no duplicates)
ls migrations/*.up.sql 2>/dev/null | sed 's/.*\///' | sort | uniq -d

FAIL for missing rollback files. WARN for numbering issues.

Read the full file on GitHub · 133 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 133 lines · 34 tokens per session scan C 9a9442a0c793

Subscribe to this mod's changes

pre-deploy-validator is a skill published in the GitHub repository RaNDoM6913/claude-code-superkit (2 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 1,422 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

apm-review-panel

Use this skill to run a multi-persona expert advisory review on a labelled pull request in microsoft/apm. The panel fans out to five mandatory specialists plus a test-coverage specialist (active on every PR that touches src/) plus three conditional specialists (auth, doc-writer, performance-expert), all running in…

microsoft/apm · 178 tokens

apm-issue-autopilot

Use this skill to drive any open microsoft/apm issue (bug, feature, docs, refactor, perf) from raw intake to a mergeable PR with triage as the central, paramount gate. Run the apm-triage-panel rubric per issue first, then present ONE consolidated triage review for the whole batch and escalate to the maintainer BY…

microsoft/apm · 238 tokens

apm-spec-guardian

Use this skill to run a four-panel adversarial advisory review on any pull request that touches the OpenAPM specification artifact (docs/src/content/docs/specs/openapm-.md), its inline / sidecar JSON Schemas (docs/src/content/docs/specs/schemas/.schema.json), or the conformance fixture seed…

microsoft/apm · 215 tokens

apm-triage-panel

Use this skill to triage one microsoft/apm issue selected by the daily sweep, the status/needs-triage fast path, or manual dispatch. Emit one synthesized comment with a decision, label set, exact milestone, and suggested next action.

microsoft/apm · 59 tokens

batch-bug-shepherd

Use this skill to drive a batch of suspected bugs in microsoft/apm from raw issue list to mergeable PR queue. Fan out one triage subagent per issue (LEGIT / UNCLEAR / FIXED-AT-HEAD), gate every legit bug against PRINCIPLES.md via an apm-ceo strategic-alignment pass, cross-reference legit issues against open PRs, then…

microsoft/apm · 227 tokens

cli-logging-ux

Use this skill when editing or creating CLI output, logging, warnings, error messages, progress indicators, or diagnostic summaries in the APM codebase. Activate whenever code touches console helpers (richsuccess, richwarning, richerror, richinfo, richecho), DiagnosticCollector, STATUSSYMBOLS, CommandLogger, or any…

microsoft/apm · 94 tokens