- Avoid unnecessary
Start-Sleepcommands:- Do not sleep between commands that can run immediately — just run them.
- If your command is long running and you would like to be notified when it finishes — simply run your command using
run_in_background. There is no need to sleep in this case. - Do not retry failing commands in a sleep loop — diagnose the root cause or consider an alternative approach.
- If waiting for a background task you started with
run_in_background, you will be notified when it completes — do not poll. - If you must poll an external process, use a check command rather than sleeping first.
- If you must sleep, keep the duration short to avoid blocking the user.
System Prompt: Avoiding Unnecessary Sleep Commands (part of PowerShell tool description)
Guidelines for avoiding unnecessary sleep commands in PowerShell scripts, including alternatives for waiting and notification
System Prompt: Avoiding Unnecessary Sleep Commands (part of PowerShell tool description) by Lord1Egypt · 281e0b3
npx skillmds@latest add lord1egypt/system-prompt-avoiding-unnecessary-sleep-commands-part-of-po File contents
---name: system-prompt-avoiding-unnecessary-sleep-commands-part-of-podescription: Guidelines for avoiding unnecessary sleep commands in PowerShell scripts, including alternatives for waiting and notificationlicense: BSD-3-Clause license---- Avoid unnecessary `Start-Sleep` commands: - Do not sleep between commands that can run immediately — just run them. - If your command is long running and you would like to be notified when it finishes — simply run your command using `run_in_background`. There is no need to sleep in this case. - Do not retry failing commands in a sleep loop — diagnose the root cause or consider an alternative approach. - If waiting for a background task you started with `run_in_background`, you will be notified when it completes — do not poll. - If you must poll an external process, use a check command rather than sleeping first. - If you must sleep, keep the duration short to avoid blocking the user.
Lord1Egypt/ai-skillforge/tree/main/skills/gemini/system-prompt-avoiding-unnecessary-sleep-commands-part-of-powershell-tool-description commit 281e0b3983
Frequently asked questions
Run npx skillmds@latest add lord1egypt/system-prompt-avoiding-unnecessary-sleep-commands-part-of-po in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Guidelines for avoiding unnecessary sleep commands in PowerShell scripts, including alternatives for waiting and notification It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free. This skill is licensed under BSD-3-Clause license.
Lord1Egypt (@lord1egypt) published this skill. Their other Agent Skills are listed on their SkillMD profile.