agentleFS
nino-chaveznino-chavez/agentic-ways-of-working/skills/ship/SKILL.md

ship

Skill2 starsChanged 58 days agoMITView on GitHub

Deploy, release, or run migrations against production for a project. Use when user says "deploy", "ship", "push to prod", "release", "run the migration", "apply migrations", or asks how a project gets deployed / where it lives. Reads per-project DEPLOY.md as source of truth; falls back to inference + offer to scaffold one.

  • Commits and pushes

194 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ios-sync, open-gstack-browser 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.
  • Saqlain-811Skill

    ios-sync

    Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)

    Also in 6 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 10 projects that use this

  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 19 projects that use this

  • ShreyRaviSkill

    landing-report

    Read-only queue dashboard for workspace-aware ship. Shows which VERSION slots are currently claimed by open PRs, which sibling Conductor workspaces have WIP work likely to ship soon, and what slot /ship would pick next. No mutations — just a snapshot. Use when asked to "landing report", "what's in the queue", "show me open PRs", or "which version do I claim next". (gstack)

    Also in 9 projects that use this

  • zebbernSkill

    debug-fix

    Find and fix a bug or issue — from any source (GitHub issue, error message, user report, or observed behavior)

    Also in 4 projects that use this

  • ramybarsoumSkill

    document-release

    Post-ship documentation update. Reads all project docs, cross-references the diff, updates README/ARCHITECTURE/CONTRIBUTING/CLAUDE.md to match what shipped, polishes CHANGELOG voice, cleans up TODOS, and optionally bumps VERSION. Use when asked to "update the docs", "sync documentation", or "post-ship docs". Proactively suggest after a PR is merged or code is shipped.

    Also in 23 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 180 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Look for DEPLOY.md at the project root.

    line 19
  2. Distinctive:

    Read these in parallel to infer the deploy shape:

    line 26
  3. Distinctive:

    Run these checks. Report any that fail.

    line 40
  4. Distinctive:

    Follow the manifest. Most common shapes:

    line 48
  5. Distinctive:

    Manual CLI deploy: run the exact command in the manifest.

    line 51
  6. Distinctive:

    If none of those are true, treat the project as manual-CLI-deploy.

    line 61
  7. Distinctive:

    After triggering, do whatever the manifest's verify step says.

    line 65
  8. Distinctive:

    When you hit one of these, stop.

    line 86
  9. Very specific:

    Read DEPLOY.md (or scaffold one).

    line 101
  10. Distinctive:

    Don't ask permission for each step inside an already-authorized ship.

    line 107

“Common” is measured: kept by at least 6 in 10 of the 180 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

Ship

Deterministic deployment workflow. Reads the project's DEPLOY.md and executes it. If none exists, infers the shape from project files and offers to write one.

The goal: stop burning cycles re-discovering "where does this deploy / how do migrations apply / what can the agent actually run" every session.

Workflow

1. Find the project root + DEPLOY.md

From the current directory or the file under discussion, walk up to the nearest package.json, pyproject.toml, Cargo.toml, or .git/. That's the project root.

Look for DEPLOY.md at the project root.

  • Present → use it as the source of truth. Don't second-guess it. If something looks stale, flag it but follow the stated workflow until corrected.
  • Missing → go to step 2.

2. Infer + offer to scaffold (only if DEPLOY.md missing)

