Agent skill · alirezarezvani

boost-asio-pro

Use when writing or reviewing asynchronous C++ networking code with Boost.Asio or standalone Asio — TCP/UDP servers and clients, SSL/TLS, timers, strands, io_context, co_spawn, awaitable, async_read/async_write, asio::spawn, yield_context, or pre-C++20 completion-handler callbacks.

What it needs

About 6k tokens when loaded.

What this skill does

Boost.Asio / standalone Asio Overview Write async C++ networking code that compiles on the user's Boost, not the newest one. Asio's API changed shape three times (classic ioservice → iocontext → C++20 coroutines) and most Asio code on the internet is from the first era, so pick the style from the toolchain first, then follow that style's reference file. References: Boost.Asio · standalone Asio Use this skill whenever async C++ networking code is being written or reviewed — and especially when the target toolchain is old, where coroutine examples simply will not compile. The three worked implementations it references are CI-verified from Boost 1.62 (2016) through 1.90. Step 1: pick the style (do this before writing code) Determine the Boost (or Asio) version and the C++ standard actually in use — findpackage(Boost) output, dpkg -l libboost-dev, brew info boost, CMAKECXXSTANDARD, or ask. Do not assume the newest. Boost C++ std Style Read ------- --------- ------- ------ ≥ 1.77 C++20 Coroutines (coawait + awaitable<T>) — preferred references/coroutines.md ≥ 1.74 C++11–17 Completion handlers (callbacks) — the portable baseline references/pre-cpp20.md ≥ 1.80 C++11–17 Stackful asio::spawn + yieldcontext (links Boost.Coroutine — not header-only) references/pre-cpp20.md 1.62–1.65 C++11 Classic ioservice / strand.wrap / expiresfromnow references/classic-boost.md SSL/TLS in any style: references/ssl.md. CMake for any style: references/build.md. iocontext, makestrand, bindexecutor, steadytimer, signalset, asyncread/asyncwrite/asyncreaduntil, buffers and resolver are library features — identical in the coroutine and callback styles. Only the suspension mechanism differs. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills alirezarezvani/boost-asio-pro--596934

View the source on GitHub

Browse the @skills marketplace