/selamy-skills:rwo-volume-maintenancefrom selamy-skills
Use when a job does maintenance on a single-writer (ReadWriteOnce) volume or live database that a running service still owns — pruning, compaction, retention, vacuum. Prefer snapshot/offline processing and bound the job generously so it cannot starve itself.
Ships in selamy-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Maintenance jobs that shrink or tidy state — log/retention pruning, DB
compaction/VACUUM, snapshot trimming — often must run against a volume the live
service still owns. On a ReadWriteOnce PersistentVolume or a single-writer
database, the maintenance job and the live writer contend for the same
resource. That contention creates a self-reinforcing trap.
Give such a job a too-tight time bound (activeDeadlineSeconds, lock
timeout, statement timeout) and you get a vicious cycle:
The job that is supposed to shrink the store is the one that times out — and it gets worse every cycle. The store grows unbounded while the maintenance job shows a steady stream of "deadline exceeded".
Set the deadline to the realistic worst-case runtime on the largest the store is allowed to get, with margin — not the time on a fresh, small store. A maintenance deadline is a budget for the heaviest run, not the lightest. Add an alert if a run approaches the budget, so you tune it before it starts failing.
Better than racing the live writer: don't race it.
Offline/snapshot processing removes the contention that made the tight deadline fatal in the first place — which is why it is the real fix, and a generous deadline is the safety net.
For SQLite state on an RWO volume, treat compaction as offline maintenance:
PRAGMA integrity_check, page_count, freelist_count, and
page_size before changing the database.VACUUM. Scaling a StatefulSet to zero for a
short maintenance window is safer than compacting while the service runs.PRAGMA wal_checkpoint(TRUNCATE) when the database uses WAL.VACUUM only when free disk is comfortably larger than the expected
compacted database size.PRAGMA integrity_check again and record the before/after size.If the volume shares a root filesystem with container images, compaction may be the difference between a pod starting and a startup-health gate refusing writes.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
111 skills in this plugin
/adaptive-estimationUse when tracking a slowly-varying latent quantity from noisy measurements with quantifiable uncertainty — a drifting metric, capacity, latency trend, or confidence. Prefer a Kalman-style adaptive estimator over fixed moving averages or static thresholds./adaptive-loop-budgetingUse when an autonomous loop needs explicit limits on attempts, time, cost, tool calls, verification depth, or risk, and a clear stop, continue, yield, or escalate decision./adopt-and-deleteUse when adopting a shared module, library, chart, or service, or doing any consolidation, migration, or refactor that supersedes existing code. The change that adds the replacement must REMOVE what it replaced, in the same atomic change.npx claudepluginhub selamy-labs/agent-skills --plugin selamy-skills