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/trigger-rule.md
View on GitHub# 触发规则:分支与事件
## 分支匹配(branch)
- 分支名使用 **glob**(而不是正则)匹配:
- `main`
- `feature/*`
- `release/**`
- 特殊分支 `$`:当前分支不匹配任何 glob 时,使用 `$` 的配置作为兜底。
- 同一个分支名可能同时匹配多个 glob:这些 glob 下的 pipelines 会 **并发** 运行。
## 事件(event)
常用事件示例(按需要选择):
- `push`:推送触发
- `pull_request` / `pull_request.update` / `pull_request.target`:PR 相关
- `commit.add`:向已有分支继续追加提交(会注入 `CNB_NEW_COMMITS_COUNT`)
- `branch.create` / `branch.delete`:分支创建/删除
- `web_trigger_<button-id>`:手动触发按钮(见 `references/web-trigger.md`)
- `api_trigger`:API 触发(如果你在用)
- `schedule`:定时触发(如果你在用)
## 推荐写法(复用 pipeline)
用 YAML 锚点与 merge 复用 pipeline 配置,避免重复:
```yaml
.base: &base
docker:
image: cnbcool/default:node
stages:
- jobs:
- script:
- node -v
main:
push:
- <<: *base
```
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 |