wait

Pauses execution for a user-specified duration using the sleep command.

12.1k|1.5k|Updated Jul 12, 2023
One-click install
npx skills add https://github.com/elie222/inbox-zero --skill wait
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wait
Source: https://github.com/elie222/inbox-zero/tree/main/.claude/skills/wait
Command: npx skills add https://github.com/elie222/inbox-zero --skill wait

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When automating workflows, you sometimes need to pause execution for a fixed amount of time before continuing, such as waiting for a process to finish or spacing out actions. This Skill provides a simple way to delay execution by a user-specified number of seconds or minutes.

Core Features & Use Cases

  • Timed Pause: Waits for a user-specified duration in seconds or minutes using the shell sleep command.
  • Foreground Execution: Runs the sleep in the foreground so execution genuinely blocks until the duration elapses.
  • Use Case: You ask the assistant to wait 5 minutes before retrying a check on a long-running build, and it pauses for exactly that duration before continuing.

Quick Start

Ask the assistant to wait 30 seconds before continuing with the next step.

Frequently Asked Questions about wait

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I pause a script or command for a set number of seconds?

Use the sleep command followed by the duration, such as sleep 30 for thirty seconds. This Skill accepts a user-specified duration in seconds or minutes and runs sleep in the foreground.

How do I wait for minutes instead of seconds in a shell?

Specify the duration in minutes when invoking the wait, and it converts to the appropriate sleep duration. For example, asking to wait 5 minutes pauses execution for 300 seconds.

Does the wait run in the background?

No, the sleep command runs in the foreground so execution genuinely blocks until the duration elapses. Background execution is explicitly avoided to ensure the pause actually delays subsequent steps.

When should I use a timed wait instead of polling?

Use a timed wait when you know a fixed delay is sufficient, such as spacing out retries. For conditions with unknown completion times, polling or event-based checks are more reliable than a fixed sleep.