cross-platform-shell-delay-sleep-wait
How to pause/sleep in shell commands on macOS, Linux, and Windows — use this when the agent needs to wait before running the next command.
Skill by mindstone
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mindstone-cross-platform-shell-delay-sleep-wait
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cross-platform-shell-delay-sleep-wait
What's inside
- Skill name
cross-platform-shell-delay-sleep-wait- Description
- How to pause/sleep in shell commands on macOS, Linux, and Windows — use this when the agent needs to wait before running the next command.
- License
- MIT
- Instructions
- 68 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Cross-Platform Shell Delay
When the agent needs to wait for a period of time (e.g., waiting for a port to release, a process to exit, or a file to become available), use the correct delay command for the user's platform.
## Platform Commands
| Platform | Command | Notes |
|----------|---------|-------|
| macOS / Linux | `sleep <seconds>` | POSIX standard; supports decimals (`sleep 0.5`) |
| Windows (cmd.exe) | `timeout /t <seconds> /nobreak` | Built-in; `/nobreak` prevents user from skipping |
| Windows (PowerShell) | `Start-Sleep -Seconds <seconds>` | Native cmdlet; also supports `-Milliseconds` |
## In Chained Commands
Use `&&` to chain a delay before the next command:
**macOS / Linux:**
```bash
sleep 2 && npm run dev
```
**Windows (cmd.exe):**
```cmd
timeout /t 2 /nobreak && npm run dev
```
**Windows (PowerShell):**
```powershell
Start-Sleep -Seconds 2; npm run dev
```
## In Node.js (Cross-Platform)
When Node.js is available (always true in this Electron project), this works on all platforms:
```bash
node -e "setTimeout(() => {}, 5000)"
```
Or inline before another command (use `&&` on macOS/Linux/cmd, `;` in PowerShell):
```bash
node -e "setTimeout(() => process.exit(), 2000)" && npm run dev
```
## In Application Code (TypeScript)
The codebase already uses a standard pattern for async delays:
```typescript
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
await sleep(2000);
```
See `src/main/services/demoModeService.ts` for the canonical example of platform-branching with `process.platform`.
## Platform Detection
Branch on `process.platform` when spawning shell commands:
```typescript
const delay = process.platform === 'win32'
? 'timeout /t 2 /nobreak &&'
: 'sleep 2 &&';
```From mindstone/rebel-system, MIT.
More from mindstone/rebel-system
- 0.520score
extend-mcp-server
mindstone
Guides users through adding new tools or capabilities to an existing connector (MCP server).
SkillAFreshness: AClaude Code +9 - 0.493score
build-custom-mcp-server
mindstone
Helps users connect and use a service in Rebel when it isn't already in the built-in connector catalog.
SkillBFreshness: BClaude Code +9 - 0.450score
multi-perspective-visual-ideation
mindstone
Generate a rich longlist of image ideas by deliberately spinning up multiple contrasting creative perspectives (comic, infographic, storybook, documentary…
SkillCFreshness: CClaude Code +9 - 0.449score
read-mac-stickies
mindstone
Read and search Mac Stickies app content — list, filter by color, search by text, or read specific notes
SkillCFreshness: CClaude Code +9 - 0.447score
Anthropic-skill-packager
mindstone
Packages and validates skills for external distribution (zip files).
SkillCFreshness: CClaude Code +9 - 0.444score
git-commit-changes
mindstone
Guidelines for batching changes and writing safe, atomic git commits
SkillCFreshness: CClaude Code +9 - 0.426score
canvas-design
mindstone
Create beautiful visual art in .png and .pdf documents using design philosophy.
SkillCFreshness: CClaude Code +9 - 0.426score
brand-guidelines
mindstone
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel.
SkillCFreshness: CClaude Code +9 - 0.426score
algorithmic-art
mindstone
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Jun 19, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/mindstone/rebel-system
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from mindstone
- 0.618score
Google Workspace
mindstone
Google Workspace MCP server for Gmail, Calendar, Drive, Docs, Sheets, Slides, Contacts, and more
ConnectorAFreshness: ALocal★ 13↓ 183/wkClaude Code +5 - 0.610score
Nano Banana
mindstone
Nano Banana MCP server — Google Gemini image generation and editing.
ConnectorAFreshness: ALocal★ 13↓ 92/wkClaude Code +5 - 0.606score
Slack
mindstone
Slack MCP server: channels, messages, threads, reactions, users, files, and scheduled messages
ConnectorAFreshness: ALocal★ 13↓ 66/wkClaude Code +5 - 0.597score
Microsoft 365 Teams
mindstone
Microsoft 365 Teams via Graph: list chats, read/send messages, list teams/channels, presence.
ConnectorAFreshness: ALocal★ 13↓ 43/wkClaude Code +5 - 0.588score
Microsoft Office
mindstone
Microsoft Office MCP server: read and edit Word documents, Excel workbooks, and PowerPoint files
ConnectorBFreshness: BLocal★ 13↓ 411/wkClaude Code +5 - 0.585score
QuickBooks Online
mindstone
QuickBooks Online MCP server: invoices, bills, customers, vendors, employees, and accounts
ConnectorAFreshness: ALocal★ 13↓ 26/wkClaude Code +5
Cite this page
cross-platform-shell-delay-sleep-wait skill. Agent Mart. https://agentmart.dev/skills/mindstone-cross-platform-shell-delay-sleep-wait (last updated 2026-10-24)