voidvec/drogon-claude-plugin/drogon-create-controller

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 控制器时,生成 .h + .cc(HttpSimpleController / HttpController / WebSocketController 三选一),含路径前缀、`{N}` 路径参数与自动注册纪律。

Install

npx vskill@latest install voidvec/drogon-claude-plugin/drogon-create-controller

SKILL.md

The same SKILL.md was published earlier as voidvec/drogon-claude-plugin/drogon-create-controller.

drogon-create-controller

生成 drogon 控制器代码(.h + .cc),支持 HttpSimpleController、HttpController、WebSocketController 三种类型。

使用场景

当需要创建一个新的 drogon 控制器时,使用此技能快速生成符合 drogon 约定的代码文件。

输入参数

  • controller_type: 控制器类型(simple、http、restful、websocket)
  • class_name: 控制器类名(PascalCase)
  • namespace: 命名空间(可选,如 myapp)。drogon_ctl create controller 没有 --namespace 选项,任何 - 开头的多余参数会让命令直接报参数错误且不生成文件(源码 create_controller.cc:28-59 的参数白名单);命名空间只能并入类名写成 myapp::MyCtrl(:: 前缀会生成真正的嵌套 namespace,源码 create_controller.cc:103-115)
  • resource: 资源名(可选,仅当 controller_type=restful 时有效)

输出

  1. 执行 drogon_ctl create controller 命令
  2. 生成控制器代码文件——文件名是类名里 :: 替换为 _,写在当前工作目录(myapp::MyCtrl → myapp_MyCtrl.h / myapp_MyCtrl.cc),没有 `controllers/` 子目录(源码 create_controller.cc:349-354)
  3. 说明生成的文件位置和使用方法

示例

/drogon-create-controller controller_type=simple class_name=myapp::MyCtrl

生成文件:

  • myapp_MyCtrl.h
  • myapp_MyCtrl.cc

参考文件

详细实现指南见 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-create-controller/badge)](https://verified-skill.com/skills/voidvec/drogon-claude-plugin/drogon-create-controller)

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