respawn
Skill2 starsChanged 4 months agoMITView on GitHub
Sets up automatic revival of this session after Claude's 5-hour usage limit is hit — waits until the window reopens, notifies the user, and resumes automatically unless the user cancels within a configurable grace window (default 5 min). Use when the user says "respawn", "set up respawn", "auto-resume", "revive this session", or wants to avoid having to remember to come back after a rate-limit cutoff. MUST be invoked proactively, BEFORE the account is actually blocked — does not work reactively after a cutoff. v0.2.0, field-tested through multiple overnight multi-window multi-session runs; not an officially supported Anthropic feature.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- vicnaum/vics-agent-skillstheir own version, first seen Jul 23, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- vicnaum/vics-agent-skills★ 52same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
If no valid arguments were given, briefly confirm with the user what's about to happen (see Activation message below), and remind them of …
- Very specific: line 36
Call CronCreate. If a reset time is known (given by the user, or auto-computed for a later window — see follow-up step 4), use the timed …
- Distinctive: line 53
When the prompt does run, check the conversation history for an unhandled rate-limit cutoff — a visible error message about the usage limit …
- Distinctive: line 55
No unhandled rate-limit block found: do nothing visible. Leave the recurring job in place — a cutoff could come later.
- Distinctive: line 64
Check whether the user has replied CANCEL (or similar — "stop", "cancel", "no") in the conversation since the notification was sent.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
respawn
Gaming metaphor: the session "dies" (gets blocked by the 5-hour usage limit), waits, and respawns automatically once the window reopens.
Critical precondition: this must be set up BEFORE the account gets blocked. After a cutoff, no new message can be sent in any session until the window reopens — so there is no reactive way in. The user must invoke /respawn proactively (at the start of a heavy/long session, or when they notice they're approaching the limit).
Confirmed by repeated real-world use (multiple overnight runs, multiple sessions running /respawn in parallel, multiple consecutive windows in a single run): a recurring CronCreate job does survive repeated rate-limit rejections and fires correctly once the window reopens, the detect → notify → cancel-window → resume flow works end to end (tested with the then-fixed 5-minute cancel window), and this holds across several concurrent sessions without interference. Still not an officially supported Anthropic feature — auto-resume after a rate limit is an open, unimplemented feature request (GitHub issues anthropics/claude-code #26775 and #36320) — but the core mechanism is no longer just a working assumption.
Known limitations (tell the user this when the skill is activated, and again if they ask):
- Requires this app/session to stay open for the entire waiting period. Believed (not independently confirmed) that
CronCreatejobs are in-memory only ("session-only") and disappear without a trace if the session ends or the app is closed. - Jobs only fire while the session is idle. If the polling check or the cancel-window deadline lands while the user is actively interacting (or another turn is in flight), that firing is delayed or effectively skipped — this especially undermines the "resuming in N min" promise in the push notification.
- Believed (not independently confirmed): recurring
CronCreatejobs auto-expire after 7 days. Not yet tested against a wait that long — treat/respawnas covering at most a 7-day wait until this is verified. - Unverified actual token cost of rejected attempts while the window is closed.
On invocation
/respawn here refers to whatever phrase triggers this skill (see the trigger phrases in the frontmatter description above) — it is not necessarily a registered slash command; treat it as shorthand for "when this skill fires."
Shorthand arguments — if invoked with arguments (e.g. /respawn 3, /respawn 22:15, /respawn 3 22:15 cancel=10, /respawn nocancel), parse instead of asking conversationally:
- A bare integer token →
windows(0= indefinite). - A token matching
H:MM/HH:MM(24h) → known reset time. until-cancelledorinf→windows: 0.cancel=N→ cancel-window length in minutes (see below).nocancel→ shorthand forcancel=0.- Any combination of the above, in any order. Anything that doesn't parse cleanly, or no arguments at all → fall back to asking conversationally (step 1 below).
- If no valid arguments were given, briefly confirm with the user what's about to happen (see Activation message below), and remind them of the limitations above if this is the first time they've used the skill in this session. Ask:
- How many consecutive 5-hour cutoffs to auto-resume through (
windows): default1(resume once, then stop) if they don't say.0or "until cancelled" means keep re-arming indefinitely. - Whether they already know the reset time for this cutoff (the app UI often shows it). Optional — most people won't know it yet if they're setting this up pre-emptively.
- How long the cancel window should be once a cutoff is detected (
cancel_window, minutes): default5if they don't say.0means resume immediately with no cancel window at all — only a heads-up notification after the fact.
- How many consecutive 5-hour cutoffs to auto-resume through (
- Call
CronCreate. If a reset time is known (given by the user, or auto-computed for a later window — see follow-up step 4), use the timed path; otherwise use the blind poll:- Timed path: first job is ONE-TIME (
recurring: false), scheduled ~1 minute after the known reset time, prompt: the instructions under "On each 30-minute firing" (same detection logic applies to a one-time job). This is the actual dynamic-scheduling win — the user's (or the auto-computed) reset time replaces the blind 30-minute cadence for the first check, since the harness can't read a live reset time from inside a blocked job itself (see limitations). Safety net if the estimate was off: if this job fires and finds no unhandled cutoff, schedule one more ONE-TIME recheck 15 minutes later; if that also finds nothing, fall through to the blind 30-minute recurring poll from there. - Blind path (no reset time known):
recurring: true,cron: every 30 minutes, offset from the hour/half-hour — e.g."13,43 * * * *", prompt: the instructions under "On each 30-minute firing" - Either way: include the current
windowscount ANDcancel_windowvalue in the prompt text itself (state isn't persisted anywhere else, so it must travel inside the job's prompt)
- Timed path: first job is ONE-TIME (
- Note the job ID from the response (needed for
CronDeletelater). - Briefly confirm it's set up (see Setup-complete message below) — mention whether it's checking once near the given reset time (plus the 15-min safety recheck) or polling every 30 minutes, the
windowscount if not the default, and thecancel_windowif not the default 5 minutes.
Activation message — cover these points, adapted to the user's language and phrasing, not a literal script:
Setting up respawn: I'll watch for the usage-limit cutoff and auto-resume once the window reopens ([windows] window(s), [cancel_window]-min cancel grace / no cancel grace). [First time only: one-line limitations summary — requires this session to stay open, unofficial workaround, see full list if asked.]
Setup-complete message — cover these points:
Respawn is armed: [checking once around HH:MM (+ 15-min safety recheck) | polling every 30 min] until the window reopens[, repeating for up to N windows]. [If cancel_window > 0: you'll get [cancel_window] min to cancel once it fires. | If cancel_window = 0: it'll resume immediately on detection, no cancel window — you'll just get a heads-up after the fact.]
On each 30-minute firing
Confirmed by repeated use: if the account is still blocked by the usage limit when the job fires, the turn never runs at all (rejected before any model turn starts), so the fact that this prompt actually runs is evidence the window is open. Behave accordingly.
When the prompt does run, check the conversation history for an unhandled rate-limit cutoff — a visible error message about the usage limit (e.g. mentioning a reset time) that appeared after /respawn was activated and that no later message in the session has already acted on:
- No unhandled rate-limit block found: do nothing visible. Leave the recurring job in place — a cutoff could come later.
- An unhandled cutoff found, branch on
cancel_window(carried in this job's prompt; default5if absent — jobs created before this option existed):cancel_window > 0: send aPushNotification: "Window is open again — resuming [brief description of the interrupted work] in [cancel_window] min. Reply CANCEL to stop." Create a new ONE-TIMECronCreatejob (recurring: false)cancel_windowminutes out, prompt: see "On the cancel-window follow-up" below, carryingwindowsandcancel_windowforward in the prompt text. Delete the original polling job withCronDelete— the follow-up job takes over the rest of the flow. If the session ends before this delete completes, both jobs may end up live; the follow-up job firing twice is harmless (step 1 of the follow-up is idempotent), so this is not handled specially.cancel_window == 0: no waiting, no cancel opportunity. Send aPushNotification: "Window is open again — resumed [brief description of the interrupted work] automatically (no cancel window configured)." Then go straight into "On the cancel-window follow-up" step 3 (resume) and step 4 (multi-window re-arm) in this same firing — there's no separate follow-up job to create. Delete the polling job withCronDelete.
On the cancel-window follow-up
(Only reached when cancel_window > 0 produced a separate follow-up job — see above.)
- Check whether the user has replied CANCEL (or similar — "stop", "cancel", "no") in the conversation since the notification was sent.
- Cancelled: briefly confirm it was stopped. Done, no jobs left running.
- Not cancelled: continue the original, interrupted work directly in this session, right where it left off — as if the cutoff never happened. If the session's context was compacted or otherwise lost during the wait, say so and ask the user how to proceed rather than guessing at the interrupted task.
- Multi-window re-arm: if
windows(carried in this job's prompt) is0(indefinite) or>1, re-arm for the next possible cutoff: decrementwindowsby 1 (leave0as0), compute the next reset time as now (resume time) + 5 hours, then redo "On invocation" step 2 using the timed path with that computed time, carrying the samecancel_windowvalue forward. This is the same 5-hour rolling window, so the estimate is as good as one the user would have given — no need to ask them again. Do this quietly — no need to re-confirm with the user unless something about the setup changed. Ifwindowswas1, this was the last covered cutoff: stop here, no new job.
About the tools this skill uses
CronCreate, CronDelete, and PushNotification are harness-provided tools (part of the Claude Code / Claude app scheduling system this skill runs in), not something this skill implements. If your environment doesn't expose them, this skill can't function as written.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

