Hoc async

From openreachtech/hora-skills-ort-core · View interactive version

Hoc async is an AI agent skill from the GitHub repository openreachtech/hora-skills-ort-core. Conventions for writing asynchronous code: how a promise is written, and what becomes of a value that crosses the boundary one makes. Use when writing or awaiting a promise, when making an existing member async, or when a value returned through one stops behaving like itself. Test doubles for async

How to use this skill

Skill file

Shared: Async

Conventions related to writing asynchronous code.

Promise

A value that crosses the boundary a promise makes

Making one member async is not a local change. Every caller becomes async with it, and the

value it hands back now travels through a promise instead of being returned directly — so

properties of that value which nothing used to inspect begin to matter.

What inspects it is the promise itself, and what it looks for is then. A value answering

that lookup with a function is taken for a thenable: the promise calls it as

then(resolve, reject) and settles to whatever that call passes on, so the value is replaced by

something it was never meant to produce.

Nothing reports it. The call lands inside the value's own code carrying arguments it has no

reason to expect, and the failure surfaces wherever that code first reads one of them — a long

way from the await that caused it, and wearing the shape of an ordinary bug.

by producing something — a handler built per key, a member resolved on demand — then is

produced too, and the value becomes a thenable by accident. Answer it as absent, and answer the

symbol keys the same way.

it, so a class that happens to define one is caught in the same way. The rule is about what

crosses the boundary, never about how the value was built.

probed, which is why making a member async is where this is met rather than where the value was

written.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.