agentleFS
escapeWuescapeWu/perplexity-ai/.agents/skills/server-deploy/SKILL.md

server-deploy

Skill168 starsChanged 2 months agoMITView on GitHub

Deploy perplexity-ai to its configured production server from the latest GitHub main source. Use when the user asks to deploy, publish, update, rebuild, restart, or roll out this project on the server.

  • Reads credentials
  • Commits and pushes

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. leezhuuuuu/skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    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:

    Stop if the push or equality check fails.

    line 29
  2. Distinctive:

    Stop when the remote tracked worktree is dirty.

    line 72
  3. Very specific:

    Never force-push, run git reset or git clean, run docker compose down, or delete images or volumes.

    line 74
  4. Distinctive:

    Stop on a failed push, commit mismatch, build, health check, or status check.

    line 76
  5. Distinctive:

    Do not add authorship or attribution trailers unless the user explicitly requests them and provides the exact identity.

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Server Deploy

Target

  • Local Git remote: origin
  • Branch: main
  • SSH host: oralce-chunchuan
  • Server directory: /root/perplexity
  • Remote Git remote: origin
  • Remote deployment entrypoint: ./deploy/compose.sh

Workflow

Perform the following sequence exactly.

  1. Confirm the local branch is main, review the intended diff, commit only the requested files, and push the exact commit.

    git push origin main
  2. Record the local commit and confirm origin/main resolves to the same SHA. Stop if the push or equality check fails.

    git rev-parse HEAD
    git ls-remote origin refs/heads/main
  3. Require a clean remote tracked worktree, fast-forward the server checkout, and verify that the remote commit equals the local commit. Substitute the recorded full SHA for <commit>.

    ssh oralce-chunchuan \
      "cd /root/perplexity && \
       test -z \"\$(git status --porcelain --untracked-files=no)\" && \
       git pull --ff-only origin main && \
       test \"\$(git rev-parse HEAD)\" = '<commit>'"
  4. Build the application image from that checked-out source on the server, replace the running container, wait for health, and verify the service.

    ssh oralce-chunchuan \
      'cd /root/perplexity && ./deploy/compose.sh up'
  5. Recheck health and status after deployment.

    ssh oralce-chunchuan \
      'cd /root/perplexity && \
       ./deploy/compose.sh verify && \
       ./deploy/compose.sh status && \
       docker inspect perplexity-mcp \
         --format "image={{.Image}} status={{.State.Status}} health={{.State.Health.Status}}"'

Invariants

  • Build the application from the server checkout. Do not pull, publish, or wait for a Docker Hub application image.
  • Preserve the server .env, token_pool_config.json, data/, and Docker volumes.
  • Stop when the remote tracked worktree is dirty; inspect and preserve changes instead of overwriting them.
  • Never force-push, run git reset or git clean, run docker compose down, or delete images or volumes.
  • Stop on a failed push, commit mismatch, build, health check, or status check.
  • Do not add authorship or attribution trailers unless the user explicitly requests them and provides the exact identity.

Report the deployed commit, image ID, /health result, and final container state.

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.