deploy
Skill123 starsChanged 8 months agoMITView on GitHub
Pre-flight checks then deploy. Validates env vars, migrations, bundle size, runs /ship audit, then deploys via git push or platform CLI.
- Commits and pushes
100 other projects use a version of this.
Adopted by
Most recently taken up by
- Mazalucas/El-DT-Lightweight-Armytheir own version, first seen Oct 5, 2026
- muon-m2/magento2-toolstheir own version, first seen Oct 4, 2026
- patrickjaja/claude-desktop-extratheir own version, first seen Oct 4, 2026
- mindattic/MindAttic.Legiontheir own version, first seen Oct 3, 2026
- microsoft/power-platform-skillstheir own version, first seen Oct 1, 2026
- microsoft/GitHub-Copilot-for-Azuretheir own version, first seen Oct 1, 2026
Used with
Projects with it also use azure-kusto-graph, azure-kusto-irql and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillazure-kusto-graph
Build and query Kusto graphs from natural language. Covers transient graphs (make-graph), persistent graph models/snapshots, pattern matching (graph-match), shortest paths, connected components, and graph-to-table export. Generates the edges-first thinking: define edges, define node lookups, union, make-graph. WHEN: make-graph, graph-match, graph-shortest-paths, graph-to-table, graph-mark-components, persistent graph, graph model, graph snapshot, build a graph from data, find paths between nodes, pattern matching in graph, connected components, transient graph, Kusto graph, KQL graph.
Also in 3 projects that use this
MicrosoftSkillazure-kusto-irql
Compose IRQL (Incident Response Query Language) queries for Kusto cybersecurity investigations. Translates natural language hunting questions into composable IRQL pipelines using Get_*, Extract_*, and Enrich_* functions. WHEN: IRQL query, security hunt, threat hunting KQL, incident response query, compose hunting pipeline, failed logins, phishing investigation, lateral movement, process execution, file creation events.
Also in 3 projects that use this
pvnarpSkillincident
Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.
Also in 7 projects that use this
ww-w-aiSkillstarter
Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).
Also in 3 projects that use this
- +8 more from microsoft
Other versions100 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 100
- microsoft/skills★ 3.1ksame name
- pedrohcgs/claude-code-my-workflow★ 1.6ksame name
- microsoft/azure-skills★ 1.5ksame name
- peterkrueck/Claude-Code-Development-Kit★ 1.4ksame name
- microsoft/power-platform-skills★ 961same name
- awslabs/agent-plugins★ 910same name
- jazzyalex/agent-sessions★ 889same name
- patrickjaja/claude-desktop-extra★ 657same name
- ww-w-ai/bkit-claude-code★ 600same name
- notque/vexjoy-agent★ 424same name
90 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository46 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- a11ySkill
- architectureSkill
- brainstormingSkill
- canarySkill
- clone-patternsSkill
- code-reviewSkill
- competeSkill
- costSkill
- demoSkill
- dispatching-parallel-agentsSkill
- evalsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- growSkill
- guardSkill
- index-fixSkill
- investigateSkill
- launchSkill
- learnSkill
- onboardSkill
- pentestSkill
- perf-auditSkill
- receiving-code-reviewSkill
- releaseSkill
- requesting-code-reviewSkill
- rescueSkill
- retroSkill
- revise-claude-mdSkill
- security-auditSkill
- seo-auditSkill
- seo-strategySkill
- ship-gateSkill
- sprintSkill
- staying-currentSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-ultrashipSkill
- verification-before-completionSkill
- visual-diffSkill
- writing-plansSkill
- writing-skillsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
38 rules. 0 are common, 33 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 85 edited versions we read keep these.
33
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Check project for deploy configuration:
- Distinctive: line 26
Run these checks BEFORE deploying (fail fast):
- Very specific: line 32
If deploy_ready: false → STOP.
- Very specific: line 38
If deploy_safe: false → WARN.
- Distinctive: line 42
If there are pending migrations, verify they are reversible:
- Distinctive: line 46
If the migration is destructive (dropping columns, renaming tables, deleting data) and has no rollback path → STOP.
- Distinctive: line 52
If bundle grew >50KB since last check → WARN.
- Distinctive: line 55
Check for uncommitted changes:
- Distinctive: line 59
If dirty working tree → WARN.
- Distinctive: line 63
Before deploying, establish a rollback plan.
- Distinctive: line 71
Verify the rollback command is ready:
- Distinctive: line 75
Do not execute this yet. Confirm the command is syntactically correct and the commit hash is valid.
- Very specific: line 79
If the migration drops a column or table, the data is gone.
- Distinctive: line 84
If the API serves mobile clients or third-party integrations, a breaking change without versioning is not a rollback — it is a second outage
- Distinctive: line 85
Prefer additive changes (new fields) over destructive changes (removed/renamed fields)
- Distinctive: line 87
Document the rollback steps in a format that can be executed under pressure:
- Very specific: line 98
Run the full /ship scorecard.
- Very specific: line 110
NEVER use vercel CLI. Always git push.
- Distinctive: line 140
After deploy lands but before declaring success, verify the application actually works for real users.
- Distinctive: line 155
Verify response codes and content types:
- Distinctive: line 158
Check that responses are not empty (a 200 with a 0-byte body is not healthy)
- Distinctive: line 160
If Playwright MCP is available, run a quick browser check on the production URL:
- Distinctive: line 163
Check the browser console for JavaScript errors — a deploy that throws uncaught exceptions on load is broken even if the server returns 200
- Distinctive: line 169
After deploy completes, run health check against production URL:
- Distinctive: line 176
If the health check fails on the first attempt, wait 30 seconds and retry once.
- Distinctive: line 182
After confirming the deploy is healthy, record performance metrics as the new baseline.
- Distinctive: line 190
If response time is >50% slower than the previous deploy → flag as a performance regression.
- Distinctive: line 191
If response time is >200% slower (3x the previous baseline) → treat this as a deploy failure.
- Distinctive: line 193
Check platform-level metrics if available:
- Distinctive: line 194
Railway: check the dashboard for memory usage and CPU spikes in the minutes after deploy
- Distinctive: line 196
Vercel: check function execution duration in the Vercel dashboard — serverless cold starts can mask real performance regressions
- Distinctive: line 197
Cloudflare Workers: check CPU time in the dashboard (Workers have a 50ms CPU limit on the free plan)
- Distinctive: line 242
Risk accepted: if any pre-flight check was overridden or the ship score was below 60, note it here.
- Distinctive: line 246
Not all deploys carry the same risk.
- Distinctive: line 252
Run the full test suite before deploying to staging.
- Distinctive: line 254
Test with production-like data if possible.
- Distinctive: line 261
All pre-flight checks must pass: No overrides. If the env validator says a variable is missing, it is missing.
- Distinctive: line 262
Deploy during low-traffic windows when possible: Check your analytics for the quietest hour.
“Common” is measured: kept by at least 6 in 10 of the 85 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deploy
Full pre-flight validation → deploy pipeline. Closes the audit-to-production loop.
Process
Step 1: Detect Deploy Target
Check project for deploy configuration:
vercel.jsonor.vercel/→ Vercel (git push)railway.tomlorrailway.json→ Railwayfly.toml→ Fly.iowrangler.toml→ Cloudflare Workers.github/workflows/with deploy steps → CI/CD pipelineDockerfile→ Container-based deploy- None found → ask user for deploy target
Step 2: Pre-Flight Checks
Run these checks BEFORE deploying (fail fast):
2a. Environment Validation
node ${CLAUDE_PLUGIN_ROOT}/tools/env-validator.mjs <project-directory>If deploy_ready: false → STOP. Show missing vars. Do not deploy.
2b. Migration Safety
node ${CLAUDE_PLUGIN_ROOT}/tools/migration-checker.mjs <project-directory>If deploy_safe: false → WARN. Show pending migrations. Ask user to confirm.
If a Supabase MCP server is connected (check your available tools for supabase), verify migration state against the actual database before deploying, not just the local migration files: list applied migrations and confirm the pending ones aren't already applied or in conflict. This catches the "migration ran on the dashboard but not in the repo" drift that breaks deploys.
If there are pending migrations, verify they are reversible:
- For Drizzle: check that corresponding
downSQL or rollback logic exists - For Prisma: confirm
prisma migrate resolvecan undo the migration - For Knex: verify the
down()function exists and is not empty - If the migration is destructive (dropping columns, renaming tables, deleting data) and has no rollback path → STOP. This is not safe to deploy without a manual rollback plan.
2c. Bundle Size Check
node ${CLAUDE_PLUGIN_ROOT}/tools/bundle-tracker.mjs <project-directory> --saveIf bundle grew >50KB since last check → WARN. Show diff.
2d. Git Status Check for uncommitted changes:
git status --porcelainIf dirty working tree → WARN. Suggest committing first.
2e. Rollback Plan
Before deploying, establish a rollback plan. Every deploy must have a way back.
Record the current production commit hash:
git rev-parse HEADStore this value — it is your safety net. If anything goes wrong after deploy, this is the commit you revert to.
Verify the rollback command is ready:
git revert <commit> --no-editDo not execute this yet. Confirm the command is syntactically correct and the commit hash is valid. The goal is to have a copy-paste rollback ready before you need it — not after you're panicking at 2am.
For database changes:
- Confirm the migration has a working
downmigration (checked in Step 2b) - If the migration drops a column or table, the data is gone. There is no rollback. You need a backup strategy instead:
pg_dumpthe affected tables before deploying, or use a feature flag to decouple the schema change from the code change - For additive-only migrations (new columns, new tables), rollback is safe — the old code simply ignores the new schema
For breaking API changes:
- Confirm that API consumers can handle both the old and new response shapes during the transition window
- If the API serves mobile clients or third-party integrations, a breaking change without versioning is not a rollback — it is a second outage
- Prefer additive changes (new fields) over destructive changes (removed/renamed fields)
Document the rollback steps in a format that can be executed under pressure:
ROLLBACK PLAN:
1. git revert <new-commit-hash> --no-edit
2. git push origin main
3. [If DB migration]: run down migration or restore from backup
4. Verify health check passes after rollbackStep 3: Run Ship Audit
Run the full /ship scorecard. If overall score < 60 → WARN but don't block (user decides).
A score below 60 means there are known issues going to production. That is a conscious decision, not an accident. Log it so the post-deploy summary reflects the risk accepted.
Step 4: Deploy
Based on detected target:
Vercel (git push — REQUIRED for this user):
git push origin mainNEVER use vercel CLI. Always git push.
Railway:
railway upFly.io:
fly deployCloudflare Workers:
npx wrangler deployCI/CD:
git push origin mainThen check CI status:
gh run list --limit 1 --json status,conclusionRecord the deploy start time. You will need this for the post-deploy summary.
Step 4b: Smoke Tests
After deploy lands but before declaring success, verify the application actually works for real users. A successful git push is not a successful deploy — it is a successful file transfer.
Hit 3-5 critical user paths against the production URL:
node ${CLAUDE_PLUGIN_ROOT}/tools/api-smoke-test.mjs <production-url>At minimum, verify:
- Homepage returns 200 (not 500, not a redirect loop, not a blank page)
- Login/auth endpoint responds (does not need to complete auth — just confirm it is not crashing)
- Core feature endpoint returns valid JSON with the expected shape
- API health endpoint (if one exists) returns 200 with a response body
- Static assets load (CSS/JS files return 200, not 404 — a broken asset build is invisible to health checks but catastrophic to users)
Verify response codes and content types:
- 200 responses should return the expected
Content-Type(HTML for pages, JSON for APIs) - Watch for soft failures: a 200 that returns an error page, or a JSON response with
{ "error": true }inside a 200 status code - Check that responses are not empty (a 200 with a 0-byte body is not healthy)
If Playwright MCP is available, run a quick browser check on the production URL:
- Navigate to the homepage, confirm it renders (not a white screen)
- Click one critical CTA and confirm navigation works
- Check the browser console for JavaScript errors — a deploy that throws uncaught exceptions on load is broken even if the server returns 200
If any smoke test fails, execute the rollback plan immediately. Do not debug in production. Do not "just check one more thing." Roll back, confirm the rollback is healthy, then investigate the failure from safety. The cost of a 5-minute rollback is always less than the cost of a 30-minute production outage while you debug.
Step 5: Post-Deploy Health Check
After deploy completes, run health check against production URL:
node ${CLAUDE_PLUGIN_ROOT}/tools/health-check.mjs <production-url>Report: status code, response time, SSL status, security headers.
If the health check fails on the first attempt, wait 30 seconds and retry once. Some platforms (Vercel, Railway) have a cold-start window where the first request after deploy is slow or fails. Two consecutive failures means the deploy is broken — trigger rollback.
If a Vercel MCP server is connected (check your available tools for vercel), don't infer deploy state from a single HTTP probe: read the actual deployment status, build logs, and which commit is live. This confirms the deploy you intended is the one serving traffic, surfaces build-time failures the health check can't see, and gives you the exact deployment to promote or roll back.
Step 5b: Performance Baseline
After confirming the deploy is healthy, record performance metrics as the new baseline.
Record the response time from the health check as the post-deploy baseline:
node ${CLAUDE_PLUGIN_ROOT}/tools/health-check.mjs <production-url>Compare to the pre-deploy baseline:
- If response time is >50% slower than the previous deploy → flag as a performance regression. This does not necessarily mean rollback, but it means something changed that deserves investigation before the next deploy.
- If response time is >200% slower (3x the previous baseline) → treat this as a deploy failure. Something is fundamentally wrong — likely an unoptimized query, a missing index on a new migration, or a cold-start loop.
Check platform-level metrics if available:
- Railway: check the dashboard for memory usage and CPU spikes in the minutes after deploy
- Fly.io:
fly statusandfly logsfor health check failures or OOM kills - Vercel: check function execution duration in the Vercel dashboard — serverless cold starts can mask real performance regressions
- Cloudflare Workers: check CPU time in the dashboard (Workers have a 50ms CPU limit on the free plan)
Store the performance baseline for comparison on the next deploy:
node ${CLAUDE_PLUGIN_ROOT}/tools/audit-history.mjs save <project-dir> response_time <ms>Step 6: Save Audit History
Save all scores for before/after comparison:
node ${CLAUDE_PLUGIN_ROOT}/tools/audit-history.mjs save <project-dir> seo <score>
node ${CLAUDE_PLUGIN_ROOT}/tools/audit-history.mjs save <project-dir> performance <score>
node ${CLAUDE_PLUGIN_ROOT}/tools/audit-history.mjs save <project-dir> security <score>Step 7: Post-Deploy Summary
Output deployment summary:
====================================
DEPLOY COMPLETE
====================================
Target: Vercel (git push)
Branch: main
Commit: abc1234
URL: https://example.com
Health: HEALTHY (247ms)
SSL: Valid (89 days remaining)
====================================
Pre-flight: 3/3 passed
Ship Score: 90/100
====================================
Response Time: 247ms (prev: 210ms, +17%)
Deploy Duration: 2m 14s (push → health check pass)
====================================
ROLLBACK COMMAND (ready to copy-paste):
git revert abc1234 --no-edit && git push origin main
====================================Include in every post-deploy summary:
- Rollback command: ready to copy-paste, no thinking required. If something breaks in the next 30 minutes, the person responding should be able to roll back without understanding the change.
- Time from deploy start to health check pass: this is your deploy duration. Track it over time. If deploys are getting slower, your build pipeline needs attention.
- Response time comparison: current vs. previous deploy. A consistent upward trend across deploys means you are accumulating technical debt in your runtime, not just your codebase.
- Risk accepted: if any pre-flight check was overridden or the ship score was below 60, note it here. Future-you deserves to know what past-you decided to ship anyway.
Deploy Checklist for Different Stages
Not all deploys carry the same risk. A staging deploy that breaks is a Slack message. A production deploy that breaks is revenue loss and user trust damage. Treat them differently.
Staging Deploys
Staging exists to catch what pre-flight checks cannot — integration issues, data-dependent bugs, and UX regressions that only appear with real-ish data.
- Run the full test suite before deploying to staging. If tests fail, fix them. Staging is not where you go to "see if it works" — it is where you go to confirm it works.
- Skip audit score thresholds. Staging does not need a perfect Lighthouse score. It needs functional correctness.
- Test with production-like data if possible. A staging environment with 3 rows in the database will not catch the N+1 query that takes down production with 30,000 rows.
- Staging deploys do not need a rollback plan. If staging breaks, redeploy. The blast radius is zero.
Production Deploys
Production is where your reputation lives. Every production deploy is a promise to your users that the product still works.
- All pre-flight checks must pass. No overrides. If the env validator says a variable is missing, it is missing. If the migration checker says a migration is unsafe, it is unsafe. Pre-flight checks exist because someone got burned by the thing they check for.
- Deploy during low-traffic windows when possible. Check your analytics for the quietest hour. For most B2B SaaS, that is 2-4am in your primary user timezone. For global products, there is no quiet hour — use feature flags instead.
- Have monitoring dashboards open during deploy. You should be watching error rates, response times, and active user counts in real-time. If you do not have monitoring, the health check and smoke tests are your only safety net — do not skip them.
- Keep the rollback command ready for 30 minutes post-deploy. Most deploy failures manifest within 15 minutes (the first request cycle). Some take longer — a memory leak that only shows up under sustained load, a cache expiry that triggers a stampede. 30 minutes is the minimum safe window.
- Never deploy on Friday afternoon unless it is a critical fix. This is not superstition. It is resource planning. If a deploy breaks production at 4pm Friday, you are debugging through dinner and into the weekend. If it can wait until Monday, it should.
Hotfix Deploys
A hotfix is production on fire. Speed matters, but not more than making things worse.
- Skip non-critical pre-flight checks (bundle size, audit score). These are valuable for planned deploys. For a hotfix, they are noise.
- Never skip env validation and migration checks. These are never optional. A hotfix that deploys with a missing database URL does not fix the outage — it creates a second one.
- Deploy immediately, but still health check after. The hotfix might fix the original issue but introduce a new one. Confirm with the health check. Confirm with the smoke tests. A hotfix that makes things worse is the worst possible outcome.
- Write a post-mortem within 24 hours. Not because process matters, but because memory decays. In 24 hours you will forget why the migration was unsafe, what the error message actually said, and what you tried before the thing that worked. Write it down while it is fresh. The post-mortem is not for your manager — it is for future-you the next time production is on fire.
Key Principles
- Never deploy without a rollback plan — the deploy that cannot be undone is the deploy that breaks production for hours. Every minute you spend writing a rollback plan before deploying is ten minutes you save when you need to execute it at 2am with your heart racing. Rollback is not a sign of failure. It is the mark of an engineer who builds safety nets before walking the wire.
- Smoke test before celebrating — a successful deploy is not a 200 from the health endpoint. It is users completing their core workflow. Health checks confirm the server is running. Smoke tests confirm the product is working. These are different things, and the gap between them is where production incidents live.
- Deploy is not done when the code lands — it is done when you have confirmed it works, recorded the metrics, and the rollback window has passed. A deploy without post-verification is a coin flip you made with your users' experience. Close the loop: deploy, verify, measure, document.
- Respect the blast radius — database migrations, API changes, and infrastructure updates are higher risk than UI changes. Treat them differently. A CSS fix that breaks a button color is a 5-minute fix. A migration that drops a column is a restore-from-backup event. The pre-flight checks, the rollback plan, the smoke tests — they are proportional to the blast radius, not the line count.
- Never deploy with missing env vars — this is the #1 production failure. It is also the most preventable. The env validator exists for a reason. If it says something is missing, something is missing.
- Always health check after deploy — catch issues before users do. Your monitoring should tell you about problems before your users do. If your users are telling you the site is down, your deploy process failed twice: once when it broke, and once when it did not catch the break.
- Save history — track improvement over time. Deploy metrics without history are just numbers. Deploy metrics with history are a trendline. Trendlines tell you whether your deploys are getting safer or riskier, faster or slower, more reliable or less.
- Respect user preferences — Vercel = git push only, never CLI.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

