Skip to content
Back to skills

Condition Based Waiting

ASecurity

Use when completion depends on asynchronous jobs, CI checks, processes, files, services, or other state that changes over time.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agents

Works with

  • terminal

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add ShugokiFable/Ultimate-AI-Starter-Bundle --skill condition-based-waiting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Condition Based Waiting?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Condition Based Waiting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shugokifable-condition-based-waiting/badge)](https://www.skillsdirectory.com/skills/shugokifable-condition-based-waiting)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: condition-based-waiting
description: Use when completion depends on asynchronous jobs, CI checks, processes, files, services, or other state that changes over time.
---

# Condition-Based Waiting

Wait for the **condition**, not an arbitrary sleep duration.

## Pattern

1. Identify the observable success, failure, and terminal states.
2. Poll the authoritative state at a reasonable interval.
3. Stop immediately on success or a terminal failure.
4. Set a bounded timeout and report the last observed state when it expires.
5. For CI or remote jobs, bind polling to the exact run/commit/job identifier so a newer unrelated run cannot satisfy the wait.
6. After terminal success, verify the expected artifact/output exists before continuing.

A fixed sleep is acceptable only when the system exposes no observable progress signal. Never treat timeout as success.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…