AG

agent-module-architecture

Provides architectural guidance for the Tencent BlueKing Agent module (Go).

Install

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

Installs to .claude/skills/agent-module-architecture

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 Agent 构建机侧能力时使用,例如守护进程、心跳、Ask 轮询、任务拉起、升级更新和与 Dispatch/Worker 的协作。当用户要改构建机宿主侧行为而不是 Worker 执行细节时优先使用。
108 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Manage agent startup and process lifecycle
  • Configure heartbeat and task polling mechanisms
  • Handle agent and component upgrades
  • Troubleshoot agent-to-dispatch interactions

How it works

The skill focuses on the host-side orchestration of the agent, specifically managing the lifecycle, communication, and system-level tasks.

Inputs & outputs

You give it
Agent configuration or operational issue
You get back
Architecture guidance or troubleshooting steps

When to use agent-module-architecture

  • Modifying agent startup logic
  • Debugging heartbeat mechanisms
  • Implementing agent updates
  • Configuring agent task polling

About this skill

Agent 模块架构

适用场景

  • 修改 Agent 启动、守护和进程管理
  • 处理心跳、Ask 轮询、任务拉起或任务结束流程
  • 修改 Agent 升级、组件升级和构建机环境管理
  • 排查 Agent 与 Dispatch、Worker 的交互问题

不适用场景

  • 只是修改 Worker 内部的任务执行
  • 只是修改插件定义、task.json 或插件发布
  • 只是修改 Dispatch 的调度配额和队列策略
  • 只是修改流水线业务逻辑

快速指导

  1. 这个 skill 关注的是“构建机宿主侧如何保持在线、接任务、拉起执行器”。
  2. Agent 主要解决守护、心跳、升级和任务编排,不负责插件本体定义。
  3. 先按问题类型进入对应参考文档:
    • 运行形态与升级:reference/1-runtime-upgrade.md
    • Ask、心跳与任务拉起:reference/2-ask-heartbeat-build.md
    • 平台支持、运维与排查:reference/3-platform-ops.md
  4. 如果问题已经进入任务执行细节,切到 worker-module-architecture
  5. 如果问题在构建机选择、排队或资源配额,切到 dispatch-module-architecture

高信号规则

  • Agent 是构建机侧编排者,Worker 是执行者
  • 守护、心跳、Ask、升级是理解 Agent 的四个核心切面
  • Agent 改动通常会影响稳定性、在线率和任务领取能力
  • 涉及进程管理和升级时,要优先考虑跨平台差异

关键陷阱

  • 把 Worker 细节问题误判成 Agent 问题
  • 只看单次请求,不看守护和轮询全链路
  • 升级逻辑没考虑回滚、并发和运行中任务
  • 忽略 Linux / Windows / macOS 的行为差异

延伸阅读

  • 运行形态与升级:reference/1-runtime-upgrade.md
  • Ask、心跳与任务拉起:reference/2-ask-heartbeat-build.md
  • 平台支持、运维与排查:reference/3-platform-ops.md
  • 如果你在改 Worker 执行:再看 worker-module-architecture
  • 如果你在改调度与构建机选择:再看 dispatch-module-architecture

When not to use it

  • When modifying worker-side task execution logic
  • When changing plugin definitions or task.json files
  • When adjusting dispatch scheduling quotas

Limitations

  • Does not cover worker-internal task execution
  • Requires awareness of cross-platform behavioral differences

How it compares

It separates host-side orchestration concerns from worker-side task execution details.

Compared to similar skills

agent-module-architecture side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
agent-module-architecture (this skill)23moNo flagsIntermediate
upgrading-golang15moReviewIntermediate
gentleman-system17moReviewIntermediate
gentleman-installer17moReviewIntermediate

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

You might also like

upgrading-golang

chainloop-dev

Upgrades Go version across the entire Chainloop codebase including source files, Docker images, CI/CD workflows, and documentation. Use when the user mentions upgrading Go, golang version, or updating Go compiler version.

17

gentleman-system

Gentleman-Programming

System detection and command execution patterns for Gentleman.Dots. Trigger: When editing files in installer/internal/system/, adding OS support, or modifying command execution.

15

gentleman-installer

Gentleman-Programming

Installation step patterns for Gentleman.Dots TUI installer. Trigger: When editing installer.go, adding installation steps, or modifying the installation flow.

12

go-agent-development

TencentBlueKing

Go Agent 开发指南,涵盖 Agent 架构设计、心跳机制、任务执行、日志上报、升级流程、与 Dispatch 模块交互。当用户开发构建机 Agent、实现任务执行逻辑、处理 Agent 通信或进行 Go 语言开发时使用。

21

goto-remote-command

chinglinwen

Use this skill in the goto/goterm project when an agent needs to execute remote commands over SSH with the goto CLI, debug batch remote execution, preserve raw stdout/stderr/exit status, or update remote-command docs, tests, or behavior.

00

opencode-cli

SpillwaveSolutions

This skill should be used when configuring or using the OpenCode CLI for headless LLM automation. Use when the user asks to "configure opencode", "use opencode cli", "set up opencode", "opencode run command", "opencode model selection", "opencode providers", "opencode vertex ai", "opencode mcp servers", "opencode ollama", "opencode local models", "opencode deepseek", "opencode kimi", "opencode mistral", "fallback cli tool", or "headless llm cli". Covers command syntax, provider configuration, Vertex AI setup, MCP servers, local models, cloud providers, and subprocess integration patterns.

14174

Search skills

Search the agent skills registry