Agent skill

Cnb

by h4dex in h4dex/opc-nexus

CNB(cnb.cool)云原生构建平台操作:Git 推送、.cnb.yml CI 配置、CNB OpenAPI(Release/Issue/PR)。当需要推送代码到 CNB 远端、修改 CI 流水线、发布 Release 或调用 CNB API 时使用。

MITAuto-check passedBackend & APIs

Install Cnb

skills CLI
$ npx skills add h4dex/opc-nexus --skill cnb -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install h4dex/opc-nexus cnb --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/h4dex/opc-nexus.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/cnb .claude/skills/cnb && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cnb
GitHub stars
244
Token cost
~624 tokens
SKILL.md length
81 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

CNB(cnb.cool)云原生构建平台操作:Git 推送、.cnb.yml CI 配置、CNB OpenAPI(Release/Issue/PR)。当需要推送代码到 CNB 远端、修改 CI 流水线、发布 Release 或调用 CNB API 时使用。

  • Tasks that involve OpenAPI specifications
  • SKILL.md covers 认证约定, 提交与推送工作流, CI 配置(.cnb.yml) and CNB OpenAPI, plus 1 more section
  • Calls git, npm and curl; reaches api.cnb.cool and cnb.cool

What it does

Cnb is an agent skill from h4dex/opc-nexus. CNB(cnb.cool)云原生构建平台操作:Git 推送、.cnb.yml CI 配置、CNB OpenAPI(Release/Issue/PR)。当需要推送代码到 CNB 远端、修改 CI 流水线、发布 Release 或调用 CNB API 时使用。

Its SKILL.md is about 620 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering OpenAPI specifications. It works with Git, OpenAPI and Android. The repository describes itself as: 开源的企业版的数字员工工作台, OPC-Nexus(One Person Company Nexus)是一款本地优先的桌面 AI Agent 管理器。它为单人公司 / 独立开发者提供统一的 AI 数字员工管理平台 —— 从 Agent 创建、任务编排、多引擎接入,到消息渠道集成、工作流自动化和专家团协作,一站式覆盖。 The licence is MIT.

When your agent uses it

  • Tasks that involve OpenAPI specifications

Example prompts

  • “/cnb”

Requirements

  • Docker

What it can do on your machine

Read from SKILL.md and the folder at commit 0040c25. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • npm
    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.cnb.cool
    • cnb.cool
    • registry.npmmirror.com

    Also links to:

    • docs.cnb.cool

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cnb loads about 624 tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 81 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~624

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from h4dex/opc-nexus at commit 0040c25, republished under its MIT licence (© h4dex). 81 words, ~624 tokens.

