GO

go-agent-development

A guide for developing robust Go-based agents, covering API communication, concurrency, and error handling.

Install

mkdir -p .claude/skills/go-agent-development && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4603" && unzip -o skill.zip -d .claude/skills/go-agent-development && rm skill.zip

Installs to .claude/skills/go-agent-development

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

编写 BK-CI Go Agent 代码时使用,例如 Agent API 调用、任务处理、并发模式、错误处理、日志记录和宿主侧工具开发。当用户要写 Go 构建机侧代码而不是后端 Kotlin 服务时优先使用。
104 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Write or modify Go Agent code
  • Handle Agent API communication with the backend
  • Implement task processing and concurrent execution
  • Manage error recovery and logging
  • Develop auxiliary tools for the build machine

How it works

This skill guides Go Agent development by focusing on implementation standards for task execution, communication, and error handling.

Inputs & outputs

You give it
Go Agent code changes for task execution or communication
You get back
Stable and long-running Go Agent functionality on the host

When to use go-agent-development

  • Develop Go build agents
  • Implement agent heartbeat logic
  • Debug agent communication

About this skill

Go Agent 开发

适用场景

  • 编写或修改 Go Agent 代码
  • 处理 Agent 与后端的 API 通信
  • 实现任务处理、并发执行、错误恢复和日志记录
  • 开发构建机侧辅助工具

不适用场景

  • 后端 Kotlin / Java 微服务开发
  • Dispatch 调度策略设计
  • Worker 任务执行细节

快速指导

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

高信号规则

  • Go Agent 代码更偏宿主侧稳定性和长期运行能力
  • 网络调用和后台 goroutine 一旦失控,影响通常比业务逻辑错误更大
  • 日志要能帮助定位问题,而不是只留下表面现象

关键陷阱

  • 只改 happy path,不补错误恢复和资源清理
  • goroutine 启动容易,退出和异常恢复没管
  • 把宿主侧问题和调度 / Worker 问题混在一起

延伸阅读

  • 如果你在看 Agent 架构:再看 agent-module-architecture
  • 如果你在看调度边界:再看 dispatch-module-architecture

When not to use it

  • Backend Kotlin / Java microservice development
  • Dispatch scheduling strategy design
  • Worker task execution details

Limitations

  • Does not cover Agent module architecture
  • Does not cover Dispatch module architecture
  • Does not cover Worker task execution details

How it compares

This focuses on Go-specific development practices for host-side agents, rather than general backend service development or architectural design.

Compared to similar skills

go-agent-development side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
go-agent-development (this skill)23moNo flagsIntermediate
workflow-orchestration-patterns102moNo flagsAdvanced
upgrading-golang15moReviewIntermediate
gentleman-system17moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by TencentBlueKing

View all by TencentBlueKing

project-module-architecture

TencentBlueKing

Project 项目管理模块架构指南,涵盖项目 CRUD、成员管理、项目配置、标签管理、项目迁移。当用户开发项目管理功能、处理项目成员、配置项目属性或实现项目相关逻辑时使用。

612

artifactory-module-architecture

TencentBlueKing

Artifactory 制品库模块架构指南,涵盖制品上传下载、存储后端适配、制品元数据、清理策略、权限控制。当用户开发制品库功能、处理制品存储、配置清理策略或实现制品管理时使用。

419

microservice-infrastructure

TencentBlueKing

微服务基础设施指南,涵盖条件配置、事件驱动架构、服务间通信、国际化与日志等微服务架构的核心基础设施。当用户实现服务间调用、配置多环境、实现异步通信、处理国际化或规范日志输出时使用。

411

frontend-vue-development

TencentBlueKing

前端 Vue 开发规范,涵盖 Vue 2/3 组件开发、Vuex 状态管理、路由配置、组件通信、样式规范、国际化。当用户进行前端开发、编写 Vue 组件、处理状态管理或实现页面交互时使用。

38

unit-testing

TencentBlueKing

单元测试编写指南,涵盖 JUnit5/MockK 使用、测试命名规范、Mock 技巧、测试覆盖率要求、TDD 实践。当用户编写单元测试、Mock 依赖、提高测试覆盖率或进行测试驱动开发时使用。

319

worker-module-architecture

TencentBlueKing

Worker 构建执行器模块架构指南,涵盖插件执行引擎、任务分发、日志上报、制品上传、Worker 生命周期。当用户开发 Worker 功能、实现插件执行、处理任务分发或优化执行器性能时使用。

37

Search skills

Search the agent skills registry