YA

yaml-pipeline-transfer

A specialized tool for managing pipeline-as-code conversions and model synchronization.

Install

mkdir -p .claude/skills/yaml-pipeline-transfer && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3487" && unzip -o skill.zip -d .claude/skills/yaml-pipeline-transfer && rm skill.zip

Installs to .claude/skills/yaml-pipeline-transfer

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 YAML 流水线导入导出、YAML 与 Model 双向转换、PAC、模板引用与 YAML 校验时使用。当用户提到 YAML 流水线、PAC、模板化、注释保留、表达式解析或转换调试时优先使用。
105 charsno explicit “when” trigger
Advanced

Key capabilities

  • Convert between YAML pipelines and internal models
  • Manage PAC integration and synchronization
  • Validate YAML syntax and expression parsing
  • Handle template references and expansion

How it works

The skill uses TransferMapper for text-level serialization and ModelTransfer for business-level mapping between YAML and internal data models.

Inputs & outputs

You give it
YAML pipeline definition or pipeline model
You get back
Converted pipeline model or YAML representation

When to use yaml-pipeline-transfer

  • Convert yaml to pipeline model
  • Sync pipeline as code
  • Debug pipeline template references
  • Validate complex pipeline expressions

About this skill

YAML 流水线转换

适用场景

  • YAML 导入为流水线模型
  • 流水线模型导出为 YAML
  • PAC(Pipeline as Code)接入与同步
  • YAML 模板、Step/Job/Stage 模板引用
  • YAML 语法、表达式、注释保留、锚点处理相关问题

不适用场景

  • 只是单纯修改流水线模型结构,不涉及 YAML 表达
  • 只是代码库接入、权限、数据库或执行调度问题
  • 只是某个插件运行逻辑,而不是 YAML 到模型的转换问题

快速指导

  1. 先判断问题属于哪一类,再继续读对应参考文档:
    • 转换主链路:reference/1-transfer-flow.md
    • PAC 与模板:reference/2-pac-template.md
    • 表达式、切面、调试与扩展:reference/3-debug-extension.md
  2. YAML 转换问题通常不是单点问题,要区分:
    • YAML 文本解析
    • YAML 数据模型
    • YAML 到 Model
    • Model 到 YAML
    • 模板展开与 PAC 预处理
  3. 只要改 YAML 字段或结构,就要同时考虑:
    • Model 映射
    • 兼容旧 YAML
    • 导入与导出双向一致性
    • 模板引用和表达式是否受影响
  4. PAC、模板、表达式、切面经常彼此叠加,不要把它们当成完全独立的模块。
  5. 如果问题是“转换后执行不对”,先确认是 YAML 转换层问题,还是 process-module-architecture 的执行链放大了问题。

高信号规则

  • yaml-pipeline-transfer 负责“YAML 如何表示和转换”,pipeline-model-architecture 负责“模型长什么样”
  • TransferMapper 解决序列化、格式化、注释和锚点等文本层问题
  • ModelTransfer 更偏 YAML 与 Model 的业务转换
  • 模板、PAC、表达式和切面属于转换前后会共同影响结果的增强层
  • 改动 YAML 相关能力时,要始终以“双向一致”和“历史兼容”为目标

关键陷阱

  • 只修 yaml2Model,不修 model2Yaml,导致导入导出不对称
  • 只验证普通 YAML,不验证模板、PAC、注释保留和锚点场景
  • 把模型字段问题误判为 YAML 解析问题,或反过来
  • 忽略切面、表达式、模板预处理对最终结果的影响
  • 修改转换规则后,没有回归历史 YAML 和已有模板

延伸阅读

  • 转换主链路:reference/1-transfer-flow.md
  • PAC 与模板:reference/2-pac-template.md
  • 调试与扩展:reference/3-debug-extension.md
  • 涉及模型结构时:再看 pipeline-model-architecture
  • 涉及执行链路归属时:再看 process-module-architecture

When not to use it

  • When modifying pipeline model structures without YAML involvement
  • When troubleshooting code repository access or execution scheduling
  • When debugging specific plugin logic

Limitations

  • Requires maintaining bidirectional consistency between YAML and models
  • Requires validation of templates, PAC, and comments

How it compares

It ensures bidirectional consistency and historical compatibility during YAML-to-model translation, unlike manual conversion.

Compared to similar skills

yaml-pipeline-transfer side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
yaml-pipeline-transfer (this skill)13moNo flagsAdvanced
autonomous-sdd01moNo flagsAdvanced
openspec-onboard106moReviewBeginner
bazel-build-optimization142moNo 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

Search skills

Search the agent skills registry