Read these in parallel to infer the deploy shape:

  • package.json (scripts, dependencies — next, astro, @sveltejs/kit, etc.)
  • wrangler.toml / wrangler.jsonc → Cloudflare Workers/Pages
  • vercel.json / vercel.ts → Vercel
  • supabase/config.toml → Supabase project ref
  • .github/workflows/*.yml → CI-triggered deploys
  • netlify.toml, fly.toml, railway.toml, render.yaml
  • git remote -v → where pushes go

Offer to scaffold a DEPLOY.md from template.md, pre-filled with what you inferred. Show the inferred values; ask the user to confirm or correct before writing. (This is the one place to ask — getting this wrong contaminates every future ship.)

3. Preflight (before any deploy action)

Run these checks. Report any that fail; ask before proceeding.

  • git status — uncommitted or unpushed work? Naming the branch you're on matters; deploys to main vs preview behave differently.
  • Pending migrations? Check the project's migration directory against what's deployed (if the manifest specifies a check command, run it).
  • Required env vars present in the target environment? The manifest should list them; if it doesn't, name what you'd expect based on the code and stop.

4. Trigger the deploy

Follow the manifest. Most common shapes:

  • Push-to-deploy (Vercel / Cloudflare Pages / Netlify with GitHub integration): git push and report the expected build URL. Do not run the platform CLI to "redeploy" unless the manifest says to — push-triggered builds are the canonical path; CLI re-deploys can race.
  • Manual CLI deploy: run the exact command in the manifest. Don't substitute flags.
  • CI-gated: push and link to the workflow run.

Never assume push-to-deploy is wired. A Cloudflare Pages project, a Vercel project, or a Netlify site can all exist without the git integration enabled — in which case git push does nothing and you have to run the platform CLI yourself. The integration is configured in the dashboard, not the repo, so you cannot infer it from the codebase alone.

Signals that push-to-deploy IS wired (any one is sufficient):

  • The manifest says so (canonical source — trust it).
  • A .github/workflows/*.yml file deploys on push.
  • A .vercel/project.json exists AND project is linked AND user has confirmed it deploys on push (the file alone doesn't prove the integration is active).

If none of those are true, treat the project as manual-CLI-deploy. Don't push and wait. Don't poll Pages dashboards "in case it picks up." Run the CLI command, or ask the user which mode this project uses.

5. Verify

After triggering, do whatever the manifest's verify step says. If no verify step is specified:

  • Curl the prod URL's health endpoint if one exists
  • Report the expected build URL and an estimated build time
  • Name the runtime errors that could appear if a step was skipped (e.g., "the deploy will succeed, but route X will 500 because the migration hasn't run")

End with a status sentence, not a question.

Authority limits — things the agent CANNOT run

These fail silently or hit auth walls. Don't waste a turn trying; instead, hand the exact command to the user OR use the documented fallback.

CommandWhy it failsWhat to do instead
supabase db push against prodRequires supabase login state the agent's shell doesn't have, OR SUPABASE_DB_PASSWORD env var. Returns 403 "your account does not have the necessary privileges".Either (a) ask user to run supabase db push themselves, or (b) paste migration SQL into Supabase dashboard → SQL Editor. Manifest should specify which.
vercel deploy --prod without VERCEL_TOKENRequires interactive vercel login.Push to main if project is GitHub-linked (canonical). Otherwise ask user to run.
wrangler deploy / wrangler pages deploy without prior loginRequires wrangler login browser flow OR CLOUDFLARE_API_TOKEN. Usually already authed because wrangler login persists to ~/.wrangler/. Try it; if it 401s, ask user to run wrangler login.
gh auth refresh / anything needing TOTPBrowser/device auth.Hand off.
Anything that needs an unlocked 1Password CLI sessionop requires eval $(op signin) in the user's shell.Either ask user to run with their session, or instruct them to fetch the specific secret and paste it.
Production database writes via psql / direct connectionsConnection strings with prod credentials are not in the agent shell.Use the platform's migration mechanism (Supabase dashboard, etc.).

When you hit one of these, stop. Don't retry with different flags. State the limit, give the user the exact command to run, and continue with whatever can be done without that step.

Common platform shorthand

For when the manifest is terse and you need to fill in standard behavior. All "X-linked" notes below require evidence — see step 4. Don't assume linkage from repo files alone.

  • Cloudflare Pages, GitHub-linked: push to main triggers production build; PR branches trigger preview builds at <branch>.<project>.pages.dev. Build runs in CF's environment.
  • Cloudflare Pages, manual (standalone project): requires npm run build (or framework equivalent) THEN wrangler pages deploy <build-output-dir>. SvelteKit + adapter-cloudflare outputs to .svelte-kit/cloudflare. Astro outputs to dist. Next.js via Cloudflare adapter outputs to .vercel/output/static. The wrangler CLI usually works in the agent shell because wrangler login persists to ~/.wrangler/config/.
  • Vercel, GitHub-linked: push to production branch (usually main) triggers prod build. Preview URL per branch + per PR.
  • Vercel, manual: vercel deploy --prod. Requires VERCEL_TOKEN or interactive login the agent can't do — usually hand off to user.
  • Supabase migrations: files in supabase/migrations/ apply in filename order. The dashboard SQL Editor always works for the agent; supabase db push usually doesn't (see authority limits).
  • GitHub Actions deploys: the workflow is the source of truth; trigger conditions are in on:. Don't run deploy scripts manually if a workflow exists for the same step — you'll desync.

When the user says "deploy this"

  1. Read DEPLOY.md (or scaffold one).
  2. Preflight: git status, list any pending migrations.
  3. State what you're about to do in one sentence.
  4. Do it.
  5. Report what's happening, what could go wrong, and end with a status sentence.

Don't ask permission for each step inside an already-authorized ship.

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.