Skip to content
Agentmart
Submit a tool

cnb-api

CNB 平台交互命令,支持代码仓库、Issue、PR、CI、制品库读写等操作。

Skill by wopal-cn

IndexedMIT★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/wopal-cn-cnb-api

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

CNB 平台交互命令,支持代码仓库、Issue、PR、CI、制品库读写等操作。

Use cases: backend, devops

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/cnb-api

What's inside

Skill name
cnb-api
Description
CNB 平台交互命令,支持代码仓库、Issue、PR、CI、制品库读写等操作。
License
MIT
Instructions
61 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# cnb-api

操作 CNB 平台资源的 CLI 工具。

## 快捷命令

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 upload-file --file 文件路径` — 上传 issue 评论文件
- `cnb issues upload-image --file 图片路径` — 上传 issue 评论图片
- `cnb issues create-upload-file --file 文件路径` — 创建 issue 时上传文件
- `cnb issues create-upload-image --file 图片路径` — 创建 issue 时上传图片
- `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 list-assignees` — 查看处理人
- `cnb pulls upload-file --file 文件路径` — 上传文件
- `cnb pulls upload-image --file 图片路径` — 上传图片
- `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 附件

注意事项:
- **参数自动识别**:快捷命令中的 Issue/PR 编号会自动从环境变量识别,无需额外传递。
- **默认仅需摘要**:默认会精简响应输出结果,添加 `--verbose` 输出完整数据。
- **单引号传参**:当 bash 的参数为多行文本时,使用单引号可减少防止命令注入攻击。
- **快捷命令适用范围**: 快捷命令只能操作当前仓库的当前 Issue/PR,跨仓库或跨编号操作请参考 `更多 API`。
- **关于提及和召唤**: 评论中直接 @npc 会召唤 npc 干活,如果只提及不召唤,应使用反引号包裹 `@npc`。

## 常用链接

在生成链接时请遵循下面的结构:
- Issue: `<host>/<slug>/-/issues/<number>`
- PR: `<host>/<slug>/-/pulls/<number>`

## 更多 API

1. `cnb --help` 查看所有模块
2. `cnb <module> --help` 查看模块下的工具列表
3. `cnb <module> <tool> --help` 查看工具参数

From wopal-cn/wopal-space-ontology, MIT.

More from wopal-cn/wopal-space-ontology

Signals

Stars
3
Forks
1
Open issues
0
Last commit (this folder)
Sep 15, 2026 (1 month ago)
Last release
Oct 24, 2026 (5 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from wopal-cn

Cite this page

cnb-api skill. Agent Mart. https://agentmart.dev/skills/wopal-cn-cnb-api (last updated 2026-10-24)