production-preflight

production-preflight is a skill for Claude Code from moasq/agentic-ship. It costs 54 tokens per session (1,120 once invoked), scanned A, original, MIT.

A pre-launch check for a software product that verifies payments, email, web addresses, and authentication settings are ready for real users.

In plain words
What is it for?
Run it before the first deployment and after changes to billing, email, or sign-in. It checks the code and, with a login, the production environment.
Why use it?
It catches test settings and hidden shortcuts before they cause failed payments, missing email, or unauthorized access in production.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

Part of the agentic-ship plugin — 28 skills, 9 agents, 1 hook, 12 MCP servers shipped together

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/moasq/agentic-ship/production-preflight
Any agent
npx skills add moasq/agentic-ship --skill production-preflight
Clone the repo
git clone --depth 1 https://github.com/moasq/agentic-ship

Made for: Claude Code.

Or install agentic-ship, the plugin that ships this one along with the rest of its 28 skills, 9 agents, 1 hook, 12 MCP servers.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/moasq/agentic-ship/production-preflight.svg)](https://agentmods.dev/skills/moasq/agentic-ship/production-preflight)
Your own site
<a href="https://agentmods.dev/skills/moasq/agentic-ship/production-preflight"><img src="https://agentmods.dev/badge/skills/moasq/agentic-ship/production-preflight.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,120 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00054 $0.01120
Opus 5 $0.00027 $0.00560
Sonnet 5 $0.00011 $0.00224
Haiku 4.5 $0.00005 $0.00112

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

Security

Grade A, and why

production-preflight scanned grade A with 0 findings 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 5d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/production-preflight/SKILL.md · 76 lines

How it starts

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

Production preflight

Downstream contract: paths like src/ and convex/ refer to the product workspace that adopts Agentic Ship, not this tool repo.

pnpm health asks "is development sound?". This skill asks the launch question: "is production real?" — because the default state of this kit is deliberately test-safe, and every one of those safety defaults must be flipped on purpose before real users arrive. A launch that skips this ships one of three incidents: it takes test payments, it sends no email, or it leaves a seed backdoor open.

The command

pnpm preflight            # code + files — runs anywhere, no login
pnpm preflight --prod     # ALSO audits the prod Convex deployment's env (needs login)

Exit 1 on any FAIL. Run --prod before every launch; the plain form on every deploy.

What the script proves (machine half)

Check Incident it prevents
testMode: false in convex/email.ts (line-anchored — a comment cannot pass it) production sends no email at all
requireEmailVerification: true in convex/auth.ts unverified addresses sign up
the two above flip together either alone is broken — pnpm health enforces the pair in dev too
src/lib/site.ts has no scaffold placeholders "My App" as your <title>, OG card and llms.txt
selected billing adapter passes its production checks production uses test payments or the wrong provider environment
selected billing webhook secret is set payments succeed but entitlements never flip
selected billing plan mappings exist checkout cannot resolve any plan
prod RESEND_API_KEY + EMAIL_FROM on a verified domain (not resend.dev) email dies silently after launch
prod SITE_URL is https and not localhost auth callbacks and email links point at your laptop
prod BETTER_AUTH_SECRET set sessions cannot be issued
ALLOW_TEST_SEED absent from prod anyone-callable seeding of production data
no live key in .env.local a live credential one git add from public
the selected Netlify or Vercel adapter runs the atomic Convex build, or Cloudflare uses its branch-aware production/preview wrapper, with no second adapter active frontend ships against a stale backend or the wrong host
selected Cloudflare Worker, custom production origin, preview origin, auth routes, Convex health query, and webhook routes answer the live probes a green local build hides a broken production or preview deployment
pnpm verify + pnpm test green launching a build that does not build

Read the full file on GitHub · 76 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. 5d ago First seen · 76 lines · 54 tokens per session scan A d369f30e36dd

Subscribe to this mod's changes

production-preflight is a skill published in the GitHub repository moasq/agentic-ship (11 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 1,120 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens