/cnb-skill:cnb-skillfrom cnb.cool
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 repos, issues, PRs, pipelines, releases, or artifact registries.
Ships in cnb.cool. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
本Skill提供完整的CNB的Openapi完整交互能力,用户可以使用此skills对CNB上的资源进行操作。
当用户描述对CNB上的资源进行操作时,应该使用此skills进行操作。例如:
cnb --help 获取最新的使用方式cnb命令行工具,按照帮助信息执行操作在执行任何任务前,必须先运行以下命令获取最新的使用方式:
cnb --help
这将显示所有可用的模块及其工具列表。
使用 --module 参数查看特定模块的详细帮助:
cnb --module <模块名> -help
使用 --module 和 --tool 参数查看工具的详细参数说明:
cnb --module <模块名> --tool <工具名> --help
根据第三步获取的参数说明,执行工具:
cnb --module <模块名> --tool <工具名> --path '{"参数": "值"}' --query '{"参数": "值"}' --data '{"参数": "值"}'
参数说明:
--module: 必须参数,模块名称--tool: 必须参数,工具名称--path: 可选参数,路径参数,JSON字符串格式--query: 可选参数,查询参数,JSON字符串格式--data: 可选参数,数据参数,JSON字符串格式--help: 可选参数,显示帮助文档每一个工具调用都会返回一个标准的JSON结构:
当请求列表时,会在header中包含以下字段说明列表的情况:
x-cnb-page: 当前页数x-cnb-page-size: 每页条数x-cnb-total: 总条数从中可以获取到列表的总条数,以及当前页数和每页条数,避免循环请求。
API 返回标准的 JSON 格式响应。请根据 HTTP 状态码判断请求是否成功:
当本地调用返回的 status 在 200 ~ 299 之间,只需要返回 data 内容给用户。只有当 status >= 300 时,才将 status 和 trace 返回给用户。
当尝试下载图片进行图片分析时,遇到图片下载异常时,请使用以下工具进行图片下载!
node scripts/core/index.js assets get-imgs --help
scripts/core/config/cag.config.js (opens in a new tab)scripts/core/convertLink.js (opens in a new tab)scripts/core/core.js (opens in a new tab)scripts/core/fetch-response-handler.js (opens in a new tab)scripts/core/index.d.js (opens in a new tab)scripts/core/index.js (opens in a new tab)scripts/core/modules.help.js (opens in a new tab)scripts/core/schemaToJson.d.js (opens in a new tab)scripts/core/schemaToJson.js (opens in a new tab)scripts/core/tools.help.js (opens in a new tab)scripts/core/utils/convert-link.js (opens in a new tab)scripts/core/utils/generate-unique-id.js (opens in a new tab)scripts/modules/activities/get-user-activities-by-date.js (opens in a new tab)scripts/modules/activities/get-user-repo-activity-details.js (opens in a new tab)scripts/modules/activities/top-contributors.js (opens in a new tab)scripts/modules/ai/ai-auto-pr.js (opens in a new tab)scripts/modules/ai/ai-chat-completions.js (opens in a new tab)scripts/modules/assets/delete-asset.js (opens in a new tab)scripts/modules/assets/get-files.js (opens in a new tab)scripts/modules/assets/get-imgs.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub tunoc2c/workbuddy-skill-official --plugin cnb-skill