agentleFS
onbluerosesonblueroses/strata/skills/deploy/SKILL.md

deploy

Skill3 starsChanged 25 days agoMITView on GitHub

Deploy an authorized target to a remote machine: resolve it from live service state, prepare the correct artifact, use its owned deploy path, and report post-deploy health with rollback evidence. Trigger on deploy, ship to production, or go live.

155 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pm-discovery, qa-phase 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.
  • ww-w-aiSkill

    pm-discovery

    PM Agent Team - Automated product discovery, strategy, and PRD generation. Runs PM analysis workflow to produce comprehensive PRD before PDCA Plan phase.

    Also in 3 projects that use this

  • ww-w-aiSkill

    qa-phase

    Run QA tests at various levels (L1-L5) for features under PDCA management. Integrates with MCP tools to execute structured test plans.

    Also in 3 projects that use this

  • +10 more from ww-w-ai

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 139 edited versions we read keep these.

  • 4

    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:

    Does not count: deploying from a remembered path.

    line 16
  2. Distinctive:

    Stop when health evidence is reported, or a gate fails with the value measured and the safest next action.

    line 18
  3. Very specific:

    Read $VPS_RUNBOOK first. It is the source of current connection, service, and resource guidance.

    line 29
  4. Distinctive:

    Before remote mutation, capture the prior deployed revision/artifact location and the relevant process state.

    line 35
  5. Distinctive:

    Verify the live target: its expected public route must return its expected healthy response, and the serving process must remain stable …

    line 37

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

Goal: put one authorized target live and report the state actually serving.

Success means:

  • the target, local source, remote path, owner process, and public route are resolved from current VPS state;
  • the deployed artifact and source revision are recorded, including the prior version needed for rollback;
  • the expected public route is healthy after deployment and its serving process remains stable during the observation window.

Does not count: deploying from a remembered path; reporting success after a failed or skipped post-deploy health check; restarting an already unhealthy process; or replacing a project's deploy behavior with a generic copy/restart.

Stop when health evidence is reported, or a gate fails with the value measured and the safest next action.

/deploy <target>
/deploy <target> --fast   # hotfix: may reuse a suitable artifact; never skips resolution or post-deploy health

Authority and preparation

Production deployment needs an authorization covering this target. Use authorization already granted in the active conversation; do not ask again for the same approved scope. If it is absent or the target changes materially, stop before remote mutation and request it. Preparing or validating an artifact may happen before approval when it does not alter production.

Read $VPS_RUNBOOK first. It is the source of current connection, service, and resource guidance; configure it in config.example.

Deploy

  1. Resolve the target from live PM2 and nginx state, then match it to the local source and its public route. Record the process or static owner, remote directory, health route, and source revision. If any mapping is ambiguous, stop and ask; deploy to what nginx or the process manager actually serves.
  2. Compare the source revision with the recorded deployed revision when available. Inspect the project's deploy script before using it; prefer it when it owns the artifact copy, restart, or readiness check. Otherwise use the service-specific reference recipe. Do not restart twice because both paths claim ownership.
  3. Before remote mutation, capture the prior deployed revision/artifact location and the relevant process state. Prepare the artifact and run the scoped local checks. Refuse a target already crash-looping or a preflight state the VPS reference marks unsafe.
  4. Deploy through the resolved owner path. Persist the source revision with the deployed artifact. For a static service, validate and reload its web server; for a managed process, take the post-restart baseline only after the owner reports ready.
  5. Verify the live target: its expected public route must return its expected healthy response, and the serving process must remain stable after the post-deploy baseline. Check project error reporting when configured. Keep the command output, timestamps, revision, and prior revision as rollback evidence.

--fast may reuse an existing artifact and omit nonessential pre-deploy validation only when that fits the approved hotfix scope. It never skips live target resolution, recording the deployed revision, or post-deploy health and stability checks.

On failure, stop, preserve the evidence, name the prior revision and available rollback path, and roll back only under the applicable project runbook or explicit authorization. Report the target, source and deployed revisions, owner path, health results, checks not run, and exact next action without a fixed report template.

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.