agentleFS
phahadekphahadek/claude-orchestrator/skills/deploy/SKILL.md

deploy

Skill1 starsChanged 3 months agoMITView on GitHub

Deploy a managed project to production, executed strictly from that project's structured deploy playbook — confirm-gated, never improvised. Use when the user says "deploy", "deploy <project>", "ship <project> to prod", "run the deploy", or "push <project> live". Reads the project's context.md + the deploy playbook it points to (e.g. a repo README "Deploy" section), presents the full ordered plan, then runs it one step at a time, pausing before each production-mutating step.

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

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

  • 0

    Common

    Most of the 85 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. Distinctive:

    Run a project's production deploy by executing its documented, ordered playbook — confirm-gated and complete.

    line 14
  2. Very specific:

    Read every precondition from the playbook and check it: change merged to dev + CI green, clean tree, correct host, correct runtime user, …

    line 46
  3. Distinctive:

    Before running anything, enumerate the entire ordered step list to the human: for each step, the exact command, what it does, and whether …

    line 53
  4. Very specific:

    Companion-deploy check: If the playbook declares companion deploys, compute the diff from the currently-deployed SHA (the prod checkout's …

    line 58
  5. Distinctive:

    Run steps strictly in playbook order, one at a time:

    line 68
  6. Distinctive:

    Never skip and never reorder: If a step is conditional and its condition is not met, say so explicitly and move on — don't silently drop it.

    line 73
  7. Distinctive:

    If any step's real output diverges from what the playbook expects, stop and ask — do not adapt on the fly.

    line 77
  8. Distinctive:

    Run the playbook's verification checks (health endpoint, unit/service state, deploy-health).

    line 82
  9. Distinctive:

    If a step fails: stop, report exactly what failed with its output, and surface the playbook's

    line 87
  10. Distinctive:

    The playbook is authoritative: Never improvise, reorder, or skip steps.

    line 101

“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

Run a project's production deploy by executing its documented, ordered playbook — confirm-gated and complete. The whole point of this skill is that nothing important gets skipped and nothing gets improvised: the playbook is authoritative; if reality diverges from it, you stop and ask rather than guess.

Deploy touches production. Expect sudo / systemctl steps to raise approval prompts — that is correct and desired here (a human is present). Follow § Shell hygiene in procedures.md: one command per Bash call, git -C <path> / sudo -u <user> …, never cd <path> && ….


Step 0 — Identify the project and load its playbook

  1. Determine the target project (from the command argument, else ask). Read config/projects/<dir>/context.md.
  2. Locate the authoritative, ordered deploy playbook, in this order:
    • the ## Deployment section of context.md (structured per the playbook contract in procedures.md → Deployment — the /deploy playbook contract), and
    • the repo document it points to for exact commands (e.g. polimarket-analyser → README.md § Deploy a merged dev + Gotchas). Read it in full.
  3. If the playbook is missing or an unauthored stub, do not deploy yet:
    • No deploy section at all → STOP. Tell the human the project has no deploy playbook and do not improvise one. Point them at the contract in procedures.md.
    • A stub / unauthored placeholder (marked 🚧, or its parts are TODO placeholders) → switch to author-first mode: draft the playbook to the contract — from the repo's build/run docs, host runbooks, and .claude-orchestrator.yml — present it for human sign-off, and only run the deploy once it is authored and approved. Never deploy against stub placeholders.

Step 1 — Preconditions gate

Read every precondition from the playbook and check it: change merged to dev + CI green, clean tree, correct host, correct runtime user, required access/keys present, the exact <sha> being deployed. Report the checklist with pass/fail. If any precondition fails, stop and report — do not proceed.

Step 2 — Present the full plan first

Before running anything, enumerate the entire ordered step list to the human: for each step, the exact command, what it does, and whether it is conditional (e.g. "only if the frontend changed"). This up-front plan is the "nothing gets skipped" checkpoint — the human sees and okays the whole sequence.

Companion-deploy check. If the playbook declares companion deploys, compute the diff from the currently-deployed SHA (the prod checkout's VERSION / current /opt HEAD, before the source-delivery step) to the target <sha> — git -C <checkout> diff --name-only <deployed>..<sha>. For any companion whose declared path(s) appear in that diff, flag the operator up front that that component (e.g. a sidecar on another host) likely needs its own separate deploy. This is advisory only: never deploy or restart the companion yourself, and don't check its live status. Restate any such flag in the Step 6 report.

Step 3 — Execute, confirm-gated, in order

Run steps strictly in playbook order, one at a time:

  • Read-only / preview steps (e.g. --dry-run) may run without pausing; always show output.
  • Before every production-mutating step: echo the exact command and its effect, and get explicit confirmation. Never batch multiple mutating steps behind one confirmation.
  • Never skip and never reorder. If a step is conditional and its condition is not met, say so explicitly and move on — don't silently drop it.
  • Honor every hazard the playbook lists (e.g. run as the runtime user, never uv as root against /opt).
  • If any step's real output diverges from what the playbook expects, stop and ask — do not adapt on the fly.

Step 4 — Verify

Run the playbook's verification checks (health endpoint, unit/service state, deploy-health). Report results. If verification fails, surface it — do not declare success.

Step 5 — On failure

If a step fails: stop, report exactly what failed with its output, and surface the playbook's rollback / failure-handling guidance — including any "do NOT roll back, do X instead" cases (e.g. a post-migration GUC crash-loop that needs a pool recycle, not a rollback). Do not auto-rollback or improvise a fix without confirmation.

Step 6 — Report

Summarize: what was deployed (<sha>), which steps ran vs. were conditionally skipped, verification results, and anything left for the human to watch.


Constraints

  • The playbook is authoritative. Never improvise, reorder, or skip steps. Divergence → stop and ask.
  • Confirm before every prod-mutating action. Reads/previews are free; writes are gated.
  • Deploy runs the project's own documented deploy entrypoint — that is in-scope. It is not a licence to hand-edit any other session's git/worktree/PR (see procedures.md § Hard rule).

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.