/selamy-skills:restart-resiliencefrom selamy-skills
Use when a stateful worker or service can be restarted, rescheduled, or crash mid-task. Guarantees it resumes its full in-flight and scheduled work from durable state on any restart, never silently dropping work.
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.
A restart is not a clean slate. A stateful worker that loses its place when the process dies — drops the task it was mid-way through, forgets its queue position, or skips scheduled work whose time passed while it was down — has a defect, not bad luck. Restarts happen for ordinary reasons: deploys, rescheduling, node pressure, crashes, out-of-memory. The bar is: after any restart, the worker resumes its full work from durable state.
This is the resume side of durability. The shutdown signal path (draining on
SIGTERM within a grace period) is a separate, complementary concern — see
graceful-shutdown-stateful-agents. This skill assumes the shutdown might be
abrupt and asks: when the process comes back, does it pick up everything it owed?
Test the brutal path, not the polite one. Kill the process mid-task (not a clean exit) and confirm on restart it: resumes the in-flight unit, re-acquires its queue position, runs the schedule it missed, and applies nothing twice. "It restarted and kept running" is not the test — "it restarted and lost nothing" is.
After an abrupt mid-task kill, the worker recovers from durable state: it resumes in-flight work, re-acquires its queue position, runs scheduled work it missed, and applies each unit exactly once — proven by a kill-mid-task recovery test, not a clean-restart test.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selamy-labs/agent-skills --plugin selamy-skills111 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.Other plugins' skills for the same job