agentleFS
lamaohublamaohub/local-kanban/skills/deploy/SKILL.md

deploy

Skill2 starsChanged 4 months agoMITView on GitHub

Generic deployment for any project on the kanban board — driven entirely by `kb info <proj>` (path, server, pm2, domain), nothing hardcoded. Triggers — "deploy <project>", "ship it", "update it on the server", and the deploy step of the kanban working loop. Flow: review changes → commit → push → pull on the server → install/build → restart → verify. A local project with no server takes the short branch: commit + restart the local pm2 process.

  • Reads credentials
  • Installs packages

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, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 139 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not commit junk (temp files, .DS_Store, stray logs).

    line 25
  2. Distinctive:

    If the working tree is clean and everything is already pushed, go straight to step 3.

    line 26
  3. Distinctive:

    Commit by meaning, with the task's issue number when the deployment is part of the kanban loop.

    line 30
  4. Distinctive:

    No pm2 → whatever the project uses (a systemd unit, docker compose).

    line 52
  5. Distinctive:

    Check exactly what you changed: the specific page or endpoint, not just the home page.

    line 59

“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

Generic deploy (driven by kb info)

This skill is not tied to any particular server: everything comes from the board's registry. Does the project have its own flow? Then it has its own deploy_skill in kb info — read that SKILL.md at deploy_skill_path and follow it instead of this one.

0. The data

kb info <proj>   # path (local copy), server (ssh host), server_path (path on the server),
                 # pm2 (process names), domain (for verification)
  • SSH access uses the alias or address from server via ssh <server>: keys, users and ports live in the user's ~/.ssh/config. The board stores no secrets.
  • No server → the project is local: steps 1–2, then straight to 5 (a local restart if it has pm2).

1. Review the changes

  • git -C <path> status --porcelain plus git -C <path> diff --stat — what has moved away from HEAD.
  • Do not commit junk (temp files, .DS_Store, stray logs).
  • If the working tree is clean and everything is already pushed, go straight to step 3.

2. Commit + push

  • Commit by meaning, with the task's issue number when the deployment is part of the kanban loop.
  • git -C <path> push origin <current branch>.

3. Update on the server

ssh <server> "cd <server_path> && git pull --ff-only"
  • git pull failed because of local edits on the server → STOP and tell the human: the server has drifted, and overwriting it silently (reset --hard) is not allowed. Inspect it with ssh <server> "cd <server_path> && git status --porcelain".

4. Install / build (by project type — check package.json or the manifest)

  • Node: npm ci || npm install; if there is a build script, npm run build.
  • Python: pip install -r requirements.txt inside the project's venv.
  • Static sites with no build step — skip.

5. Restart

  • pm2 processes from kb info: ssh <server> "pm2 restart <names>" (for a local project, pm2 restart <names> without ssh).
  • No pm2 → whatever the project uses (a systemd unit, docker compose). If it is unclear, ask the human instead of guessing.

6. Verify

  • With a domain: curl -sS -o /dev/null -w '%{http_code}' https://<domain> (or http, whichever the project uses) — expect 200/301.
  • Check exactly what you changed: the specific page or endpoint, not just the home page.
  • pm2: kb svc <proj> — processes online, restart counts not climbing.
  • Verification failed → discuss the rollback with the human (git revert plus another deploy); never roll back silently.

Rules

  • Production commands (ssh, rsync, restart) run with the user's confirmation — that is expected, do not work around it.
  • The code lives in git: editing directly on the server is forbidden. Spotted drift? Report it, do not overwrite it.
  • One task, one deployment; related tasks that are ready together ship in a single run.

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.