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.zipInstalls 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 执行细节时优先使用。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
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 - 只是修改流水线业务编排
快速指导
- 这个 skill 关注的是“任务如何被分配到合适的执行环境”。
- Dispatch 的核心不是执行任务,而是做选择、排队、限流和推进。
- 先按问题类型进入对应参考文档:
- 模块结构与核心对象:
reference/1-dispatch-foundation.md - 队列、配额与调度策略:
reference/2-queue-quota-scheduling.md - 资源类型扩展与排查:
reference/3-resource-extension-debug.md
- 模块结构与核心对象:
- 如果问题已经到达构建机并开始执行,切到
agent-module-architecture或worker-module-architecture。 - 如果问题是插件本身不兼容运行环境,切到
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| dispatch-module-architecture (this skill) | 1 | 3mo | No flags | Advanced |
| storage-networking | 6 | 7mo | Review | Advanced |
| k8s-helm | 8 | 6mo | Review | Intermediate |
| kubernetes-architect | 6 | 4mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by TencentBlueKing
View all by TencentBlueKing →You might also like
storage-networking
pluginagentmarketplace
Master Kubernetes storage management and networking architecture. Learn persistent storage, network policies, service discovery, and ingress routing.
k8s-helm
rohitg00
Manage Helm charts, releases, and repositories. Use for Helm installations, upgrades, rollbacks, chart development, and release management.
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.
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,
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.
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.