Download SKILL.mdSave it as .claude/skills/cnb/SKILL.md (or your agent's skills folder).
name
cnb
description
CNB(cnb.cool)云原生构建平台操作:Git 推送、.cnb.yml CI 配置、CNB OpenAPI(Release/Issue/PR)。当需要推送代码到 CNB 远端、修改 CI 流水线、发布 Release 或调用 CNB API 时使用。

CNB 平台操作指南

本仓库托管于 CNB:https://cnb.cool/senke/innovation/opc-nexus

认证约定

  • Git 远端 origin 已内嵌凭据(用户名 cnb + 访问令牌),存于 .git/config,不在提交文件中
  • 需要令牌时从 remote URL 提取,禁止硬编码到任何被提交的文件:
bash
TOKEN=$(git remote get-url origin | sed -E 's#https://cnb:([^@]+)@.*#\1#')
  • Git 身份:liyingjie <y@senke.com>

提交与推送工作流

每完成一个功能:

bash
npm run typecheck && npm test        # 必须通过
git add <相关文件>
git commit -m "feat: 功能描述"       # 前缀:feat/fix/docs/chore/refactor/test
git push origin master               # 推送到 CNB
  • 提交信息与仓库历史风格一致(见 git log --oneline),一行为主
  • 敏感信息(令牌、密钥、Secret)绝不进入提交内容;渠道凭据走 safeStorage,不落盘明文

CI 配置(.cnb.yml)

仓库根目录 .cnb.yml,文档:https://docs.cnb.cool/zh/build/configuration.html

结构:分支名 → 事件(push / pull_request / tag_push)→ 流水线数组

yaml
master:
  push:
    - name: typecheck-and-test
      docker:
        image: node:22
      stages:
        - name: install
          script: npm ci --registry=https://registry.npmmirror.com
        - name: typecheck
          script: npm run typecheck
        - name: test
          script: npm test

要点:

  • 分支名可用通配:"$" 表示所有分支,"v*" 匹配 tag
  • 每条流水线在独立 Docker 容器中执行;stages 顺序执行,失败即终止
  • 可用 imports 引入密钥仓库中的环境变量(密钥不明文写入 .cnb.yml)
  • 常用事件:push、pull_request、tag_push、api_trigger(手动/API 触发)

CNB OpenAPI

Base URL:https://api.cnb.cool,认证头:Authorization: <TOKEN> 文档:https://api.cnb.cool/swagger.html

仓库路径参数即完整 slug:senke/innovation/opc-nexus

bash
TOKEN=$(git remote get-url origin | sed -E 's#https://cnb:([^@]+)@.*#\1#')
API="https://api.cnb.cool"
REPO="senke/innovation/opc-nexus"

# 查询仓库信息
curl -s -H "Authorization: $TOKEN" "$API/$REPO"

# 创建 Release(先打 tag 并推送)
curl -s -X POST -H "Authorization: $TOKEN" -H "Content-Type: application/json" \
  "$API/$REPO/-/releases" \
  -d '{"tag_name":"v1.0.0","name":"v1.0.0","body":"发布说明"}'

# 列出 Issues
curl -s -H "Authorization: $TOKEN" "$API/$REPO/-/issues?state=open"

# 触发构建(api_trigger 事件)
curl -s -X POST -H "Authorization: $TOKEN" -H "Content-Type: application/json" \
  "$API/$REPO/-/build/start" \
  -d '{"branch":"master","event":"api_trigger"}'

排障

  • 403/401:令牌过期或权限不足 → 到 CNB 仓库「设置 → 访问令牌」重新生成,git remote set-url origin "https://cnb:<新令牌>@cnb.cool/senke/innovation/opc-nexus.git"
  • 推送被 CI 拒绝:本地先跑 npm run typecheck && npm test 复现
  • 构建日志:仓库页「流水线」查看各 stage 输出

© h4dex, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/cnb of h4dex/opc-nexus.

Open the folder on GitHubat commit 0040c25

Compare with similar skills

Cnb next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cnb compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cnb this skillh4dex/opc-nexus244—~624Automated safety check: PassMIT
Graphos Factoryapollographql/skills117—~15kAutomated safety check: PassMIT
Datadog Data Source GeneratorDataDog/terraform-provider-datadog468—~2.7kAutomated safety check: PassMPL-2.0
Docs CIjh941213/my-cc-harness126—~989Automated safety check: NotesNone
Docs CIjh941213/my-cc-harness126—~740Automated safety check: NotesNone
ToolJet Marketplace Plugin BuilderToolJet/ToolJet41k—~2.1kAutomated safety check: PassAGPL-3.0

Similar skills

  • Graphos Factory

    apollographql/skills

    Build and iterate on an Apollo Connectors subgraph for a GraphOS supergraph from a REST API, with or without an OpenAPI or Swagger spec, in a dedicated git workspace that records what the API…

    117 GitHub stars~15k tokensUpdated today
    Backend & APIsAuto-check passed
  • Datadog Data Source Generator

    DataDog/terraform-provider-datadog

    Official

    Generates a Datadog Terraform provider data source from an OpenAPI operation with tfgen and opens a review-ready GitHub PR with a risk scan and testing guide.

    468 GitHub stars~2.7k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Docs CI

    jh941213/my-cc-harness

    Scaffold a docs-as-code CI/CD pipeline + docs drift detection — link check, OpenAPI lint/breaking gate, mermaid validation, docs freshness check, CHANGELOG automation, docs.yaml manifest.

    126 GitHub stars~989 tokensUpdated 2 mo ago
    DevelopmentAuto-check: notes
  • Docs CI

    jh941213/my-cc-harness

    docs-as-code CI/CD 파이프라인 스캐폴딩 + 문서 드리프트 감지 — 링크 체크, OpenAPI lint/breaking 게이트, mermaid 검증, 문서 신선도 검사, CHANGELOG 자동화, docs.yaml 매니페스트.

    126 GitHub stars~740 tokensUpdated 2 mo ago
    DevelopmentAuto-check: notes
  • Turns an API description, such as an OpenAPI file or a Postman collection, into a connector plugin for ToolJet's marketplace and checks it with the repo's validator.

    41k GitHub stars~2.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • Step Parts

    earthtojake/text-to-cad

    Find, evaluate, and download common purchasable CAD parts from step.parts, including named off-the-shelf actuators, servos, motors, electronics boards, connectors, screws, bolts, nuts, washers…

    18k GitHub starsUsed in 1 repo~1.5k tokens
    Backend & APIsAuto-check passed

More from h4dex/opc-nexus

  • Android

    h4dex/opc-nexus

    Operate the Android phone assigned to this OPC-Nexus employee

    244 GitHub stars~382 tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Cnb

What does Cnb do?

CNB(cnb.cool)云原生构建平台操作:Git 推送、.cnb.yml CI 配置、CNB OpenAPI(Release/Issue/PR)。当需要推送代码到 CNB 远端、修改 CI 流水线、发布 Release 或调用 CNB API 时使用。. Cnb is an agent skill from h4dex/opc-nexus.

When should I use Cnb?

Cnb fits situations like: tasks that involve OpenAPI specifications.

How do I install Cnb in Claude Code?

Run `npx skills add h4dex/opc-nexus --skill cnb -a claude-code`. Or copy the skill folder (.claude/skills/cnb in h4dex/opc-nexus) into .claude/skills/cnb in your project. Claude Code loads it when a task matches its description.

How do I install Cnb in Codex?

Run `npx skills add h4dex/opc-nexus --skill cnb -a codex`. Or copy the skill folder (.claude/skills/cnb in h4dex/opc-nexus) into .agents/skills/cnb in your project. Codex loads it when a task matches its description.

Can I use Cnb in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add h4dex/opc-nexus --skill cnb -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cnb, .gemini/skills/cnb, .github/skills/cnb and .opencode/skills/cnb in your project.

What does Cnb need to run?

Going by SKILL.md and its folder, Cnb needs the command-line tools its instructions call (git, npm and curl). Our summary lists: Docker.

Does Cnb access the network?

SKILL.md names 4 domains. In commands or code: api.cnb.cool, cnb.cool and registry.npmmirror.com; the agent is likely to contact these when it follows the instructions. As links in the text: docs.cnb.cool. This is read from the text; nothing was executed.

Is Cnb safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cnb use?

Cnb is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cnb use?

About 624 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cnb?

Skills that share tags, products or a category with Cnb: Graphos Factory (apollographql/skills, 117 stars), Datadog Data Source Generator (DataDog/terraform-provider-datadog, 468 stars), Docs CI (jh941213/my-cc-harness, 126 stars) and Docs CI (jh941213/my-cc-harness, 126 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cnb?

h4dex (a GitHub user) maintains it in h4dex/opc-nexus, which has 244 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on September 3, 2026.

Source: h4dex/opc-nexus on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.