Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add patrickserrano/lacquer --skill swift-testing-wait-untilgit clone --depth 1 https://github.com/patrickserrano/lacquerWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/patrickserrano/lacquer/swift-testing-wait-until)<a href="https://agentmods.dev/skills/patrickserrano/lacquer/swift-testing-wait-until"><img src="https://agentmods.dev/badge/skills/patrickserrano/lacquer/swift-testing-wait-until/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/patrickserrano/lacquer/swift-testing-wait-until"><img src="https://agentmods.dev/badge/skills/patrickserrano/lacquer/swift-testing-wait-until.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00065 | $0.00364 |
| Opus 5.5 | $0.00026 | $0.00146 |
| Sonnet 5.5 | $0.00013 | $0.00073 |
| Haiku 4.5 | $0.00006 | $0.00036 |
Grade A, and why
swift-testing-wait-until scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
waitUntil: No Task.sleep in Tests
Wait for the actual state change instead of a fixed delay. Add this
TestHelpers.swift to your test target (the lint rules already exclude
*TestHelpers.swift):
import Foundation
/// Thrown by `waitUntil` when the condition never became true within the timeout.
struct WaitTimeoutError: Error, CustomStringConvertible {
let timeout: Duration
var description: String { "waitUntil timed out after \(timeout)" }
}
/// Polls `condition` until true, throwing on timeout. Runs on the caller's actor
/// (via `#isolation`) so the closure may read `@MainActor` fixtures safely.
func waitUntil(
timeout: Duration = .seconds(2),
pollInterval: Duration = .milliseconds(10),
isolation _: isolated (any Actor)? = #isolation,
_ condition: () -> Bool
) async throws {
let clock = ContinuousClock()
let deadline = clock.now.advanced(by: timeout)
while !condition() {
guard clock.now < deadline else { throw WaitTimeoutError(timeout: timeout) }
try await Task.sleep(for: pollInterval)
}
}
Usage: try await waitUntil { viewModel.isLoaded } instead of
try await Task.sleep(for: .seconds(1)).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 44 lines · 65 tokens per session scan A 65067d09e615
swift-testing-wait-until is a skill published in the GitHub repository patrickserrano/lacquer (5 stars, last pushed yesterday), licensed MIT. It adds 65 tokens to every session and 364 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
swift-testing-wait-until compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| swift-testing-wait-untilpatrickserrano/lacquer | Skill | 5 | yesterday | MIT | A | 65 | Claude Code, Codex |
| write-testsGoldziher/ai-rulez | Skill | 182 | yesterday | MIT | A | 28 | Claude Code |
| testing-conventionsGoldziher/ai-rulez | Skill | 182 | yesterday | MIT | A | 106 | Claude Code, Codex |
| run-testsGoldziher/ai-rulez | Skill | 182 | yesterday | MIT | A | 21 | Claude Code |
| test-runnerGoldziher/ai-rulez | Skill | 182 | yesterday | MIT | A | 24 | Claude Code |
| golang-testingalexastrum/skl | Skill | 11 | 7d ago | MIT | A | 115 | Claude Code |
| golang-stretchr-testifyalexastrum/skl | Skill | 11 | 7d ago | MIT | A | 97 | Claude Code |