repository-module-architecture

Official

BK-CI repository module architecture guide.

AuthorTencentBlueKing
Version1.0.0
Installs0

System Documentation

What problem does it solve?

本技能提供BK-CI中代码库管理模块的体系架构指南,涵盖对接Git/SVN等代码托管平台、Webhook配置、代码库授权以及触发器处理等核心功能。为开发者实现和扩展代码库相关能力时提供统一的设计原则、模块边界和实现范式。

Core Features & Use Cases

  • 模块划分与职责边界清晰:描述子模块结构、服务层职责与数据访问层的分层关系,便于团队协同开发。
  • 跨平台代码托管的扩展性:覆盖Git、SVN、GitHub、GitLab、TGit、P4等代码库类型及其认证、Webhook与触发器的集成模式。
  • 可扩展的设计范式:引入CodeRepositoryServiceRegistrar等注册器模式,方便新增SCM提供商和实现。
  • 与其他模块的协作机制:定义与Process、Ticket、OAuth等模块的依赖与调用约定,确保流水线能稳定地拉取代码。

Quick Start

  • Review the repository-module-architecture section and the code skeleton under src/backend/ci/core/repository to understand how to add a new SCM/Provider and wire it into the registrar and DAO layers.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: repository-module-architecture
Download link: https://github.com/TencentBlueKing/bk-ci/archive/main.zip#repository-module-architecture

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.