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