Skip to content

northseadl/norix-skills / cnb-cool-integration

cnb-cool-integration

Verified

针对 cnb.cool 的云原生构建(CNB Build):生成/修改 .cnb.yml 流水线、触发规则、 构建环境、runner 资源、缓存、环境变量、手动触发与调试。 在接入、迁移、优化或排查 CNB 构建配置时使用。

FileKindSize
SKILL.mdskill md3.7 KB
agents/openai.yamlconfig350 B
references/cache.mdmarkdown1.4 KB
references/cnb-yml.mdmarkdown1.3 KB
references/debug.mdmarkdown555 B
references/docker-and-runner.mdmarkdown2.2 KB
references/env.mdmarkdown876 B
references/file-reference.mdmarkdown1.4 KB
references/intro.mdmarkdown1.5 KB
references/recipes.mdmarkdown1.5 KB
references/trigger-rule.mdmarkdown1.1 KB
references/web-trigger.mdmarkdown1.6 KB

references/intro.md

View on GitHub
# 概览:cnb.cool 云原生构建

本 Skill 面向 cnb.cool 的云原生构建能力(以下简称 CNB Build)。核心特点是用声明式的 `.cnb.yml` 描述构建流程,并以 Docker 作为构建运行时。

## 关键概念(最重要的 3 句话)

- `.cnb.yml`:仓库根目录的构建配置文件,用 YAML 声明触发条件与流水线。
- 执行模型:同一分支/事件下的 **pipeline 并发**;pipeline 内 **stage 串行**;stage 内 **job 并发**。
- 构建运行时:每条 pipeline 运行在一个 Docker 容器环境中,可通过 `docker.image` / `docker.build` / `docker.devcontainer` 指定。

## 快速示例(最小可跑)

```yaml
main:
  push:
    - docker:
        image: cnbcool/default:node
      stages:
        - jobs:
            - name: test
              script:
                - node -v
                - npm -v
```

## 能力点速览

- **触发规则**:按分支(glob)与事件(push / pull_request / web_trigger_* 等)触发。
- **缓存与共享**:通过 `docker.volumes` 提供目录缓存与跨 stage 数据传递(copy-on-write)。
- **插件机制**:支持用 Docker 镜像作为插件运行 job(适合封装可复用任务)。
- **资源控制**:`runner.cpus/mem/disk/tags` 控制构建节点资源与调度。
- **调试能力**:支持 login debug 方式“留住”构建节点用于排查。

需要更完整的参数与语义时,优先打开官方文档的「配置文件 / 语法手册 / 触发规则 / 环境变量 / 缓存 / 手动触发 / 登录调试」章节。

slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall