voidvec/drogon-claude-plugin/drogon-gen-coroutine-handler

Claude Code and agent skill by voidvec/drogon-claude-plugin

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

需要编写 drogon 协程 handler / 协程中间件 / 协程 ORM 调用时,生成 Task/AsyncTask 正确用法(裸 handler 参数按值传递)。

Install

npx vskill@latest install voidvec/drogon-claude-plugin/drogon-gen-coroutine-handler

SKILL.md

The same SKILL.md was published earlier as voidvec/drogon-claude-plugin/drogon-gen-coroutine-handler.

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(含返回类型对照、参数生命周期对照、代码模板、禁止模式)。生成代码前先读取该文件。

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/voidvec/drogon-claude-plugin/drogon-gen-coroutine-handler/badge)](https://verified-skill.com/skills/voidvec/drogon-claude-plugin/drogon-gen-coroutine-handler)

Something wrong with this skill or its page? Tell us.