agentleFS
KogaCyberKogaCyber/jarvis-skills/skills/deploy/SKILL.md

deploy

Skill0 starsChanged 3 months agoMITView on GitHub

Deploy a project to a production server over SSH with pre-deploy checks and post-deploy verification. Use when the user says "deploy", "ship it", "push to prod", or asks to update the server.

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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    If the file doesn't exist, ask the user for server details once and create it.

    line 20
  2. Distinctive:

    Prefer pull-based deploys (server pulls from git) over pushing files with scp — the server state stays reproducible.

    line 42
  3. Very specific:

    Never kill -9 — always graceful restart

    line 52
  4. Distinctive:

    Never edit code directly on the server

    line 53
  5. Distinctive:

    If the health check fails, roll back first, debug second

    line 54

“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 to Server

Deploy a project to production safely: check first, deploy, verify after.

Config

Server credentials live in ~/.jarvis/servers.md (never in this skill, never in git):

| Name | Host | User | Auth | Projects |
|------|------|------|------|----------|
| prod | 1.2.3.4 | deploy | ssh key | my-app |

If the file doesn't exist, ask the user for server details once and create it.

Before Deploy — ALWAYS

  1. Blackout check — if the user defined no-deploy hours (e.g. business hours for a client-facing app), refuse and say when the next window opens
  2. Tests — run the project's test suite; a red suite blocks the deploy
  3. Uncommitted changes — git status must be clean; deploy from a pushed commit, not from the working tree

Deploy

Docker projects

ssh $USER@$HOST "cd ~/$PROJECT && git pull && docker compose build && docker compose up -d"

Bare projects (systemd / supervisor)

ssh $USER@$HOST "cd ~/$PROJECT && git pull && sudo systemctl restart $PROJECT"

Prefer pull-based deploys (server pulls from git) over pushing files with scp — the server state stays reproducible.

After Deploy — ALWAYS

  1. Tail logs for errors: docker logs --tail 30 $PROJECT or journalctl -u $PROJECT -n 30
  2. Hit the health endpoint: curl -sf https://myapp.com/health — non-200 means roll back
  3. Report to the user: what was deployed, commit hash, health status

Rules

  • Never kill -9 — always graceful restart
  • Never edit code directly on the server
  • If the health check fails, roll back first, debug second

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.