Skip to content
CI/CD
Skill

/artifactory-module-architecture

处理 BK-CI 制品上传下载、制品元数据、BkRepo 或磁盘后端存储、文件任务和清理链路时使用。当用户提到构建产物、制品归档、下载令牌、报告文件、BkRepo 集成或制品清理时优先使用。

BOOST
From plugin
bk-ci
2.5k42 skills
Install
$ npx -y skills add tencentblueking/bk-ci --skill artifactory-module-architecture --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/artifactory-module-architecture

Context preview

The summary Claude sees to decide when to auto-load this skill.

处理 BK-CI 制品上传下载、制品元数据、BkRepo 或磁盘后端存储、文件任务和清理链路时使用。当用户提到构建产物、制品归档、下载令牌、报告文件、BkRepo 集成或制品清理时优先使用。

SKILL.md

artifactory-module-architecture.SKILL.md
name: artifactory-module-architecture
description: 处理 BK-CI 制品上传下载、制品元数据、BkRepo 或磁盘后端存储、文件任务和清理链路时使用。当用户提到构建产物、制品归档、下载令牌、报告文件、BkRepo 集成或制品清理时优先使用。

Artifactory 模块架构

适用场景

  • 上传、下载、归档构建产物
  • 管理文件元数据、文件任务和下载令牌
  • 切换或排查 BkRepo / 磁盘存储后端
  • 处理报告文件、自定义目录和流水线产物路径
  • 排查构建完成后的制品后处理

不适用场景

  • 只是商店组件发布问题,不涉及制品存储
  • 只是普通文件路径拼接,不涉及制品语义和存储后端
  • 只是流水线执行问题,不涉及产物归档或下载

快速指导

1. 先判断问题属于哪条主线:

  • 存储模型与路径:看 `reference/1-artifact-storage.md`
  • BkRepo、任务与扩展:看 `reference/2-bkrepo-task-extension.md`

2. `Artifactory` 负责“文件和制品如何被存储与访问”,不是执行引擎本身。 3. 如果问题表现为上传成功但文件找不到,先区分是:

  • 元数据没落库
  • 后端没存成功
  • 路径规则错了
  • 下载令牌或权限错了

4. 存储后端切换或双实现问题,优先确认实际走的是 BkRepo 还是本地磁盘实现。

高信号规则

  • `PROJECT_CODE` / `PROJECT_ID` 通常仍按项目英文标识理解
  • 文件元数据、文件任务和真实后端存储不是同一层
  • BkRepo 与 Disk 是两套后端实现,排查时要先确认命中的实现类
  • 构建完成后的异步处理也会影响制品最终可见性

关键陷阱

  • 只看文件存储后端,不看元数据和任务状态
  • 路径规则变了却没同步影响下载、报告或自定义目录逻辑
  • 只验证上传接口成功,不验证后续查询、下载和清理链路
  • 把商店归档和普通流水线制品归档混成同一问题

延伸阅读

  • 存储基础:`reference/1-artifact-storage.md`
  • BkRepo 与任务:`reference/2-bkrepo-task-extension.md`
  • 涉及项目语义时:再看 `project-module-architecture`
  • 涉及商店归档时:再看 `store-module-architecture`
Ships withbk-ci

蓝鲸持续集成平台(蓝盾)

Get the whole plugin

Other skills on bk-ci.

00-bkci-global-architecture
Skill

00-bkci-global-archite…

用于跨模块开发、排查链路归属、判断某个需求应该落在哪个 BK-CI 模块,或需要快速理解流水线全链路协作时使用。单模块修改时优先读取对应模块 skill,而不是停留在这里。

agent-module-architecture
Skill

agent-module-architect…

处理 BK-CI Agent 构建机侧能力时使用,例如守护进程、心跳、Ask 轮询、任务拉起、升级更新和与 Dispatch/Worker 的协作。当用户要改构建机宿主侧行为而不是…

api-interface-design
Skill

api-interface-design

设计 BK-CI API 契约时使用,例如 Resource 路径设计、HTTP 方法选择、请求响应对象、错误码和版本策略。当用户要定义接口而不是实现业务逻辑时优先使用。

auth-module-architecture
Skill

auth-module-architectu…

处理 BK-CI Auth 模块时使用,例如 RBAC 权限校验、用户组与资源管理、IAM 集成、授权迁移和 OAuth2 认证。当用户要改权限平台实现而不是单次权限模型变更时优先使用。

business-knowledge-workflow
Skill

business-knowledge-wor…

获取陌生业务知识并沉淀为 BK-CI skill 或架构文档时使用,例如阅读 iWiki、结合代码交叉验证、提炼模块边界和重写知识文档。当用户要先理解业务再写文档时优先使用。