agentleFS
tadoEngtadoEng/web-starter/.claude/skills/deploy/SKILL.md

deploy

Skill2 starsChanged 4 months agoMITView on GitHub

Ship this product to preview or production — backend to Cloud Run, frontend to Vercel, with migrations, smoke test and recorded evidence. Use when asked to deploy, release, ship, push to production, roll back, or diagnose a failing deployment or build.

  • Reads credentials

100 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • MicrosoftSkill

    azure-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

  • MicrosoftSkill

    azure-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

  • pvnarpSkill

    incident

    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-aiSkill

    starter

    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

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 85 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow every step. The convenience of one-call deploy tools is exactly why the procedure stays explicit — a deploy that skipped the ladder …

    line 11
  2. Very specific:

    Is setup done?: If this product has never deployed, docs/SETUP.md lists the accounts, Claude plugins and IAM grants only a human can create.

    line 16
  3. Distinctive:

    If the build fails, read the build logs via the Vercel plugin rather than guessing.

    line 53
  4. Distinctive:

    Check Cloud Run logs for errors during the above.

    line 66

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Deploy

Follow every step. The convenience of one-call deploy tools is exactly why the procedure stays explicit — a deploy that skipped the ladder is a deploy nobody can vouch for.

Preflight

  1. Is setup done? If this product has never deployed, docs/SETUP.md lists the accounts, Claude plugins and IAM grants only a human can create. Check it before starting — most first-deploy failures are a missing grant, not a bad build, and you cannot fix those from here. Say plainly which step is outstanding rather than attempting the deploy.
  2. ./scripts/verify.sh — must be green. Report the real output. If a step was skipped, say so.
  3. Confirm the target: preview or production. If unstated, ask. Never assume production.
  4. New env vars? They must exist in four places before deploying: .env.example, Vercel (per environment), Cloud Run, and docs/DEPLOYMENT.md. Names only in the first and last.
  5. Any migration in this change? Read it. Destructive ones need a docs/OPERATIONS.md entry with a rollback procedure before deploying.

Migrations

Apply deliberately, before the revision that depends on them — never at container start, where concurrent instances race.

cd backend && alembic upgrade head

For anything touching existing data, prefer expand/contract: add + backfill + switch reads now, drop in a later migration.

Backend → Cloud Run

gcloud run deploy [SERVICE] --source ./backend --region [REGION]

Or the Cloud Run MCP server if connected. Either way, record the revision ID — it is the rollback target.

Frontend → Vercel

Push the branch; Vercel builds a preview. Production is a merge to main, not a manual --prod deploy, unless the team has said otherwise.

If the build fails, read the build logs via the Vercel plugin rather than guessing.

Order

Backend first, then frontend. The backend must be able to serve the previous frontend for the window between the two.

Smoke test — not optional

  1. GET /healthz → 200, and the build SHA matches the revision just deployed. If it doesn't, the deploy didn't land; stop.
  2. Log in with Google.
  3. Complete the product's primary transaction end to end (see docs/PRODUCT.md).
  4. Check Cloud Run logs for errors during the above.

Report

State: target environment, revision ID, migration applied (or none), smoke test result, and any new env vars. Deployment evidence beats assumptions — if something wasn't verified, say which.

Rollback

Roll back first, diagnose second.

gcloud run services update-traffic [SERVICE] --to-revisions [PREVIOUS]=100 --region [REGION]

Vercel: promote the previous deployment. If the bad revision shipped a migration, routing traffic back does not undo the data change — check the destructive migration log in docs/OPERATIONS.md before assuming you are recovered.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.