cnb-upload-attachment

Uploads local files to CNB Issues or PRs and returns Markdown attachment links.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When collaborating on the CNB platform, attaching screenshots, logs, or build artifacts to Issue or PR comments requires manual upload steps. This Skill automates the upload and returns a ready-to-paste Markdown link. ## Core Features & Use Cases - Automatic file type detection: Routes image files (png, jpg, gif, svg, webp, ico) to upload-image and other files (zip, pdf, log) to upload-file. - Issue and PR support: Works with both cnb issues and cnb pulls CLI commands. - Markdown link generation: Returns the asset_link or path field formatted as an inline image (![name](url)) or download link ([name](url)) for comments. - Use Case: After capturing a bug screenshot, upload it to the related CNB Issue and embed the returned image link directly in your bug report comment. ## Quick Start Upload the local file screenshot.png to the CNB Issue and give me the Markdown link to paste into a comment.

Frequently Asked Questions about cnb-upload-attachment

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

FAQPage Schema
How do I upload an attachment to a CNB Issue or PR?

Run `cnb issues upload-image --file <path>` or `cnb pulls upload-image --file <path>` for images, and use `upload-file` instead of `upload-image` for non-image files. The command returns JSON containing the attachment URL.

Which command should I use for uploading images vs other files to CNB?

Use `upload-image` for image extensions like png, jpg, jpeg, gif, svg, webp, and ico. Use `upload-file` for all other file types such as zip, pdf, and log files.

How do I embed an uploaded attachment in a CNB comment?

For images, use the Markdown syntax `![filename](attachment URL)` to render an inline image. For regular files, use `[filename](attachment URL)` to create a download link in the comment.

Where is the attachment URL in the cnb upload command output?

The upload command returns JSON. For Issue uploads, read the `asset_link` field; for PR uploads, read the `path` field. Either value is the attachment's access URL.

What file types are supported for CNB attachment uploads?

Image types including png, jpg, jpeg, gif, svg, webp, and ico are supported via upload-image. Any other file type, such as zip archives, PDFs, or log files, can be uploaded via upload-file.