pre-deploy-gate

pre-deploy-gate is a skill for Claude Code, Codex from CueCrux/Crux. It costs 176 tokens per session (707 once invoked), scanned A, original, Apache-2.0.

A pre-deployment checklist for changing production servers, containers, and hosted services. It checks database migrations, environment settings, available resources, backups, and the deployed binary.

In plain words
What is it for?
Use it before deploying to the listed production targets to verify prerequisites, choose a safer build or deployment method, and audit that the expected binary was installed.
Why use it?
It catches missing migrations, secrets, or system capacity before they cause a failed or incomplete production deployment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

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/cuecrux/crux/pre-deploy-gate
Any agent
npx skills add CueCrux/Crux --skill pre-deploy-gate
Clone the repo
git clone --depth 1 https://github.com/CueCrux/Crux

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pre-deploy-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/cuecrux/crux/pre-deploy-gate.svg)](https://agentmods.dev/skills/cuecrux/crux/pre-deploy-gate)
Your own site
<a href="https://agentmods.dev/skills/cuecrux/crux/pre-deploy-gate"><img src="https://agentmods.dev/badge/skills/cuecrux/crux/pre-deploy-gate.svg" alt="Measured on agentmods" height="20"></a>
Per session 176 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 707 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.1 $0.00176 $0.00707
Opus 5 $0.00088 $0.00353
Sonnet 5 $0.00035 $0.00141
Haiku 4.5 $0.00018 $0.00071

Measured 6d ago against content hash 5fca55d1fa2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

pre-deploy-gate scanned grade A 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 6d ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Smoke probe immediately after: `curl /readyz`, then one substantive endpoint.
crates/crux-config-wizard/assets/skills/pre-deploy-gate/SKILL.md · 48 lines

How it starts

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

Pre-Deploy Gate

Before deploying to a prod target (corecrux-gpu-1, cuecrux-data-1, container images, hosted daemons), run this checklist. Every item must pass before the deploy step.

This is the Insights-report Deployment Gate snippet, which attributed ~978 wasted compute hours to prerequisite mismatches. Check every item against the target itself, not against your assumptions about the target.

Migration state

  • All DB migrations present in order. List them: ls db/migrations/ (or equivalent) and confirm contiguous numbering.
  • Recent migrations applied locally and idempotent on re-run.
  • No pending migration referenced in code but missing from the migration directory.

Environment

  • Required env vars present in the target's env (CRUX_AGENT_TOKEN, CORECRUXD_AUTH_MODE, DATABASE_URL, etc.). Do not assume the prod env mirrors local.
  • Secrets sourced from passport-derived envelopes or vault — never cat'd into a file you write.
  • Disk + memory headroom checked: df -h shows >10% free on the data partition; free -g shows headroom for the build process.

Process management

  • Background workers have a documented stop command. Don't kill -9 a partially-flushed writer.

The process-detachment triad for long-running jobs is not deploy-scoped, so it stays in CLAUDE.md rather than being restated here — it has to be in context before this skill would ever load.

Deploy command discipline

  • Use cargo-deploy (with --backup-binary) — not bare cargo build --release. Bare-cargo on prod bypasses drift tracking.
  • After deploy: run corecruxd-deploy-audit to confirm running binary sha matches the latest tag.
  • Smoke probe immediately after: curl /readyz, then one substantive endpoint.

When something fails

  • Don't retry blindly. Check logs (journalctl -u corecruxd or container logs) before the next attempt.
  • Capture the failure as a Crux fact: store_fact(entity="incident:<YYYY-MM-DD>", value={symptom, cause, fix_sha, repro_steps}).

Read the full file on GitHub · 48 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. 6d ago First seen · 48 lines · 176 tokens per session scan A 5fca55d1fa2a

Subscribe to this mod's changes

pre-deploy-gate is a skill published in the GitHub repository CueCrux/Crux (2 stars, last pushed 6d ago), licensed Apache-2.0. It adds 176 tokens to every session and 707 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

langbot-deploy

Deploy and configure a LangBot instance — Docker / Docker Compose, Kubernetes, the config.yaml model, the Box sandbox runtime, the plugin runtime, and the global API key. Use when installing, deploying, upgrading, or configuring LangBot in production or self-hosted environments. Triggers on "deploy langbot", "langbot…

langbot-app/LangBot · 104 tokens

compute-env-setup

Set up a compute environment on a remote provider so Claude Science jobs can run there. Covers direct SSH/conda hosts, Slurm clusters, container-via-bridge runners, and managed-API providers (Modal, GCP, RunPod). Use when standing up a new provider, porting an env to a different backend, adding a tool that needs its…

UnicomAI/wanwu · 134 tokens

kubernetes

Kubernetes operations expert for kubectl, pods, deployments, and debugging.

RightNow-AI/openfang · 17 tokens

deployment

Deploy Memoria with Docker Compose or Kubernetes. Environment variables, multi-instance setup, security. Use when deploying or configuring Memoria.

matrixorigin/memoria · 28 tokens

qwenpaw-usage

QwenPaw 命令行使用技巧:涵盖心跳(Heartbeat)配置、定时任务管理、Docker 打包部署、工作区导出迁移等操作。当用户要求添加心跳任务、配置定时自检、打包 QwenPaw 实例、部署到其他服务器、生成 Dockerfile 或 docker-compose 文件时使用本 skill。.

alibaba/anolisa · 84 tokens

plur-memory

Persistent learning for AI agents. Open engram format. Your agent learns from corrections, remembers across sessions, and transfers knowledge across domains.

plur-ai/plur · 31 tokens