Skip to content
Skills Library
DevOps & cloud · Automation

maintenance

/maintenance

Use this skill when operating a self-hosted customer web stack (Cal.diy / Typebot / n8n / Postgres / Stripe) that a maintenance agent must keep available, patched, and backed up automatically. JEV-first decisions, sparse LLM generation, health probes, weekly backups, JEV-gated updates, rollback.

Licence
MIT
Last repository change
28.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
3
Scripts
0
HTML comments
0
URLs in SKILL.md
3
Deprecation

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

Licence

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

What it does and when to use it

Use this skill when operating a self-hosted customer web stack (Cal.diy / Typebot / n8n / Postgres / Stripe) that a maintenance agent must keep available, patched, and backed up automatically. JEV-first decisions, sparse LLM generation, health probes, weekly backups, JEV-gated updates, rollback.

Original author description

Use this skill when operating a self-hosted customer web stack (Cal.diy / Typebot / n8n / Postgres / Stripe) that a maintenance agent must keep available, patched, and backed up automatically. JEV-first decisions, sparse LLM generation, health probes, weekly backups, JEV-gated updates, rollback.

How it works

  1. When to Use This Skill
  2. COST DISCIPLINE (first rule)
  3. JEV call shape (verified)
  4. 1. HEALTH PROBE (every 15 min)
  5. 2. WEEKLY BACKUP (Sunday 03:00 UTC)
  6. 3. WEEKLY UPDATE CHECK (Monday 02:00 UTC)
  7. 4. DISK HEADROOM (daily)
  8. 5. ROLLBACK (always have a story before a mutation)
  9. 6. REPORTING
  10. PITFALLS
Original SKILL.md headings · 101 lines, 778 words
SKILL.md preview
---
name: maintenance
description: >-
  Use this skill when operating a self-hosted customer web stack (Cal.diy /
  Typebot / n8n / Postgres / Stripe) that a maintenance agent must keep
  available, patched, and backed up automatically. JEV-first decisions, sparse
  LLM generation, health probes, weekly backups, JEV-gated updates, rollback.
version: 1.0.0
platforms: [hermes, openclaw, claude, codex]
author:
  name: Custodian (AgentForge)
  source: Joerg Peetz / Fluffy — Custodian customer-maintenance agent
license: MIT
risk_tier: L2
tags: [maintenance, backup, update, health, ops, self-hosted, jev, runbook]
requires:
  binaries: []
---

# Custodian Maintenance Runbook

Operates a client's self-hosted stack — booking engine (Cal.diy), automation
(n8n), chat (Typebot), Postgres, web/TLS, Stripe webhook. **Purpose: availability
+ recoverability + currency, at the lowest possible inference cost.**

## When to Use This Skill

Use this skill when:
- A customer stack must be monitored, backed up, and updated automatically.
- You need a repeatable, guardrailed maintenance loop (health → backup →
  update → rollback) that never breaks a live booking flow.
- Cost matters: the loop should run decisions on a cheap model and only summon
  a generation model for genuine language work.

## COST DISCIPLINE (first rule)
- Use **JEV** (`typesafe/jev-1.13`, endpoint `/api/alpha/decisions`) for EVERY decision
  (gate an update, classify an incident, pick retention).
- Use a cheap **flash model** ONLY for unavoidable language work: writing the human
  incident text, parsing an error JEV can't classify, composing an escalation, reading
  a release note for breaking-change judgment.
- A cycle that completes JEV-only is a WIN. Do not summon a generation model for
  anything a command, grep, or JEV resolves.

## JEV call shape (verified)
POST `https://openrouter.ai/api/alpha/decisions`
Headers: `Authorization: Bearer $OPENROUTER_API_KEY`, `Content-Type: application/json`
Body:
```json
{"model":"typesafe/jev-1.13",
 "state":"<short context>",
 "questions":{"q1":{"type":"choice","instructions":"...","criteria":{"A":"...","B":"..."}},
              "q2":{"type":"score","instructions":"...","criteria":["0: ...","1: ...","2: ..."]},
              "q3":{"type":"noul","instructions":"..."}}}
```
Read `answers[qid].choice|score|noul` + `.confidence`. Threshold `< 0.6` confidence → escalate.
`score` runs 0..(len(criteria)-1); normalise / (len-1). Use `noul`, not `bool`. Batch all
questions for a decision into ONE call. try/catch every JEV call → safe neutral default.

## 1. HEALTH PROBE (every 15 min)
Probe each service; record ok/fail:
```
systemctl is-active <cal-diy|n8n|typebot|postgres|caddy/nginx> 2>/dev/null
curl -fsS -o /dev/null -w "%{http_code}" http://localhost:PORT/health   # per service
curl -fsS -o /dev/null -w "%{http_code}" https://<domain>/            # web + TLS via HTTPS
openssl x509 -noout -enddate -in <crt> 2>/dev/null                     # TLS expiry
df -h / | tail -1; free -m | awk 'NR==2{print $3"/"$2"MB"}'            # disk + RAM
```
If all ok → emit nothing (quiet). If any fail:
1. JEV `noul` "Is this an incident requiring action?" (threshold 0.6).
2. JEV `choice` classify: transient / service-down / disk-full / tls-expiring / unknown.
3. If covered by a rule (one known-good service dead, TLS < 7d) → repair per that
   service's rollback+restart rule; verify health after.
