drogon-gen-coroutine-handler

drogon-gen-coroutine-handler is a skill for Claude Code from voidvec/drogon-claude-plugin. It costs 51 tokens per session (374 once invoked), scanned A, original, MIT.

A generator for Drogon coroutine code, where coroutines let C++ pause while waiting for database, Redis, or HTTP work without blocking the request thread.

In plain words
What is it for?
Use it to create asynchronous handlers, HTTP middleware, ORM calls, or HTTP-client calls in a Drogon project configured with coroutines.
Why use it?
It helps choose the correct coroutine return type and handle waiting, errors, and parameter lifetimes safely.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the drogon plugin — 22 skills, 2 hooks shipped together

Good fit Use it to create asynchronous handlers, HTTP middleware, ORM calls, or HTTP-client calls in a Drogon project configured with coroutines.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/voidvec/drogon-claude-plugin/drogon-gen-coroutine-handler
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 voidvec/drogon-claude-plugin --skill drogon-gen-coroutine-handler
Clone the repo
git clone --depth 1 https://github.com/voidvec/drogon-claude-plugin

Made for: Claude Code.

Or install drogon, the plugin that ships this one along with the rest of its 22 skills, 2 hooks.

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 drogon-gen-coroutine-handler

README.md
[![agentmods](https://agentmods.dev/badge/skills/voidvec/drogon-claude-plugin/drogon-gen-coroutine-handler/github.svg)](https://agentmods.dev/skills/voidvec/drogon-claude-plugin/drogon-gen-coroutine-handler)
Your own site
<a href="https://agentmods.dev/skills/voidvec/drogon-claude-plugin/drogon-gen-coroutine-handler"><img src="https://agentmods.dev/badge/skills/voidvec/drogon-claude-plugin/drogon-gen-coroutine-handler/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 drogon-gen-coroutine-handler

Your own site · 80×15
<a href="https://agentmods.dev/skills/voidvec/drogon-claude-plugin/drogon-gen-coroutine-handler"><img src="https://agentmods.dev/badge/skills/voidvec/drogon-claude-plugin/drogon-gen-coroutine-handler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 374 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.00051 $0.00374
Opus 5.5 $0.00020 $0.00150
Sonnet 5.5 $0.00010 $0.00075
Haiku 4.5 $0.00005 $0.00037

Measured 23d ago against content hash 069c9b3ee94a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

drogon-gen-coroutine-handler 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 23d 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.

skills/drogon-gen-coroutine-handler/SKILL.md · 36 lines

What it actually says

drogon-gen-coroutine-handler

生成 drogon 协程代码:handler、协程中间件(HttpCoroMiddleware)、协程 ORM/Redis/HttpClient 调用。

使用场景

当项目已启用协程(USE_COROUTINE=ON)且需编写异步 handler / 中间件时使用。

输入参数

  • kind: handler / middleware / orm_call / http_call
  • return_type: handler 的返回类型(Task<HttpResponsePtr> / AsyncTask),仅 kind=handler 时有效
  • class_name: 类名(仅 kind=middleware)

输出

  1. 协程代码(正确的返回类型、co_await、try/catch 兜底)
  2. 参数按值传递(裸 handler)或可引用(协程中间件,框架已拷贝)
  3. AsyncTask 的 try/catch 提醒(否则未处理异常 std::terminate)

示例

/drogon-gen-coroutine-handler kind=handler return_type=Task<HttpResponsePtr>
/drogon-gen-coroutine-handler kind=middleware class_name=AuthMiddleware

参考文件

详细实现指南见 references/code-guide.md(含返回类型对照、参数生命周期对照、代码模板、禁止模式)。生成代码前先读取该文件。

Files

What ships with it

1 file 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. 23d ago Changed · +3 tokens per session 069c9b3ee94a
  2. 1mo ago First seen · 36 lines · 48 tokens per session scan A 934c7106fbdc

Subscribe to this mod's changes

drogon-gen-coroutine-handler is a skill published in the GitHub repository voidvec/drogon-claude-plugin (1 stars, last pushed 20d ago), licensed MIT. It adds 51 tokens to every session and 374 once invoked, about $0.0002 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.