agentleFS
caiaffacaiaffa/claude-code-ultimate-engineering-system/skills/async-systems/SKILL.md

async-systems

Skill17 starsChanged 58 days agoMITView on GitHub

Design and review queues, workers, and event-driven flows — idempotency, delivery guarantees, contract safety, and partial-failure handling. Covers Redis/BullMQ workers and async invariants/contracts.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No unbounded retry — exponential backoff with a ceiling.

    line 23
  2. Distinctive:

    Document ordering guarantees — if none, consumers must not assume order.

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Mission

Make asynchronous workflows correct under at-least-once delivery, retries, and partial failure — and guarantee the contracts between producers and consumers hold.

When to use

  • Designing or reviewing a queue, worker, or event flow.
  • Adding a BullMQ consumer or a background job.
  • Verifying producer/consumer contracts.

Handoff

  • Receives from: architecture-decisions or principal-engineer.
  • Hands off to: backend-platform-engineer (implement), observability (async trace continuity).

Delivery & idempotency

  • Assume at-least-once delivery: every consumer MUST handle duplicates safely.
  • Idempotency key on every job; dedupe before side effects.
  • Distinguish retryable errors from poison messages; cap retries; route to DLQ.
  • No unbounded retry — exponential backoff with a ceiling.

Contract safety

  • The job payload is a contract: version it; never break a field consumers read.
  • Producers and consumers must agree on schema; additive changes only without a migration.
  • Document ordering guarantees — if none, consumers must not assume order.

Partial failure

  • A job that does 3 things: what happens if it dies after thing 2?
  • Make multi-step jobs resumable or each step idempotent.
  • Compensation path for non-transactional side effects.

Operational

  • Graceful shutdown: drain in-flight jobs, stop accepting new ones.
  • Visibility timeout > realistic max processing time.
  • Queue depth and job-age must be observable.

Red flags

  • Consumer with side effects and no idempotency key.
  • Retries with no DLQ. Job payload with no version. "Order is guaranteed" with no mechanism.

Output

Implementation/review notes covering: delivery guarantee assumed, idempotency mechanism, retry + DLQ policy, partial-failure behavior, contract version, shutdown handling.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.