northseadl/norix-skills / cnb-cool-integration
cnb-cool-integration
Verified针对 cnb.cool 的云原生构建(CNB Build):生成/修改 .cnb.yml 流水线、触发规则、 构建环境、runner 资源、缓存、环境变量、手动触发与调试。 在接入、迁移、优化或排查 CNB 构建配置时使用。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.7 KB |
| agents/openai.yaml | config | 350 B |
| references/cache.md | markdown | 1.4 KB |
| references/cnb-yml.md | markdown | 1.3 KB |
| references/debug.md | markdown | 555 B |
| references/docker-and-runner.md | markdown | 2.2 KB |
| references/env.md | markdown | 876 B |
| references/file-reference.md | markdown | 1.4 KB |
| references/intro.md | markdown | 1.5 KB |
| references/recipes.md | markdown | 1.5 KB |
| references/trigger-rule.md | markdown | 1.1 KB |
| references/web-trigger.md | markdown | 1.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`
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |