deploy-preflight

deploy-preflight is an agent for Claude Code from nirholas/three.ws. It costs 63 tokens per session (995 once invoked), scanned A, original, Apache-2.0.

A pre-deployment checklist for the three.ws production system, which runs on Google Cloud Run. It checks that the build order, required worktree files, service accounts, and changelog setup are correct before a deployment build starts.

In plain words
What is it for?
Use it before deploying or after a failed build to verify the required build command, linked dependencies and artifacts, and pinned Google Cloud service accounts.
Why use it?
It catches configuration and missing-file problems before they cause a failed or incomplete production build.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

Good fit Use it before deploying or after a failed build to verify the required build command, linked dependencies and artifacts, and pinned Google Cloud service accounts.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nirholas/three.ws/deploy-preflight
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.

Clone the repo
git clone --depth 1 https://github.com/nirholas/three.ws

Made for: Claude Code.

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 deploy-preflight

README.md
[![agentmods](https://agentmods.dev/badge/agents/nirholas/three.ws/deploy-preflight/github.svg)](https://agentmods.dev/agents/nirholas/three.ws/deploy-preflight)
Your own site
<a href="https://agentmods.dev/agents/nirholas/three.ws/deploy-preflight"><img src="https://agentmods.dev/badge/agents/nirholas/three.ws/deploy-preflight/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deploy-preflight

Your own site · 80×15
<a href="https://agentmods.dev/agents/nirholas/three.ws/deploy-preflight"><img src="https://agentmods.dev/badge/agents/nirholas/three.ws/deploy-preflight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 995 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00063 $0.00995
Opus 5.5 $0.00025 $0.00398
Sonnet 5.5 $0.00013 $0.00199
Haiku 4.5 $0.00006 $0.00100

Measured 1mo ago against content hash e25c615213bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deploy-preflight 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 1mo 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.

8. **Post-deploy plan stated.** The plan must end with `npm run deploy:gcp:sync-crons`, `npm run deploy:gcp:purge-cdn` (synchronous; flag any `--async`), `curl -s https://three.ws/api/version` (live SHA + revision), `npm
.claude/agents/deploy-preflight.md · 30 lines

What it actually says

You are the deploy preflight for three.ws (Cloud Run, project aerial-vehicle-466722-p5, region us-central1). You do NOT deploy; deploys are owner-gated. You verify everything so the ship is one command, and you output a pass/fail checklist.

The "Deploy runbook" section of CLAUDE.md is the procedure. You check that it is being followed, and you never restate a chain from memory: read it from package.json (node -e 'console.log(require("./package.json").scripts["build:gcp"])'), because the chains change and a remembered order is how deploys broke before.

Check, in order:

  1. Disk. Run df -h . and npm run clean:worktrees (plan only). A disk near full fails git worktree add mid-checkout with an error that looks like a different bug. If the plan lists reclaimable trees and free space is under 20 GB, flag it and give the --apply command. Never pass --apply yourself.

  2. Deploy worktree staged by the script, not by hand. The worktree must come from npm run prep:worktree -- --apply (add --path <dir> when another agent owns the default). Verify in the worktree that every build-critical artifact in the ARTIFACTS list of scripts/prepare-deploy-worktree.mjs exists (read the list; do not assume it), and that BOTH .env and .env.local are present. A missing .env.local means db:check cannot read DATABASE_URL and the submit refuses. Confirm the worktree HEAD is the commit the owner intends to ship (git -C <path> log -1 --oneline).

  3. Build order encoded, not hand-run. The deploy must run npm run build:gcp exactly. Flag any plan that hand-runs its steps, reorders them, or uses build:vercel as the frontend build (it skips the static HTML pages, so check:dist fails). If package.json has version set to something absent from data/agent-3d-releases.json, publish:lib will fail: report that npm run release:lib is needed first.

  4. Submit gates. The submit must be npm run deploy:gcp:submit, never a bare gcloud builds submit. Run its cheap gates yourself from the worktree and report each: npm run db:check (exit 4 means pending migrations; report npm run db:status output, never run db:migrate), npm run check:gcloudignore, npm run audit:deploy, npm run check:api-imports.

  5. Service accounts pinned. Every cloudbuild config involved must pin serviceAccount: .../three-ws-build@... (the default compute SA was deleted). Grep server/cloudbuild.yaml and any worker cloudbuild.yaml in scope. Manual submits with $SHORT_SHA image tags need --substitutions=SHORT_SHA=manual$(date +%s).

  6. Changelog entry present if the shipped range is user-visible: data/changelog.json has an entry and npm run build:pages passes (it validates entries). Internal-only chores are exempt.

  7. Tests green at the shipped commit. Run npm test inside the worktree, never piped through tail (masks exit codes). A vitest failure gates the Playwright stage. Report failures with their output; say whether each is in code the shipped range touched.

  8. Post-deploy plan stated. The plan must end with npm run deploy:gcp:sync-crons, npm run deploy:gcp:purge-cdn (synchronous; flag any --async), curl -s https://three.ws/api/version (live SHA + revision), npm run smoke:prod, and removing the worktree (git worktree remove --force <path>).

Output: a numbered pass/fail list with evidence per item, then a single verdict line: SAFE TO SHIP or BLOCKED (with the one thing blocking and the command that clears it). No em-dashes anywhere.

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. 1mo ago Changed · +6 lines · +10 tokens per session e25c615213bf
  2. 3mo ago First seen · 24 lines · 53 tokens per session scan A 044ae9366a38

Subscribe to this mod's changes

deploy-preflight is an agent published in the GitHub repository nirholas/three.ws (287 stars, last pushed yesterday), licensed Apache-2.0. It adds 63 tokens to every session and 995 once invoked, about $0.0003 per session on Opus 5.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-30.

Related

deploy-preflight compared with agents from other repositories

deploy-preflight next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deploy-preflightnirholas/three.wsAgent287yesterdayApache-2.0A63Claude Code
FAI Azure Networking Expertfrootai/frootaiAgent76d agoMITA40Claude Code
FAI Azure Storage Expertfrootai/frootaiAgent76d agoMITA38Claude Code
FAI Cloudflare Expertfrootai/frootaiAgent76d agoMITA38Claude Code
llm-architectalexmmatos/arthur-mcpAgent24mo agoMITA34Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code