async-systems

async-systems is a skill for Codex from kreek/consult. It costs 27 tokens per session (1,046 once invoked), scanned A, original, MIT.

Guidance for designing and reviewing systems that do work in the background or handle many tasks at once. It covers queues, streams, live updates, task cancellation, retries, ordering, and limits on incoming work.

In plain words
What is it for?
Use it when building or reviewing background jobs, message queues, event streams, pub/sub systems, or live updates such as polling, SSE, and WebSockets.
Why use it?
It makes hidden decisions about ownership, task lifetime, overload, and failure handling explicit. This helps diagnose stuck tasks, races, deadlocks, growing memory use, and lost or repeated messages.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when building or reviewing background jobs, message queues, event streams, pub/sub systems, or live updates such as polling, SSE, and WebSockets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kreek/consult/async-systems
Install

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.

Any agent
npx skills add kreek/consult --skill async-systems
Clone the repo
git clone --depth 1 https://github.com/kreek/consult

Made for: Codex.

Wrote 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.

agentmods badge for async-systems

README.md
[![agentmods](https://agentmods.dev/badge/skills/kreek/consult/async-systems/github.svg)](https://agentmods.dev/skills/kreek/consult/async-systems)
Your own site
<a href="https://agentmods.dev/skills/kreek/consult/async-systems"><img src="https://agentmods.dev/badge/skills/kreek/consult/async-systems/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.

agentmods 80×15 button for async-systems

Your own site · 80×15
<a href="https://agentmods.dev/skills/kreek/consult/async-systems"><img src="https://agentmods.dev/badge/skills/kreek/consult/async-systems.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,046 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01046
Opus 5.5 $0.00011 $0.00418
Sonnet 5.5 $0.00005 $0.00209
Haiku 4.5 $0.00003 $0.00105

Measured 1mo ago against content hash 777f91014204, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

async-systems 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 1mo 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.

agents/.agents/skills/async-systems/SKILL.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Async Systems

Iron Law

EVERY ASYNC BOUNDARY NAMES ITS CONTRACT, OWNER, LIFETIME, BACKPRESSURE, AND FAILURE SEMANTICS.

When to Use

  • Designing or reviewing async execution, cross-process message contracts, background work, live updates, streams, brokers, ordering, and backpressure.
  • Investigating races, deadlocks, stuck tasks, starvation, retry exhaustion, dead jobs, lag, poison messages, or delivery issues.

When NOT to Use

  • Request/response API design; use api.
  • Remote-call timeout and retry policy; use error-handling.
  • Metrics, alerts, runbooks; use observability.
  • Transaction isolation; use database.

Rules

  1. For user-facing live updates, start with polling, SSE, or WebSockets. Escalate to Kafka, Kinesis, or Redis Streams only after naming the requirement the simpler transport cannot meet: independent replay, long retention, audit history, offline catch-up, multi-service fanout, consumer-group scaling, partitioned throughput, or durable recovery. Record that requirement with the choice.
  2. Immutable data crosses async boundaries; mutable state has one owning scope. Job payloads carry stable identifiers and immutable inputs, never live session, request, or thread-local state.
  3. Every spawned task belongs to a scope that cancels, awaits, or supervises it, with a deterministic shutdown path.
  4. Every queue, channel, pool, stream, and buffer has a bound and an overflow policy. Blocking work cannot starve latency-sensitive work.
  5. Locks are an escape hatch: short, globally ordered, and never held across I/O, awaits, or user callbacks.
  6. Retried jobs and stream consumers are idempotent, deduplicated, or marked non-retryable with a reason. Retry policy itself belongs to error-handling.
  7. Cross-process jobs, events, and stream records are versioned contracts, with the schema kept in a versioned source of truth. Route contracts that independently deployed participants or retained messages bind to through contract-first.
  8. Every running consumer version can read every message version that a running producer emits or that is still queued, retained, or replayable. A registry's compatibility mode must enforce this. Delivery guarantee, ordering key, retention, replay, ack/offset, DLQ, and poison-message handling are explicit for streams.
  9. Silent async failure is a bug. Exhausted jobs, lag, dropped events, and dead work have visible signals and tests.

Read the full file on GitHub · 87 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 1mo ago Changed · +2 tokens per session 777f91014204
  2. 2mo ago Changed · +7 lines · +2 tokens per session 9f7ad5a09dfb
  3. 2mo ago Changed · -62 lines 115a81e77585
  4. 3mo ago First seen · 142 lines · 23 tokens per session scan A 2165e803a3f1

Subscribe to this mod's changes

async-systems is a skill published in the GitHub repository kreek/consult (1 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 1,046 once invoked, about $0.0001 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-08-31.

Related

async-systems compared with skills from other repositories

async-systems next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
async-systemskreek/consultSkill11mo agoMITA27Codex
contractsramboz/jigSkill65d agoMITA163Claude Code
build-falco-web-appgaelic-ghost/socketSkill113mo agoApache-2.0A42Claude Code
build-giraffe-web-appgaelic-ghost/socketSkill113mo agoApache-2.0A43Claude Code
build-oxpecker-web-appgaelic-ghost/socketSkill113mo agoApache-2.0A44Claude Code
swift-openapi-client-workflowgaelic-ghost/socketSkill113mo agoApache-2.0A73Claude Code, Codex
aspnet-core-service-workflowgaelic-ghost/socketSkill113mo agoApache-2.0A45Claude Code