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.zipInstalls 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 执行细节时优先使用。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
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 的调度配额和队列策略
- 只是修改流水线业务逻辑
快速指导
- 这个 skill 关注的是“构建机宿主侧如何保持在线、接任务、拉起执行器”。
- Agent 主要解决守护、心跳、升级和任务编排,不负责插件本体定义。
- 先按问题类型进入对应参考文档:
- 运行形态与升级:
reference/1-runtime-upgrade.md - Ask、心跳与任务拉起:
reference/2-ask-heartbeat-build.md - 平台支持、运维与排查:
reference/3-platform-ops.md
- 运行形态与升级:
- 如果问题已经进入任务执行细节,切到
worker-module-architecture。 - 如果问题在构建机选择、排队或资源配额,切到
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| agent-module-architecture (this skill) | 2 | 3mo | No flags | Intermediate |
| upgrading-golang | 1 | 5mo | Review | Intermediate |
| gentleman-system | 1 | 7mo | Review | Intermediate |
| gentleman-installer | 1 | 7mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by TencentBlueKing
View all by TencentBlueKing →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.
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.
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.
go-agent-development
TencentBlueKing
Go Agent 开发指南,涵盖 Agent 架构设计、心跳机制、任务执行、日志上报、升级流程、与 Dispatch 模块交互。当用户开发构建机 Agent、实现任务执行逻辑、处理 Agent 通信或进行 Go 语言开发时使用。
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.
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.