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/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
```

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