DI

dispatch-module-architecture

Engineering guide for building task scheduling and distribution systems.

Install

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

Installs to .claude/skills/dispatch-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 构建调度时使用,例如构建机选择、队列推进、配额控制、第三方构建机调度、Docker/Kubernetes 调度。当用户要改任务分配策略而不是 Agent/Worker 执行细节时优先使用。
103 charsno explicit “when” trigger
Advanced

Key capabilities

  • Modify task allocation logic for Docker or Kubernetes
  • Manage job queues and resource quotas
  • Troubleshoot task dispatching and scheduling imbalances
  • Extend support for new resource types

How it works

The skill provides architectural guidance on how tasks are assigned to execution environments by managing queues, quotas, and resource selection logic.

Inputs & outputs

You give it
Scheduling strategy or resource allocation query
You get back
Architectural guidance for dispatch logic and resource management

When to use dispatch-module-architecture

  • Configure task scheduling logic for K8s clusters
  • Troubleshoot job queue bottlenecks
  • Implement new resource allocation strategies
  • Optimize build machine selection

About this skill

Dispatch 模块架构

适用场景

  • 修改第三方构建机、Docker 或 Kubernetes 调度逻辑
  • 处理队列、配额、资源分配和构建机选择
  • 排查任务排队、派发失败或调度不均衡
  • 扩展新的调度类型或构建资源类型

不适用场景

  • 只是修改 Agent 守护、心跳或升级
  • 只是修改 Worker 执行、日志或变量回传
  • 只是开发插件或改 task.json
  • 只是修改流水线业务编排

快速指导

  1. 这个 skill 关注的是“任务如何被分配到合适的执行环境”。
  2. Dispatch 的核心不是执行任务,而是做选择、排队、限流和推进。
  3. 先按问题类型进入对应参考文档:
    • 模块结构与核心对象:reference/1-dispatch-foundation.md
    • 队列、配额与调度策略:reference/2-queue-quota-scheduling.md
    • 资源类型扩展与排查:reference/3-resource-extension-debug.md
  4. 如果问题已经到达构建机并开始执行,切到 agent-module-architectureworker-module-architecture
  5. 如果问题是插件本身不兼容运行环境,切到 pipeline-plugin-development

高信号规则

  • Dispatch 解决的是“在哪里跑”和“什么时候跑”
  • 队列、配额、资源类型和监听推进是同一套调度系统的不同面
  • 调度问题要先区分资源不足、策略不匹配还是执行侧异常
  • 新调度类型落地时,数据模型、监听链路和资源约束要一起看

关键陷阱

  • 把 Agent / Worker 执行失败误判成 Dispatch 问题
  • 只看单个服务方法,不看监听、队列和配额的完整推进链
  • 新增调度类型时只补入口,不补限流、状态流转和清理逻辑
  • 调度问题排查只盯代码,不先确认资源池和配额状态

延伸阅读

  • 模块结构与核心对象:reference/1-dispatch-foundation.md
  • 队列、配额与调度策略:reference/2-queue-quota-scheduling.md
  • 资源类型扩展与排查:reference/3-resource-extension-debug.md
  • 如果你在改构建机宿主行为:再看 agent-module-architecture
  • 如果你在改任务执行:再看 worker-module-architecture

When not to use it

  • Modifying Agent heartbeat or upgrade logic
  • Modifying Worker execution or log handling
  • Developing pipeline plugins

Limitations

  • Does not address Agent or Worker execution failures
  • Requires analysis of the full progression chain including listeners and queues

How it compares

This skill focuses on the high-level task distribution architecture rather than individual task execution or agent-side implementation details.

Compared to similar skills

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

SkillInstallsUpdatedSafetyDifficulty
dispatch-module-architecture (this skill)13moNo flagsAdvanced
storage-networking67moReviewAdvanced
k8s-helm86moReviewIntermediate
kubernetes-architect64moNo flagsAdvanced

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

storage-networking

pluginagentmarketplace

Master Kubernetes storage management and networking architecture. Learn persistent storage, network policies, service discovery, and ingress routing.

663

k8s-helm

rohitg00

Manage Helm charts, releases, and repositories. Use for Helm installations, upgrades, rollbacks, chart development, and release management.

857

kubernetes-architect

sickn33

Expert Kubernetes architect specializing in cloud-native infrastructure, advanced GitOps workflows (ArgoCD/Flux), and enterprise container orchestration. Masters EKS/AKS/GKE, service mesh (Istio/Linkerd), progressive delivery, multi-tenancy, and platform engineering. Handles security, observability, cost optimization, and developer experience. Use PROACTIVELY for K8s architecture, GitOps implementation, or cloud-native platform design.

636

monorepo-architect

sickn33

Expert in monorepo architecture, build systems, and dependency management at scale. Masters Nx, Turborepo, Bazel, and Lerna for efficient multi-project development. Use PROACTIVELY for monorepo setup,

328

gitops-workflow

sickn33

Implement GitOps workflows with ArgoCD and Flux for automated, declarative Kubernetes deployments with continuous reconciliation. Use when implementing GitOps practices, automating Kubernetes deployments, or setting up declarative infrastructure management.

521

deployment-engineer

sickn33

Expert deployment engineer specializing in modern CI/CD pipelines, GitOps workflows, and advanced deployment automation. Masters GitHub Actions, ArgoCD/Flux, progressive delivery, container security, and platform engineering. Handles zero-downtime deployments, security scanning, and developer experience optimization. Use PROACTIVELY for CI/CD design, GitOps implementation, or deployment automation.

418

Search skills

Search the agent skills registry