Pipeline Model Architecture logo

Pipeline Model Architecture

OrganizationPopular
TencentBlueKing
pipeline-model-architecture

理解或修改 BK-CI 流水线 Model、Stage、Container、Element 结构时使用。当用户提到流水线模型、Stage/Job/Task 数据结构、模型扩展、模型校验、版本兼容、YAML 与 Model 转换时优先使用。

Overview

PublisherTencentBlueKing
Repositorybk-ci
Skill namepipeline-model-architecture
Stars
2.5K
Forks
524
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by TencentBlueKing on GitHub. Read the source before you install it.

Installation

Install the Pipeline Model Architecture AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TencentBlueKing/bk-ci.git /tmp/bk-ci
mkdir -p .claude/skills
cp -r /tmp/bk-ci/ai/skills/pipeline-model-architecture .claude/skills/pipeline-model-architecture
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pipeline Model Architecture in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pipeline Model Architecture on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pipeline Model Architecture is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

BK-CI 流水线模型架构

适用场景

  • 理解 Model -> Stage -> Container -> Element 的层级关系
  • 修改流水线模型字段、结构或校验逻辑
  • 新增容器类型、插件类型或模型辅助结构
  • 排查模型序列化、版本兼容、YAML 转换问题
  • 判断一个需求应该落在模型定义、运行时状态还是持久化层

不适用场景

  • 只是调度资源分配、构建机执行或插件运行问题
  • 只是普通后端接口开发,不涉及流水线模型本身
  • 只是数据库脚本设计,不涉及模型结构和模型存储

快速指导

  1. 先把问题归到下面 5 类之一,再继续读对应参考文档:
    • 结构定义:看 reference/1-core-structure.md
    • 持久化与版本:看 reference/2-persistence-versioning.md
    • 运行时、YAML、校验、扩展:看 reference/3-runtime-conversion-extension.md
  2. Model 是流水线配置的核心载体,但不是所有运行时状态的权威来源。运行中的状态、耗时、重试等字段要区分“配置态”和“运行态”。
  3. 触发容器是模型入口,默认位于第一个 Stage 的第一个 Container。很多参数、触发器和启动逻辑都从这里进入。
  4. ContainerElement 都是多态结构。新增类型时,不能只改一个类定义,通常还要一起检查:
    • Jackson 多态序列化配置
    • 前端编排模型
    • 后端转换与校验
    • 运行引擎或 Worker 识别逻辑
  5. 版本兼容和 YAML 转换要一起考虑。模型字段一旦进入存量数据,就不能只从“当前新建流程”角度看。
  6. 如果你修改的是流程控制、执行条件、Finally、Matrix 之类能力,优先确认它影响的是 Stage、Job 还是 Element 层。

高信号规则

  • Model 关心的是“流水线如何定义”,Process 更关心“流水线如何被编排执行”
  • Stage 表达阶段边界和流程控制,Container 更接近 Job,Element 更接近具体任务或插件
  • idstageIdForUser、插件 code、运行时状态字段,不是同一层次的概念,不能混用
  • 只要涉及模型新增字段,就要同时检查序列化、兼容、默认值和历史版本读取

关键陷阱

  • 把运行时字段直接当成持久化配置字段来修改,导致旧构建详情或历史快照异常
  • 只改 Element/Container 类定义,不补多态声明、校验或前端侧映射
  • 忽略 Finally、Matrix、运行条件这些特殊结构,按普通 Stage/Job 处理
  • 只验证 UI 新建流程,没验证历史 Model 回放、重试、版本切换和 YAML 转换
  • 看到问题出现在模型字段,就直接改模型,实际上问题可能在 Process 的执行链或转换层

延伸阅读

  • 核心结构:reference/1-core-structure.md
  • 持久化与版本:reference/2-persistence-versioning.md
  • 运行时、转换与扩展:reference/3-runtime-conversion-extension.md
  • 涉及执行链路归属时:先看 process-module-architecture
  • 涉及 YAML/PAC 时:再看 yaml-pipeline-transfer

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Pipeline Model Architecture AI skill do?

理解或修改 BK-CI 流水线 Model、Stage、Container、Element 结构时使用。当用户提到流水线模型、Stage/Job/Task 数据结构、模型扩展、模型校验、版本兼容、YAML 与 Model 转换时优先使用。

Why use Pipeline Model Architecture on TypingMind?

Because you install it once and use it with any model. Pipeline Model Architecture is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pipeline Model Architecture in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/TencentBlueKing/bk-ci/tree/master/ai/skills/pipeline-model-architecture. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Pipeline Model Architecture?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pipeline Model Architecture?

As many as you like. As long as a model supports skills, you can use Pipeline Model Architecture with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pipeline Model Architecture AI skill free?

It is published on GitHub by TencentBlueKing. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