cnb-api
FreeNo executable scriptsNot checkedCNB 平台交互命令,支持代码仓库、Issue、PR、CI、制品库读写等操作。
by infometa★ 475 GitHub starsAbout this skill
cnb-api
快捷命令
issues:
cnb issues get— 获取详情cnb issues list-comments— 获取评论列表cnb issues comment --body 内容— 评论cnb issues close— 关闭cnb issues open— 打开cnb issues list-labels— 查看标签cnb issues add-labels --labels bug --labels feature— 添加标签cnb issues list-assignees— 查看处理人cnb issues add-assignees --assignees username— 添加处理人cnb issues get-imgs --img-path 图片路径— 获取 issue 图片cnb issues get-files --file-path 附件路径— 获取 issue 附件
pulls:
cnb pulls get— 获取详情cnb pulls list-files— 获取文件变更cnb pulls list-commits— 获取提交记录cnb pulls list-comments— 获取评论列表cnb pulls comment --body 内容— 评论cnb pulls list-labels— 查看标签cnb pulls add-labels --labels ready --labels approved— 添加标签cnb pulls check-status— 查看 CI 状态cnb pulls list-reviews— 查看评审列表cnb pulls submit-review— 发送评审评论或提交评审结论cnb pulls list-assignees— 查看处理人cnb pulls get-ci-logs --sn 构建号(可选)— 获取 CI 失败日志cnb pulls get-ci-timing --sn 构建号(可选)— 分析 CI 耗时瓶颈cnb pulls get-imgs --img-path 图片路径— 获取 PR 图片cnb pulls get-files --file-path 附件路径— 获取 PR 附件
skills:
cnb skills list -p -a codebuddy --json— 列出本地 skills
使用约定
- 默认摘要省流:默认精简输出,加
--verbose输出完整数据。 - 多行用单引号:bash 参数为多行文本时用单引号,降低命令注入风险。
issue/pr 访问说明
编号同 --repo 一样默认从环境变量识别,无需传递;用 --repo <组织/仓库>、--number <编号> 可覆盖。
例如:
cnb issues get --number 66cnb pulls get --repo x/y --number 99
图片与附件解析
正文里图片、附件的下载地址形如:
- 图片
.../-/imgs/<issues|pulls>/<数字 ID>/<key>/<文件名> - 附件
.../-/files/<issues|pulls>/<数字 ID>/<key>/<文件名>
图片路径/附件路径=<issues|pulls>/<数字 ID>/<key>/<文件名>,即 参数 取 <issues|pulls>/ 开头的完整尾段。
常用链接
生成链接时遵循以下结构:
- Issue:
<host>/<slug>/-/issues/<number> - PR:
<host>/<slug>/-/pulls/<number>
正文中引用跨仓库 Issue / PR
- 统一写
<slug>#<number>或完整链接(格式见上)。
更多 API
cnb --help查看所有模块cnb <module> --help查看模块下的工具列表cnb <module> <tool> --help查看工具参数
Install cnb-api in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the cnb-api skill do?
CNB 平台交互命令,支持代码仓库、Issue、PR、CI、制品库读写等操作。
How do I install the cnb-api skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the cnb-api skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic