一键导入
condition-based-waiting
Wait for a real condition or event, never a blind fixed-duration sleep
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Wait for a real condition or event, never a blind fixed-duration sleep
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | condition-based-waiting |
| description | Wait for a real condition or event, never a blind fixed-duration sleep |
| version | 1 |
| trust | built-in |
A fixed sleep is a guess: too short and it's flaky, too long and it's slow. Wait
for the actual condition that tells you the thing is ready.
sleep to fix flakiness — synchronize on the event (a
barrier, a future, a readiness callback). A sleep that "fixes" a flaky test just
hides the race.Red flag: sleep(5) "to be safe". That's a race waiting to happen — wait on the condition instead.
Catch bad React in your changes — run react-doctor's deterministic scan and fix what it flags
Run a verifiable security scan (vulns, secrets, misconfig) over code you wrote or deps you added, before calling the work done
Drive a real browser verifiably — navigate, snapshot, act BY INDEX, extract; every step provable
Run multi-agent work as ONE provable causal DAG — parallel subagents, an Orchestrate graph, an immutable spec-seed
Author or connect a Model Context Protocol server so an agent gains new tools
Build automated pipelines that gate merges and ship reliably