Tencent COS: Unified Management of COS and Data Infinite within Agents

Introduction

Object Storage and Cloud Infinite (CI) offer a wide range of capabilities: upload/download, bucket configuration, image and media processing, content moderation, intelligent retrieval, and knowledge bases, each corresponding to a console, SDK, or REST API. Using natural language to perform these operations within Agents like Cursor or Claude Code often requires repeatedly consulting documentation and assembling parameters. The following introduces Tencent COS (@tencent-adm/tencent-cos-skill) on SkillHub, published by Tencent Cloud Object Storage. It consolidates COS and CI capabilities into a unified set of Node.js scripts, allowing Agents to invoke them based on skill instructions.

What is this

Tencent COS is an Agent Skill for one-stop management of Tencent Cloud Object Storage (COS) and Cloud Infinite (CI). The current SkillHub version is 1.2.2, with a source labeled as enterprise and categorized under it-ops-security. The Skill is tagged with requires_api_key=true; usable Tencent Cloud API credentials are required before use. The official entry point is the SkillHub page, and the package coordinates are @tencent-adm/tencent-cos-skill.

Core Features

The following capabilities are derived from the official Skill description, categorized by scenario.

File Storage and Bucket Management

  • Upload, download, list, and delete files; obtain signed download URLs; batch operations and copying.
  • List or create buckets; query the activation status of Cloud Infinite and its various sub-services.
  • Read/write ACL, CORS, and tags; query COS configurations including version control, lifecycle, Policy, anti-leech protection, default encryption, static website hosting, and logging.

Images, Documents, and Media

  • Image Processing: Scaling, cropping, rotation, format conversion, text watermarks, quality assessment, super-resolution, smart cropping, and QR code recognition.
  • Content Recognition: Describe content of single images or videos, image tagging, OCR; video ASR/OCR and rough classification.
  • Document Processing: Office document to PDF conversion, document preview (image/HTML).
  • Media Processing: Smart video cover generation, transcoding, snapshot extraction, and media information retrieval.

Moderation, Audio, and Local File Tools

  • Content Moderation: Violation detection for images, videos, audio, text, and documents.
  • Intelligent Audio: Speech recognition, speech synthesis, audio noise reduction, and vocal separation.
  • File Processing: Hash calculation, compression, and decompression.

Intelligent Retrieval, Datasets, and Knowledge Bases

  • MetaInsight Intelligent Retrieval: Dataset and index management; search by image, search by text, search video clips by text, face search, and metadata & multimodal retrieval (documents/images/videos).
  • Dataset Analysis: Natural language conditional filtering, aggregation statistics, reverse lookup of datasets by bucket, image understanding; EXIF and AI media asset details (see command example below).
  • Result Preview: Generate interactive HTML previews for image, video, and document retrieval results.
  • Knowledge Base: One-click knowledge base creation (automatically creates bucket, dataset, and binding), upload documents to the knowledge base, and semantic retrieval of knowledge base content.

Installation and Activation

SkillHub recommends two methods: installing via CLI, or letting the Agent execute the installation based on documentation.

1. Install SkillHub CLI (if not already installed)

First, check if it is installed:

command -v skillhub && skillhub --version

If not installed, you can run the full installation (CLI + Default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If only the CLI is needed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install the Tencent COS Skill

When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it installs to ./skills/ by default, which the Agent may not be able to recognize:

skillhub install @tencent-adm/tencent-cos-skill --dir <skills directory>

Alternatively, you can provide the following instructions to the Agent to complete the installation according to the SkillHub Installation and Priority Source Configuration:

Please install @tencent-adm/tencent-cos-skill based on https://skillhub.cn/install/skillhub.md.

3. Skills Directories for Various Clients (Excerpt)

Installation paths vary by client. Common locations are listed below (see the official installation documentation for the full list):

Client skills Directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project

After installation, restart or refresh the skill list according to the requirements of the Agent being used. The specific field names for API key configuration should be based on the instructions within the Skill package; officially, it is only marked as requiring an API Key (requires_api_key=true).

Typical Usage

The Skill exposes capabilities through a unified Node.js SDK script. In addition to describing goals in the conversation (e.g., “upload a file to a bucket,” “add a watermark to an image”), the official description provides a comparable subcommand example.

Retrieve AI tags, ASR, OCR, rough classification, and other information for an indexed image or video based on the URI:

ci_api.mjs get-ai-media-info

Specific parameters (such as URI, bucket name, region) need to be filled in according to the help of the script within the Skill or the skill documentation read by the Agent; a Node.js runtime environment must be available on the local machine before execution, and Tencent Cloud authentication configuration must be completed.

The knowledge base workflow is summarized in the introduction as: one-click knowledge base creation → upload documents → semantic retrieval. This is suitable for completing document pipelines on COS/CI and RAG-type tasks within the same skill.

Scenarios and Notes

Who it is for: Developers, operations personnel, and data analysis roles who are already using or planning to use Tencent Cloud COS/CI; those who wish to complete storage, media AI processing, MetaInsight retrieval, or knowledge base operations within an Agent session without writing SDK calls manually every time.

Usage Notes:

  1. Depends on a Tencent Cloud account and API credentials; some CI capabilities require the corresponding sub-services to be activated at the bucket or account level; the Skill supports querying the activation status of Cloud Infinite and its sub-services.
  2. The coverage of capabilities is large, but the actual available subset is still constrained by account permissions, regions, and billing strategies; refer to the Tencent Cloud console and API behavior.
  3. The installation path must align with the current Agent’s skills directory to avoid installation errors resulting in the skill not taking effect.

Reference data shown on the SkillHub page (subject to the page): Rating 100000, Downloads 34653, Installs 865.

Conclusion

Tencent COS consolidates COS storage management, Cloud Infinite AI/media capabilities, MetaInsight, knowledge bases, and other scenarios into a single Skill. It is suitable for driving cloud-side operations via conversation within Agents that support Skills. For installation and coordinates, please refer to SkillHub: @tencent-adm/tencent-cos-skill, https://www.skillhub.cn/skills/tencent-adm/tencent-cos-skill.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye