·go-create-chi-handler
</>

go-create-chi-handler

cristiano-pacheco/ai-rules

遵循 GO 模块化架构约定(请求/响应 DTO、用例编排、错误处理、swagger 注释、Fx DI)生成 Chi HTTP 处理程序。在内部/modules/<module>/http/chi/handler/中为需要解码请求、调用用例、映射响应以及通过适当的日志记录和跟踪处理错误的 REST 操作(列表、创建、更新、删除、获取)创建 HTTP 端点处理程序时使用。

7安装·1热度·@cristiano-pacheco

安装

$npx skills add https://github.com/cristiano-pacheco/ai-rules --skill go-create-chi-handler

SKILL.md

Request and response DTOs are defined in internal/modules/ /http/dto/ dto.go.

Handler methods bridge HTTP requests/responses (DTOs from internal/modules/ /http/dto) with use case inputs/outputs.

The handler is typically provided to the router, not exposed as a port.

遵循 GO 模块化架构约定(请求/响应 DTO、用例编排、错误处理、swagger 注释、Fx DI)生成 Chi HTTP 处理程序。在内部/modules/<module>/http/chi/handler/中为需要解码请求、调用用例、映射响应以及通过适当的日志记录和跟踪处理错误的 REST 操作(列表、创建、更新、删除、获取)创建 HTTP 端点处理程序时使用。 来源:cristiano-pacheco/ai-rules。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/cristiano-pacheco/ai-rules --skill go-create-chi-handler
分类
</>开发工具
认证
收录时间
2026-02-17
更新时间
2026-02-18

快速解答

什么是 go-create-chi-handler?

遵循 GO 模块化架构约定(请求/响应 DTO、用例编排、错误处理、swagger 注释、Fx DI)生成 Chi HTTP 处理程序。在内部/modules/<module>/http/chi/handler/中为需要解码请求、调用用例、映射响应以及通过适当的日志记录和跟踪处理错误的 REST 操作(列表、创建、更新、删除、获取)创建 HTTP 端点处理程序时使用。 来源:cristiano-pacheco/ai-rules。

如何安装 go-create-chi-handler?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/cristiano-pacheco/ai-rules --skill go-create-chi-handler 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/cristiano-pacheco/ai-rules

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-17