oss-upload

Upload local files to Tencent COS buckets via coscli for public CDN URLs.

1.2k|100|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/clacky-ai/openclacky --skill oss-upload
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oss-upload
Source: https://github.com/clacky-ai/openclacky/tree/main/.clacky/skills/oss-upload
Command: npx skills add https://github.com/clacky-ai/openclacky --skill oss-upload

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Upload local files to Tencent COS buckets so you can publish assets to a public CDN URL with a single command.

Core Features & Use Cases

  • Upload a single file to a COS bucket and generate a public URL.
  • Upload directories recursively to publish multiple assets at once.
  • Use cases include deploying static assets for websites, sharing assets via a CDN, and updating published content quickly.

Quick Start

Run coscli cp <local-file> cos://<bucket>/<remote-path> to upload and obtain the public URL.

Frequently Asked Questions about oss-upload

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

FAQPage Schema
How do I upload local files to Tencent COS for CDN distribution?

Upload local files to Tencent COS by running coscli cp <local-file> cos://<bucket>/<remote-path>, which publishes your assets to a public CDN URL for immediate access.

Can I upload an entire directory to a COS bucket recursively?

Yes, you can upload directories recursively to a COS bucket using coscli, allowing you to publish multiple static assets or website files at once to generate public CDN URLs.

What do I need to configure before uploading assets to Tencent COS?

Before uploading assets to Tencent COS, you need coscli configured at ~/.cos.yaml, and you must know your bucket name, region, endpoint, and the resulting public URL structure.

Does this approach work for deploying static website assets?

Yes, uploading static website assets to Tencent COS with coscli works for both individual files and entire directories, generating public CDN URLs suitable for website deployment.

Why do I need to specify the bucket name and region when uploading to COS?

Specifying the bucket name and region when uploading to COS is required because coscli uses these details alongside your ~/.cos.yaml configuration to route files and construct the correct public CDN URL.

What is the best way to generate a public URL for a local file using coscli?

The best way to generate a public URL for a local file is to use coscli cp to upload it to a Tencent COS bucket, which publishes the asset to a publicly accessible CDN endpoint.