Go agent development

From TencentBlueKing/bk-ci · View interactive version

Go agent development is an AI agent skill from the GitHub repository TencentBlueKing/bk-ci. 编写 BK-CI Go Agent 代码时使用,例如 Agent API 调用、任务处理、并发模式、错误处理、日志记录和宿主侧工具开发。当用户要写 Go 构建机侧代码而不是后端 Kotlin 服务时优先使用。

How to use this skill

Skill file

Go Agent 开发

适用场景

不适用场景

快速指导

  1. 这个 skill 关注的是 Go 侧开发习惯和实现方式,不替代 agent-module-architecture 的架构视角。
  2. 写 Go Agent 代码时优先保证稳定性:错误处理、日志、重试、清理和并发边界要先想清楚。
  3. 进程、任务、网络调用、goroutine 生命周期要一起看,不要只改局部函数。
  4. 如果问题是 Agent 整体运行形态、Ask、升级或宿主侧链路,联动看 agent-module-architecture。
  5. 如果问题是调度资源选择,联动看 dispatch-module-architecture。

高信号规则

关键陷阱

延伸阅读

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.