agentleFS
mantaray0mantaray0/crew/skills/deploy/SKILL.md

deploy

Skill1 starsChanged 6 months agoMITView on GitHub

How crew turns a verified commit into a release/deployment — config.workflow.ship (enabled + runDeploy + releaseTool), config.git as the single git authority, provider handling (gh/glab), and the safety rules. Use during /crew:ship.

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

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

  • 0

    Common

    Most of the 85 edited versions we read keep these.

  • 1

    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:

    Only when runDeploy is ask or auto: after the git steps, run the deploy command for the target environment, sourced from …

    line 54
  2. Distinctive:

    If the provider CLI is missing or unauthenticated, explain and stop — do not guess credentials or skip silently.

    line 61
  3. Very specific:

    Record: every ship to LOG.md (version, tag, push/PR/deploy outcome).

    line 68

“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

crew Deploy & Release

/crew:ship carries a verified change from the repo to a release (and optionally a deployment). Behavior is config-driven via config.workflow.ship; all git mechanics defer to config.git — the single git authority. There is no deploy-specific push axis.

/crew:ship is also the Ship step of the /crew:finish strand (see crew-config → config.workflow.finish): there it runs only when config.workflow.ship.run ≠ off and config.workflow.ship.enabled — finish adds no new push/release axis, it calls this same command.

config.workflow.ship

fieldwhat it does
enabled (default true)Is /crew:ship available here? false → explain how to enable, then stop.
runDeploy (default off)The only knob config.git doesn't cover: run an imperative deploy command after the git steps? off = push-triggered CI (the push is the deploy — nothing extra to run). ask/auto = imperative world (Vercel/Fly), command from reference/deploy.md.
providergh-actions (gh) or gitlab-ci (glab).
tagPatternRelease tag shape, e.g. v{version}.
environmentsOptional named environments.
releaseTool (default auto)How the version is decided (see Release mechanics below). auto detects from the repo. Replaces the old hardcoded Changesets check.
finishRelease (default off)Bot-PR tools only: merge an open version/release-PR (phase 2)? off/ask/auto.

config.git is the single git authority

ship has no second push axis. Every git step defers to config.git:

  • Release commit — follow git.commitPattern; if git.autoCommitPerPhase is false, ask before committing. A release needs a commit to tag.
  • Push (commit + tag) — defer to git.autoPush (default false → ask). On decline, stay local: version+commit+tag is still a valid partial result.
  • PR — defer to git.autoPR (default false → ask or skip). Use the provider CLI.
  • Branch / merge — honour branchPattern, mergeStrategy, askBeforeMerge (see git-merge).

In a push-triggered setup the push is the prod trigger — so it belongs to git.autoPush (default false → ask), i.e. to the user. That is how "crew never touches prod without approval" holds: not as a slogan, but because the prod-triggering push is gated by the user's git config. Even when an auto* flag is true, crew-conventions still applies — true just means the user pre-authorized that step.

Release mechanics (releaseTool)

releaseTool decides where the version is determined, which changes what ship does in the version/commit/tag steps. It replaces the old hardcoded "if .changeset/ exists" check.

releaseToolship's version/tag steps
manualLocal bump (npm version / language equivalent, command per reference/deploy.md) → release commit → tag (tagPattern) → push → PR. The classic path.
changesetsNo local bump, no tag by ship. Ensure a changeset exists (.changeset/*.md other than README/config); if none, offer changeset add or stop. Commit it if uncommitted → push → the bot opens a version-PR. Phase 2 (finishRelease ≠ off): if a changeset-release/* PR is open, merge it per finishRelease → CI tags+releases.
release-pleaseLike changesets but Conventional-Commit-driven (no changeset file): push → bot opens a release-PR → phase 2 per finishRelease.
semantic-releasePush only. No version/commit/tag by ship; CI decides the version + tags + releases autonomously. finishRelease is irrelevant.
noneNo versioning: only the git steps (commit/push/PR), no version/tag.

auto detection (precedence, first match wins): .changeset/ with config.json → changesets · release-please-config.json / .release-please-manifest.json → release-please · .releaserc* / release.config.{js,cjs,mjs,json} / a "release" key in package.json → semantic-release · else → manual.

Phase 2 is prod-triggering. Merging the version-PR tags+releases. finishRelease: auto acts only on a green verify and under crew-conventions; off (default) keeps ship hands-off, and ask prompts before merging.

The imperative deploy step (runDeploy ≠ off)

Only when runDeploy is ask or auto: after the git steps, run the deploy command for the target environment, sourced from reference/deploy.md. With ask, confirm first. Never run it on a red verify. crew never guesses a deploy command.

Providers

  • gh-actions — push triggers the workflow; open PRs and read run status via the gh CLI.
  • gitlab-ci — push triggers the pipeline; use the glab CLI for MRs and pipeline status.

If the provider CLI is missing or unauthenticated, explain and stop — do not guess credentials or skip silently.

Safety

  • Never ship on a red verify. Gate on the last verify result in LOG.md; if not green, route to /crew:verify and stop.
  • Remote and prod actions are deliberate steps — confirm each per crew-conventions; never push, open a PR, or deploy silently.
  • The deploy command comes from reference/deploy.md (user-controlled), never guessed by crew.
  • Record every ship to LOG.md (version, tag, push/PR/deploy outcome).

reference/deploy.md

The project's release runbook — a load-on-demand reference/ doc (see crew-context): release strategy, branch/tag conventions, environments, secrets policy (pointers, never values), rollback procedure, and the deploy command(s) (for runDeploy ≠ off). /crew:ship loads it because shipping touches the deploy area. Offered at /crew:init when ship.enabled and runDeploy ≠ off.

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.