/selamy-skills:push-over-pollingfrom selamy-skills
Use when designing how one component learns about another's state changes — observability, status propagation, readiness, or event reaction. Prefer server push over client polling; if polling is unavoidable, bound it.
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.
When component A needs to know about state changes in component B, default to B pushing the change to A, not A repeatedly asking B. A busy poll loop both wastes cycles when nothing changed and lags reality between intervals. Push delivers the change once, when it happens, and goes quiet otherwise.
Prefer a push mechanism the platform already gives you:
Push wins on two axes at once: it is cheaper (no traffic while idle) and fresher (no interval-sized lag). Reach for it before writing any retry loop.
Some sources offer no push and you must poll. That is acceptable only if the poll is bounded, never a tight loop:
If-Modified-Since / ETag (or an equivalent
cursor/version) so an unchanged source returns cheaply with no payload.Do not over-engineer. A simple bounded poll is the right call when the source genuinely has no push, the change rate is low, and a few seconds of lag is acceptable — for example a one-shot readiness check with backoff. The target is "bounded and quiet when idle", not "push at any cost".
while true loop that re-requests with no sleep, no backoff, and no
conditional check — burning cycles to mostly re-read unchanged stateState changes reach the consumer via push where the source supports it; any remaining poll is bounded (backoff + jitter + conditional/cursored requests with a capped interval) and is silent when nothing has changed.
What SKILL.md sets; muted values are Claude Code's defaults
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.Other plugins' skills for the same job
npx claudepluginhub selamy-labs/agent-skills --plugin selamy-skills