/claude-skills:deploy-and-runtime-verificationfrom claude-skills
Enforces a mandatory deploy loop after every code change: typecheck, deploy, purge CDN, run E2E on production, visual verify, and fix-forward. Includes Workers CI/CD, D1 Time Travel recovery, D1→R2 backups, wrangler rollback, secrets management, observability, cross-browser smoke tests, and GitHub auto-configuration.
Ships in claude-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Enforce rules/production-delivery-closure.md after every authorized code-changing prompt: validate → exact tested commit → normal main push → established deploy → exact-commit production E2E. Fail closed rather than bypassing authority or evidence gates.
For package qualification, registry publication and offline package recovery, load 08-deploy-and-runtime-verification/changelog-and-releases.md for archive verification and publication evidence.
For package-owned D1 migrations on a consumer database, load
08-deploy-and-runtime-verification/ci-cd-pipeline.md for ledger ownership,
combined rehearsal, and primary schema verification.
For OpenTofu plan review, load 08-deploy-and-runtime-verification/ci-cd-pipeline.md for private rendering, Conftest validation, and saved-plan identity checks.
Activate this loop only for authorized repository changes. Read-only prompts, explicit local-only requests, prohibited deployment, unavailable authority/credentials, destructive approval gaps, failed required validation, and required PR/review are BLOCKED, not reasons to bypass controls.
When a repository supports hosted and local deployment, share the preflight entrypoint for both. Include required asset existence before publishing. After deployment and any required cache purge, verify the deployed revision, HTTP status, and expected media type for the public assets in the release contract. For API probes, validate both release identity and response bodies using the declared wire schemas. Retry stale revisions or transient edge errors within a fixed limit. Fail on a confirmed candidate contract violation even if a concurrent probe reports a transient error.
mainwrangler deploy (or the repository's established platform equivalent) for that exact commit_kernel/standards.md#breakpoints)"Local typecheck + build pass" is NOT done. Per rules/verification-loop.md.
For a sensitive retired endpoint, remove active UI entry points and define the
response for clients that still call the old route. Use a generic response
uniform across inputs and record existence. For permanent withdrawal of a
known public route, use 410 Gone where its existence is safe to disclose.
Set Cache-Control: no-store and return before reading submission data or
performing side effects. Verify the declared methods and response contract on
the canonical production URL and known serving aliases. Check previously
cacheable variants through the authorized purge and verification path. Probe
with approved synthetic inputs and retain observations without private request
data, historical records, or credentials.
For email, webhook, analytics, and other external delivery claims, record the strongest observed state: accepted by the app, queued, accepted by the provider, or observed at the destination. Use an approved synthetic marker and a scoped receiver lookup or receipt, tied to the operation ID, revision and timestamp. When only a sender-side result exists, leave destination delivery unverified.
References: HTTP status semantics and Cloudflare URL purge and cache variants.
For a Worker that serves content-hashed client assets, qualify the asset paths needed by already-open pages during rollout and rollback. Use the version routing and retention strategy supported by that deployment. When shipping retained assets, verify the previous names and bytes before upload. Treat a missing file, digest mismatch, collision, or SPA fallback document in place of an asset as a release failure.
Keep the exact prepared upload directory or its digest manifest as release evidence. Rehearse through the actual asset binding and after promotion verify current and required retained paths against the prepared digests at the edge. Use the serving aliases affected by the release. Treat a local binding test, successful upload, or healthy homepage as evidence for that step only. Record the serving Worker version with the edge result. See Cloudflare version skew and static assets.
CLOUDFLARE_API_TOKEN from /Users/Apple/.local/bin/get-secretCLOUDFLARE_API_KEY + CLOUDFLARE_EMAIL! npx wrangler login, resume deploy once freshcf CLI transition (beta — doctrine stays wrangler-first)cf CLI open beta since 2026-09-28: ~3,000 generated API commands (vs wrangler's ~280). Wrangler gets ONE final major redirecting to cf, then 18-month maintenance; config format moves wrangler.jsonc → cloudflare.config.ts with typed bindings. Wrangler now requires Node ≥22.wrangler tail) or set single secrets (wrangler secret put).wrangler.jsonc build blockmain per rules/main-only-branch.mdnpm install + npm run build + wrangler deploywrangler secret put per rules/secret-provisioning.mdwrangler secret put KEY — runtime secrets; wrangler secret list — names only, never values~/.local/share/chezmoi/home/.chezmoitemplates/secrets/{KEY})scripts/check-secrets.mjs --audit runs before every deployrules/secret-provisioning.md + rules/secret-auto-provisioning.mdwrangler d1 time-travel restore <db> --timestamp=<ts>wrangler d1 export <db> --output=backup.sql + upload to R2 daily via cronwrangler d1 export BEFORE any destructive migrationwrangler rollback <version-id> in <30s{commit, version_id, timestamp} to D1 after every deploy; rollback target one query awayPer rules/verification-loop.md § Console-error gate — all must be 0:
Run as part of npm run e2e:prod Playwright suite.
Per _kernel/standards.md#breakpoints × 3 browsers (Chromium, Firefox, WebKit):
Verify each is firing (missing = blocker):
gh repo create with templatecloudflare/wrangler-action@v3 for CICLOUDFLARE_API_TOKEN in repo secretsEvery deploy logs to CHANGELOG.md (## [version] — YYYY-MM-DD / ### Added / Changed / Fixed). Auto-generated by changelog-generator agent from conventional commits.
Deploy only when the hydrated acceptance evidence and subsequent verification receipts authorize the production edge. Use applicable operations, migration, maintenance, and cost rows from coverageMatrix; unresolved consequential assumptions remain blockers. Record the exact tested commit, deployment version, production checks, rollback state, and evidence IDs. This skill owns deployment procedure only—it does not repeat hydration, architecture conference, worker routing, or improvement logic.
Use the delivery/status/telemetry packages mapped in config/theme-tools-skill-map.json; canonical shared-capability procedure remains in rules/theme-tools-skill-integration.md.
For material work, follow the parallel delivery workflow.
backup-and-disaster-recovery.md (opens in a new tab)changelog-and-releases.md (opens in a new tab)ci-cd-pipeline.md (opens in a new tab)critical-css.md (opens in a new tab)font-subsetting.md (opens in a new tab)gh-fix-ci.md (opens in a new tab)launch-day-sequence.md (opens in a new tab)pipeline-health-check.md (opens in a new tab)r2-lifecycle.md (opens in a new tab)service-worker.md (opens in a new tab)uptime-and-health.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cloudflare-workers, deploy-pipeline, ci-cd, rollback, d1-backup, e2e-testing
npx claudepluginhub heymegabyte/agent-skills --plugin claude-skills46 skills in this plugin
/operating-systemSupreme policy layer governing all agent behavior. Autonomy, one-line prompt interpretation, speed standards, emphasis signal processing, cross-skill coordination, done definitions, conflict resolution. Loaded every prompt./goal-and-briefEstablish project thesis before first code. Infer product type from domain/folder/README. Identify users, business model, pSEO strategy, AI-native dev approach. Maintain PROJECT_BRIEF.md as source of truth./preference-and-memoryCaptures and evolves user preferences with confidence levels. Maintains Voice of the Customer model with exact language, dissatisfaction and aspiration signals. Handles promotion/demotion, global vs project scoping, auto memory system, and Omi wearable data integration./architecture-and-stackCloudflare-first platform selection. Workers, D1, R2, KV, DO, Queues, Vectorize, Containers, Workflows, native Go CLIs and measured Rust/WASM acceleration. Default stack, override conditions, auth, data patterns and reliability./build-and-slice-loopUse when implementing features or streaming OnePrompt site builds. Complete vertical slices with real content, strict TypeScript and Zod. Parallel section/data work, deterministic assembly, granular patches and immediate valid previews./quality-and-verification5-level verification pyramid: static→unit→Playwright E2E (homepage-first, 6bp)→AI visual→post-deploy. 8-check quality gate. Multi-agent testing (functional/security/a11y/performance). Playwright v1.56+ AI agents (Planner/Generator/Healer, v1.63 current). WCAG 2.2 AA via axe-core v4.13. Percy+Chromatic visual regression. ADA Title II 2027/2028 deadlines. TypeScript compiler diagnostics, source coverage, typed lint, and semantic navigation.Other plugins' skills for the same job