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.
Skill by KhaledSaeed18
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/khaledsaeed18-vps-ops-toolkit
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, devops
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/vps-ops-toolkit
What's inside
- Skill 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.
- License
- MIT
- Instructions
- 44 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (13)
- SKILL.md
- backup.cron · templates/ops/backup/
- backup.env.example · templates/ops/backup/
- backup.sh · templates/ops/backup/
- fingerprint.sql · templates/ops/backup/
- snapshot.sql · templates/ops/backup/
- health-check.cron · templates/ops/health/
- health-check.sh · templates/ops/health/
- health.env.example · templates/ops/health/
- ops.logrotate · templates/ops/health/
- install.sh · templates/ops/
- alert.sh · templates/ops/lib/
- ship.sh · templates/ops/
SKILL.md (first lines)
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.
From KhaledSaeed18/dotclaude, MIT.
More from KhaledSaeed18/dotclaude
- 0.619score
ghcr-coolify-pipeline
KhaledSaeed18
Write the single GitHub Actions workflow that takes a repository from pull request to production through GHCR and Coolify.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
coolify-image-app
KhaledSaeed18
Create and configure a Coolify application that runs a prebuilt image from a registry.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
coolify-vps-baseline
KhaledSaeed18
Prepare a Linux VPS to run production containers under Coolify.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
deploy-verification
KhaledSaeed18
Prove a deployment from the server side.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
express-prisma-coolify-image
KhaledSaeed18
Package an Express and Prisma API as a runtime-only image that migrates its Postgres database at start.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
live-domain-cutover
KhaledSaeed18
Move a live domain from one host to another without downtime or lost sessions, with a rehearsal, a timed DNS switch, a soak and the old host removed.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
nextjs-coolify-image
KhaledSaeed18
Package a Next.js app as a runtime-only container image with a health probe and a fast shutdown.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
proxy-client-address
KhaledSaeed18
Forward the real client address from a server-side proxy to a backend without trusting forgeable headers.
SkillAFreshness: A★ 5Claude Code +9 - 0.579score
dockerfile-best-practices
KhaledSaeed18
Write or review a Dockerfile and compose setup for a production service: multi-stage builds that ship only the runtime, pinned base images, layer order for…
SkillBFreshness: B★ 5Claude Code +9 - 0.579score
adr-writing
KhaledSaeed18
Write Architecture Decision Records that a future engineer can act on: a numbered, immutable record with the context that forced the decision, the options…
SkillBFreshness: B★ 5Claude Code +9 - 0.579score
openapi-spec
KhaledSaeed18
Write, generate, or review an OpenAPI 3.1 specification for an HTTP API so that it is accurate to the implementation, complete for consumers (schemas…
SkillBFreshness: B★ 5Claude Code +9 - 0.579score
api-design-review
KhaledSaeed18
Review an API contract (REST or GraphQL) before or while it is implemented, checking resource naming, HTTP semantics, status codes, error shape, pagination…
SkillBFreshness: B★ 5Claude Code +9
Signals
- Stars
- 5
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 5, 2026 (24 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/KhaledSaeed18/dotclaude
- Website
- dotclaude.khaledsaeed.tech/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from KhaledSaeed18
- 0.619score
ghcr-coolify-pipeline
KhaledSaeed18
Write the single GitHub Actions workflow that takes a repository from pull request to production through GHCR and Coolify.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
express-prisma-coolify-image
KhaledSaeed18
Package an Express and Prisma API as a runtime-only image that migrates its Postgres database at start.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
coolify-image-app
KhaledSaeed18
Create and configure a Coolify application that runs a prebuilt image from a registry.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
coolify-vps-baseline
KhaledSaeed18
Prepare a Linux VPS to run production containers under Coolify.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
deploy-verification
KhaledSaeed18
Prove a deployment from the server side.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
live-domain-cutover
KhaledSaeed18
Move a live domain from one host to another without downtime or lost sessions, with a rehearsal, a timed DNS switch, a soak and the old host removed.
SkillAFreshness: A★ 5Claude Code +9
Cite this page
vps-ops-toolkit skill. Agent Mart. https://agentmart.dev/skills/khaledsaeed18-vps-ops-toolkit (last updated 2026-10-24)