Skip to content
Skills Library
DevOps & cloud · Automation

vps-ops-toolkit

/vps-ops-toolkit

Install host operations on a VPS, with a cron health check that alerts on change, restore-verified encrypted database backups, and an installer. Use when a server has no monitoring or backups, or when adding a resource to them.

Repository
dotclaude ↗
Licence
MIT
Last repository change
25.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
13
Scripts
5
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 5 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: templates/ops/backup/backup.sh, templates/ops/health/health-check.sh, templates/ops/install.sh, templates/ops/lib/alert.sh, templates/ops/ship.sh

What it does and when to use it

Install host operations on a VPS, with a cron health check that alerts on change, restore-verified encrypted database backups, and an installer. Use when a server has no monitoring or backups, or when adding a resource to them.

Arguments

/vps-ops-toolkit (optional) the SSH alias, the database resource name, and the domains to watch
Original author description

Install host operations on a VPS, with a cron health check that alerts on change, restore-verified encrypted database backups, and an installer. Use when a server has no monitoring or backups, or when adding a resource to them.

How it works

  1. Hard rules: never break these
  2. Step 1: Fit the templates to the project
  3. Step 2: Set the defaults for this server
  4. Step 3: Review, then ship with the owner's go
  5. Step 4: Keep it current
Original SKILL.md headings · 44 lines, 612 words
SKILL.md preview
---
name: vps-ops-toolkit
description: Install host operations on a VPS, with a cron health check that alerts on change, restore-verified encrypted database backups, and an installer. Use when a server has no monitoring or backups, or when adding a resource to them.
argument-hint: "(optional) the SSH alias, the database resource name, and the domains to watch"
---

A server is operated when something other than a person notices a problem and when the database can be rebuilt from a copy that was proven to restore. The toolkit lives in the API repository under `ops/`, is installed by one command, and reports through a webhook only when the set of problems changes.

## Hard rules: never break these

- **Installing or changing cron, logrotate or anything under `/etc` is a production action.** The owner authorises `ship.sh`; you prepare and review it.
- **A backup that was not restored is not a backup.** Keep only archives whose restore fingerprint matched the source snapshot. Nothing is kept from a failed run.
- **The server holds only the public encryption key.** The private key stays with the owner, offline; a compromised server cannot read old backups.
- **Alerts only on change.** Every run logs; the webhook fires when a problem appears, persists with a change, or resolves. No heartbeat spam.
- **Never store webhook URLs or keys in the repository.** They live in `/etc/<prefix>-*.env`, mode 600, created once from the examples and never overwritten by the installer.

## Step 1: Fit the templates to the project

Copy [templates/ops/](./templates/ops/) into the repository as `ops/` and rename the `app` prefix (`app-ops`, `app-health`, `app-backup`) to the project's name in `install.sh`, the cron files, the logrotate file and the env examples. The files:

| File | Role |
| --- | --- |
| `lib/alert.sh` | one Discord embed per alert, colour by severity, fields, length limits |
| `health/health-check.sh` | services, Coolify resources by label, capacity, backup age, certificate verification per domain, readiness, pending reboot; state in `/var/lib`, alert on change |
| `backup/backup.sh` with `snapshot.sql` and `fingerprint.sql` | one-snapshot `pg_dump` plus roles, restore into a throwaway Postgres with no network, fingerprint diff, `age` encryption, local and optional git offsite retention |
| `install.sh` | idempotent root installer: scripts, schedules, logrotate, env files created only when missing, a pre-deploy backup profile, one health run |
| `ship.sh` | tar the folder over SSH and run the installer with sudo |

Add `"ops:install": "bash ops/ship.sh"` to `package.json` and `shellcheck -x` of `ops/**/*.sh` to the pipeline's ops job (the `ghcr-coolify-pipeline` skill has the step).

## Step 2: Set the defaults for this server

In `health.env.example`: `RESOURCES` (every Coolify resource name that must run), `DOMAINS` (every certificate the proxy must serve, including Coolify's own), `READINESS_URL`. In `backup.env.example`: the database resource name, role, database, the exact `postgres` image version for verification, retention. The owner generates the age key pair (`age-keygen`) and pastes only the public key into `/etc/<prefix>-backup.env` on the server.

## Step 3: Review, then ship with the owner's go

```bash
shellcheck -x ops/**/*.sh ops/*.sh
pnpm ops:install       # tar over SSH, install as root, one health run; prints the last RESULT line
```

Then from the server: `tail -20 /var/log/<prefix>-health.log` should list every check with `OK` and end in `RESULT 0 problem(s)`. Run the backup once by hand (`sudo /usr/local/lib/<prefix>-ops/backup/backup.sh`) and read the `restore verified: N tables, N rows identical` line before trusting the schedule.

## Step 4: Keep it current

Every new Coolify resource goes into `RESOURCES`, every new domain into `DOMAINS`, in the example file and on the server, followed by `pnpm ops:install`. The pipeline's pre-deploy backup uses the `predeploy` profile the installer creates, so deploy backups never crowd out nightly ones. The restore procedure (decrypt with the private key, roles then data into an empty Postgres, fingerprint diff) belongs in the repository's ops README; the `incident-postmortem` skill is for when it was needed.

Report what was installed, the first health result, the first verified backup line, and the env values the owner still has to set.
Files in this package (13)
  • SKILL.md 4 KB
  • templates/ops/install.sh 2 KB
  • templates/ops/ship.sh 1 KB
  • templates/ops/backup/backup.cron 1 KB
  • templates/ops/backup/backup.env.example 1 KB
  • templates/ops/backup/backup.sh 7 KB
  • templates/ops/backup/fingerprint.sql 1 KB
  • templates/ops/backup/snapshot.sql 1 KB
  • templates/ops/health/health-check.cron 1 KB
  • templates/ops/health/health-check.sh 8 KB
  • templates/ops/health/health.env.example 1 KB
  • templates/ops/health/ops.logrotate 1 KB
  • templates/ops/lib/alert.sh 2 KB

Versions

The database has no other skills named vps-ops-toolkit.

Identical content appears in 1 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version 7453bbe4e4f3 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 4 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100cloudflare-vps-prep
    Configure the Cloudflare account prerequisites for the vps-ss Docker installer through the live dashboard, then generate a validated cloudflare-vps-prep.json file. Use when the user asks to prepare Cloudflare Workers credentials/materials for a VPS, automate the Cloudflare-side…
  • 96vps-provisioning
    Use when provisioning/hardening a new VPS.
  • 100vps-panel-3xui
    在一台 Linux VPS 上全自动部署、重装或迁移 3x-ui(x-ui)代理面板——SSH 探测、非交互安装、验收、备份数据库、凭据落盘一次做完。当用户提供 VPS 的 IP / SSH 端口 / root 密码,并说"搭面板""装 3x-ui""节点面板""重装面板""续费后恢复面板""帮我配代理服务器"时使用;也用于排查面板打不开、密码登不上、端口不通、HTTP/HTTPS 协议混淆等问题。
  • 90install-open-mail-server
    Installs Open Mail Server on a Linux VPS over SSH. Asks for the server host, username, and password, installs Docker when it is missing, copies this project and its Compose file, and starts the container. Use when the user asks to install, deploy, or set up Open Mail Server on a…
  • 100host-connect
    Use when the user wants work to run on their VPS or another machine, or a host is missing or broken in team_host. Walks them through connecting it.
  • 100database-backups
    Implement database backup strategies. Configure automated backups, retention, and recovery testing. Use when designing backup and recovery procedures.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.