Cnb.cool

From bighardperson/computer-science-skills-collection · View interactive version

Cnb.cool is an AI agent skill from the GitHub repository bighardperson/computer-science-skills-collection. Interact with CNB (Cloud Native Build) platform via OpenAPI. Manage organizations, repositories, issues, PRs, merge requests, pipelines, releases, artifacts, workspaces, members, and more. Use `cnb` CLI for CRUD operations. Trigger when user mentions CNB, 云原生构建, or needs to manage CNB resources like

How to use this skill

Skill file

cnb-skill

概括

本Skill提供完整的CNB的Openapi完整交互能力,用户可以使用此skills对CNB上的资源进行操作。

适用场景

当用户描述对CNB上的资源进行操作时,应该使用此skills进行操作。例如:

核心原则

准确性原则

脚本使用指南

第一步:获取帮助信息

在执行任何任务前,必须先运行以下命令获取最新的使用方式:

cnb --help

这将显示所有可用的模块及其工具列表。

第二步:查看具体模块帮助

使用 --module 参数查看特定模块的详细帮助:

cnb --module <模块名> -help

第三步:查看工具详细使用

使用 --module 和 --tool 参数查看工具的详细参数说明:

cnb --module <模块名> --tool <工具名> --help

第四步:执行工具

根据第三步获取的参数说明,执行工具:

cnb --module <模块名> --tool <工具名> --path '{"参数": "值"}' --query '{"参数": "值"}' --data '{"参数": "值"}'

参数说明:

第五步:处理结果

每一个工具调用都会返回一个标准的JSON结构:

header说明

当请求列表时,会在header中包含以下字段说明列表的情况:

从中可以获取到列表的总条数,以及当前页数和每页条数,避免循环请求。

status说明

API 返回标准的 JSON 格式响应。请根据 HTTP 状态码判断请求是否成功:

当本地调用返回的 status 在 200 ~ 299 之间,只需要返回 data 内容给用户。只有当 status >= 300 时,才将 status 和 trace 返回给用户。

资源处理

当尝试下载图片进行图片分析时,遇到图片下载异常时,请使用以下工具进行图片下载!

```bash

node scripts/core/index.js assets get-imgs --help

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.