4. If unknown/breaking/ambiguous → do NOT mutate → queue, alert once.

## 2. WEEKLY BACKUP (Sunday 03:00 UTC)
1. `pg_dump` the DB to a timestamped file.
2. Back up config + env (vault labels, docker-compose, Caddyfile).
3. Rotate by retention: daily×7 + weekly×4 (from config).
4. Copy off-box to the backup destination (S3/syncthing/second VPS).
5. VERIFY restorable (`pg_restore --list` or load into scratch schema + SELECT count).
6. Alert: `Backup <ts> OK (n MB, verified restorable)` or `BACKUP FAILED: <why>`.
- Never run a mutation without a fresh verified backup first.

## 3. WEEKLY UPDATE CHECK (Monday 02:00 UTC)
1. Query upstream releases: Cal.diy (`calcom/cal.diy`), Typebot (`baptisteArno/typebot.io`),
   n8n (`n8n-io/n8n`). Note current pinned vs available.
2. For each pending update: JEV `noul` "Is this a safe non-breaking update?"
   (fresh backup + supported path + not a major jump = lower; breaking/major/unknown = higher).
3. Non-breaking → apply → verify service health → record.
4. Breaking/major/ambiguous → STALL, escalate with the specific release + JEV reasoning.
   Do NOT auto-install a breaking change on a live booking system.
5. Report briefly: applied / stalled / nothing.
- Core stays upstream-compatible: customisation is additive overlay; never a destructive
  rewrite that breaks a clean upstream merge.

## 4. DISK HEADROOM (daily)
- `df -h /System/Volumes/Data 2>/dev/null || df -h /` — take the DATA volume. If < 15%
  free → warn. If < 5% → escalate immediately (a full disk kills cron first).
- Flag transient big-writer patterns from shared hosts if present (WAL/snapshots can
  spike a volume and starve unrelated cron).

## 5. ROLLBACK (always have a story before a mutation)
Keep the previous pinned version/image + its verified backup. To rollback: stop service,
restore previous image, restart, verify health. The rollback path exists BEFORE any apply.

## 6. REPORTING
- Quiet unless it matters. Speak up on: incident fired, update applied, backup
  verified/FAILED, escalation needed, disk low.
- Reports are verified on the output side — never claim success without reading back proof.
- Escalation format: what happened · tradeoff · recommendation · exact decision needed.

## PITFALLS
- A full disk kills cron first — check disk first, cheaply, often.
- `score` needs normalising; use `noul` not `bool`; confidence-gate before any action.
- Never blind-`latest` on a live system; pin and verify.
- Never state an update/backup succeeded without output-side verification.
- Secrets by label from the vault; split-headers so keys never verbatim in output.
- DeepSeek/flash is for language work only — don't summon it to "decide".
Files in this package (3)
  • CHANGELOG.md 1 KB
  • SKILL.md 6 KB
  • evals/evals.json 4 KB

Versions

RepositoryScoreLicence
This page · JPeetz/agent-skills100MIT
markusleben/ha-nova100MIT
tim-hub/powerball-harness100MIT
adelrodriguez/skills90MIT

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

Downloads in the last 30 days: 0 · ranking

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

Similar skills

  • 100calcom-api
    Interact with the Cal.diy API v2 to manage scheduling, bookings, event types, availability, and calendars. Use this skill when building integrations that need to create or manage bookings, check availability, configure event types, or sync calendars with Cal.diy's scheduling infrastructure.
  • 90pf-maintain
    Phase-3 production-support stage: keeps a live product patched, secure, within its contracts, and recoverable. Each run checks dependencies and security advisories, re-runs the contracts on the live site, checks certs and host limits, verifies backups and periodically tests a…
  • 95stripe-projects
    Use when the user wants to provision infrastructure or third-party services using Stripe Projects. Triggers: "I need a database", "set up auth", "add caching", "give me a Postgres", "provision Redis",
  • 100typebot
    Operate the Typebot API on a bento VPS — start a chatbot conversation, run a bot flow, send messages and continue a chat session, list typebots in a workspace, publish a typebot (make it live), get chatbot results and responses (submissions, answers), embed a chatbot, and manage…
  • 90wordpress-maintenance-ops
    Use when maintaining a WordPress site: updates, health checks, backups, plugin and theme hygiene.
  • 100cal-com
    Cal.com is an open-source scheduling platform for booking pages, availability and calendar sync, with an embed, a REST API v2 and webhooks. Use when the user wants to add a booking widget to a React or plain site, create event types, list free slots, create, cancel or reschedule…

Feedback and reports

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