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/cnb-yml.md

View on GitHub
# `.cnb.yml`:结构与写法

## 文件位置

- 配置文件必须放在仓库根目录:`.cnb.yml`
- 可以通过 `include` 拆分配置(见 `references/file-reference.md`)

## 两种顶层写法

### 1) 分支 → 事件 → pipelines(推荐)

```yaml
main:
  push:
    - stages:
        - jobs:
            - script:
                - echo "hello"
```

### 2) 直接列出 pipelines(适合复用与批量生成)

```yaml
- branch: main
  event: push
  stages:
    - jobs:
        - script:
            - echo "hello"
```

## 并发与复用规则(务必说明给用户)

- 同一 `branch/event` 下定义多个 pipeline:**并发执行**,且共享同一个构建环境与 runner。
- pipeline 内 stages:**默认串行**(前一个 stage 结束后才会开始下一个)。
- stage 内 jobs:**默认并发**。

## 配置精简(减少层级)

CNB 支持用更短的写法减少 YAML 层级(例如用 YAML merge、stage/job 的简写)。当你要把配置写得更短时,先看 `references/recipes.md` 中的精简示例,避免误用导致语义变化。

## IDE Schema(强烈建议)

在 VS Code / JetBrains 里为 `.cnb.yml` 绑定 JSON Schema,可显著减少拼写错误:

- Schema:`https://docs.cnb.cool/conf-schema-zh.json`

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