cnb-api

Operates CNB platform resources including issues, pull requests, CI logs, and attachments via CLI commands.

3|1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/wopal-cn/wopal-space-ontology --skill cnb-api-wopal-cn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cnb-api
Source: https://github.com/wopal-cn/wopal-space-ontology/tree/main/skills/cnb-api
Command: npx skills add https://github.com/wopal-cn/wopal-space-ontology --skill cnb-api-wopal-cn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with the CNB platform requires repetitive manual navigation through web UIs to manage issues, pull requests, labels, assignees, and CI results. This Skill provides direct CLI commands so an AI agent can read and write CNB resources without leaving the development workflow. ## Core Features & Use Cases - Issue Management: Get details, list and post comments, open/close issues, manage labels and assignees, and upload files or images to issues. - Pull Request Operations: Inspect PR details, file changes, commits, reviews, and CI status, plus retrieve CI failure logs and timing analysis for bottleneck diagnosis. - Attachment Handling: Upload and fetch files and images attached to issues and PRs, with automatic Issue/PR number detection from environment variables. - Use Case: While reviewing a failing PR, ask the agent to fetch the CI failure logs with cnb pulls get-ci-logs, analyze the error, and post a comment summarizing the root cause—all without opening a browser. ## Quick Start Ask the agent to show the details and latest comments of the current pull request using the cnb pulls commands.

Frequently Asked Questions about cnb-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage CNB issues from the command line?

Use cnb issues commands to get details, list and post comments, open or close issues, and manage labels and assignees. The issue number is automatically detected from environment variables, so no extra parameters are needed for the current issue.

How to get CI failure logs for a CNB pull request?

Run cnb pulls get-ci-logs to retrieve failure logs for the current PR, optionally passing a build number with --sn. You can also use cnb pulls get-ci-timing to analyze CI duration and identify bottlenecks.

Can cnb CLI operate on issues or PRs in other repositories?

The quick commands only operate on the current repository's current Issue or PR. For cross-repository or cross-number operations, explore the full API via cnb --help and the module-level help commands.

How do I upload files or images to a CNB issue comment?

Use cnb issues upload-file --file <path> for attachments or cnb issues upload-image --file <path> for images. Equivalent commands exist for pull requests under cnb pulls, and retrieval uses get-files or get-imgs.

Why should multi-line comment text use single quotes in cnb commands?

Single quotes prevent shell interpretation of special characters in multi-line text, reducing the risk of command injection when passing comment bodies to cnb issues comment or cnb pulls comment.