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/env.md

View on GitHub
# 环境变量:env / imports / exports

## env:定义环境变量

```yaml
env:
  NODE_ENV: production
  BRANCH: "{{ .CNB_BRANCH }}"
```

要点:

- value 支持 string / int / bool。
- 支持模板变量替换:`{{ .CNB_BRANCH }}`、`{{ .CNB_BUILD_NUMBER }}` 等。

## 变量名约束(避免踩坑)

- 变量名必须匹配:`[A-Za-z_][A-Za-z0-9_]*`
- 不能以数字开头
- `CNB_` 前缀保留,建议不要自定义

## imports:从其他仓库导入 env

导入语义与权限/白名单见 `references/file-reference.md`。

```yaml
imports:
  - from: org/private-config
    branch: main
    path: .cnb/env/common.yml
```

## exports:从 job 输出“动态环境变量”

在 job 内写入 `/tmp/exports`,下一步可引用:

```sh
echo 'IMAGE_TAG=v1.2.3' >> /tmp/exports
```

格式要求(按行解析):

- `KEY=VALUE`
- 或 `KEY="VALUE"`

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