Claude-skill-registry delaying-tasks
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/delaying-tasks" ~/.claude/skills/majiayu000-claude-skill-registry-delaying-tasks && rm -rf "$T"
manifest:
skills/data/delaying-tasks/SKILL.mdsource content
Delaying Tasks Skill
Use this skill to run a delayed one-shot or bounded polling loop. Use the
/delay command to invoke this skill.
Agent Delegation
This skill delegates to specialized agents via the Task tool:
| Operation | Agent | Returns |
|---|---|---|
| One-shot delay | | JSON: success, duration, action |
| Bounded polling | | JSON: success, attempts, stopped_early, action |
To invoke an agent, use the Task tool with:
- Prompt file:
.claude/agents/<agent-name>.md - Parameters as documented in each agent's Inputs section
Modes
- One-shot delay:
or/delay --minutes N [--action "text"]/delay --until HH:MM|ISO [--action "text"] - Interval/polling (bounded):
or/delay --every 1m --for 10m [--action "text"]/delay --every 1m --attempts 10 [--action "text"] - Stop-on-success polling: add
with either--stop-on-success
(uses--prompt <name>
) or.prompts/<name>.md
(auto-creates--prompt-text "..."
wrapping the text). The prompt must return JSON:.prompts/delay-success-<ts>.md
.{ "Success": true|false|"true"|"false", "Cancelled": true|false|"true"|"false", "Message": "<details>" }
stops immediately.Cancelled=true - Cancel: not supported; reject requests instead of pretending to cancel.
Behaviors
- Heartbeat: print a simple “Waiting Xm...” once per minute (or interval) to show liveness; no additional chatter.
- Completion: print the action text on completion so the caller/skill can perform the follow-up check; heartbeats + final Action line only.
- Bounds: require max duration or attempts for polling to avoid runaway loops; enforce a minimum interval (e.g., 1m) to avoid busy waiting.
- Stop-on-success: between checks, sleep via
; after each sleep, run the success-check prompt from.claude/scripts/delay-run.sh --every <interval> --attempts 1 --suppress-action
and parse JSON Success/Cancelled/Message. Stop early when Success=true or Cancelled=true; otherwise continue until attempts/duration used..prompts/ - No network-dependent work is performed by this skill; the action text is just a cue for the caller.
Agents
: handles one-shot delays, emits heartbeats, prints action text at end.delay-once
: handles bounded polling (interval + max duration/attempts), emits heartbeats each interval, stops on success/timeout, prints action text at end.delay-poll
Safety
- Reject unbounded polls.
- For short delays (<1m), reduce heartbeat spam (e.g., single “Waiting N seconds…” then completion).
- Return concise outputs only; no tool traces.