Introduction¶
When running applications in the cloud, you often have to integrate object storage and media asset processing separately: COS handles uploads, downloads, and bucket configuration, while Cloud Infinite (CI) manages image processing, content recognition, moderation, and search. While the console can handle these tasks, in a coding Agent conversation, you’d prefer to describe your intent in natural language and have a Skill invoke unified scripts to complete the operations, rather than checking documentation and assembling SDK calls every time.
Below is an introduction to Tencent Cloud COS on SkillHub (ID: @tencent-adm/tencentcloud-cos, current version 1.2.2). Released by Tencent Cloud Object Storage, it is sourced from “enterprise” and tagged with requires_api_key=true; you need to prepare Tencent Cloud API credentials before use.
What is this¶
Tencent Cloud COS is a one-stop Skill that consolidates Tencent Cloud Object Storage (COS) and Cloud Infinite (CI) capabilities into a unified set of Node.js SDK scripts. This allows Agents that support Skills—such as Cursor, Claude Code, and Codex—to read SKILL.md and invoke functions based on specific scenarios.
It solves the problem of needing to complete storage, media processing, moderation, retrieval, and knowledge base operations within an Agent session without manually writing multiple SDK examples in the chat or constantly switching to the console.
Core Features¶
The following capabilities are derived from the official SkillHub description, categorized by scenario.
File Storage & Buckets¶
- Files: Upload, download, list, delete, copy, batch operations, and obtaining signed download URLs.
- Buckets: List/create buckets; query Cloud Infinite and sub-service activation status; read/write ACL, CORS, and tags; query COS configurations such as version control, lifecycle, policy, anti-leech protection, default encryption, static website hosting, and logging.
Images & Content Understanding¶
- Image Processing: Scaling, cropping, rotating, format conversion, text watermarks, quality assessment, super-resolution, smart cropping, and QR code recognition.
- Content Recognition: Describing single image or video content, image tagging, OCR; video ASR/OCR and rough classification.
Documents, Media & Moderation¶
- Documents: Office document to PDF conversion, document preview (image/HTML).
- Media: Video smart cover generation, transcoding, snapshot extraction, and media info retrieval.
- Content Moderation: Violation detection for images, videos, audio, text, and documents.
Audio & Local File Tools¶
- Intelligent Audio: Speech recognition, speech synthesis, audio denoising, and vocal separation.
- File Processing: Hash calculation, compression, and decompression.
Intelligent Retrieval & Datasets¶
- MetaInsight: Dataset and index management; image-to-image search, text-to-image search, text-to-video-clip search, face search, and metadata/multimodal retrieval (documents/images/videos).
- Dataset Analysis: Natural language conditional filtering, aggregation statistics, bucket-to-dataset reverse lookup, image understanding, EXIF; fetching AI tags, ASR, OCR, and rough classification for indexed images or videos by URI (see official example commands below).
- Result Preview: Generate interactive HTML previews for image, video, and document search results.
Knowledge Base¶
One-click knowledge base creation (automatically creates buckets, datasets, and bindings), upload documents to the knowledge base, and perform semantic retrieval on knowledge base content.
Installation & Activation¶
1. Install SkillHub CLI (if not already installed)¶
First, check if the CLI exists:
command -v skillhub && skillhub --version
If not installed, follow the SkillHub installation documentation to perform a complete installation (CLI + default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install this Skill¶
When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, installing to the default ./skills/ might not be recognized.
skillhub install @tencent-adm/tencentcloud-cos --dir <skills directory>
Common Agent skills paths (from SkillHub installation instructions):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also send the following prompt to your AI to have it install according to the SkillHub Installation Documentation:
Please install `@tencent-adm/tencentcloud-cos` based on https://skillhub.cn/install/skillhub.md.
3. Credentials & Activation¶
The Skill is marked as requiring an API Key. The actual secret fields and environment variable naming are subject to the SKILL.md inside the package. Once activated in the Agent, the model will call scripts like cos_api.mjs and ci_api.mjs based on the Skill’s instructions. You simply need to specify the bucket name, object path, or processing requirements in the conversation.
Typical Usage¶
The official page does not expand into a full command manual; the following are verifiable examples explicitly written in the description.
Fetch AI details for indexed media assets (Tags, ASR, OCR, Rough Classification, etc.):
ci_api.mjs get-ai-media-info
Pass the corresponding parameters such as URI according to the Skill documentation; specific sub-commands and parameters are subject to the script descriptions within the skill package.
Knowledge Base Flow (Capability description level): Trigger “Create Knowledge Base → Upload Document → Semantic Retrieval” via the Skill. The underlying layer automatically handles buckets, datasets, and binding relationships, eliminating the need to piece together console operations step-by-step in the chat.
For daily storage tasks (upload, signed links, listing objects) and image processing tasks, simply describe the goal in natural language within the Agent, and the Skill will route it to the COS/CI scripts. After installation, it is recommended to let the Agent read this Skill’s SKILL.md before executing complex workflows (such as MetaInsight indexing or multimodal retrieval).
Scenarios & Notes¶
Who it is for
- Teams already using or planning to use Tencent Cloud COS/CI who want to integrate storage, media, moderation, retrieval, and knowledge base capabilities into their coding Agent workflows.
- Ops and backend developers who need to manage bucket configurations in bulk, generate temporary download links, or perform AI processing and content moderation on images/videos within conversations.
Limitations & Notes
- Relies on Node.js scripts and a Tencent Cloud account;
requires_api_key=true, calls will fail if credentials are not configured. - Some Cloud Infinite capabilities require activating sub-services in the corresponding region; while the Skill supports querying activation status, the console and billing rules prevail.
- The SkillHub category is it-ops-security; the displayed ratings and download counts on the page may change as the store updates. Please refer to SkillHub’s real-time data when selecting.
- For operations involving moderation, compliance, and costs, it is recommended to confirm the bucket, object path, and processing parameters before the Agent executes them to avoid accidental deletion or redundant transcoding.
Conclusion¶
The Tencent Cloud COS Skill compresses the long list of COS and Cloud Infinite capabilities into a single Agent-readable Skill. It is suitable for consolidating “storing files, processing media, and building knowledge bases” from scattered SDK calls into one-time tasks within a conversation. To install or view update notes, please visit the SkillHub page:
- https://www.skillhub.cn/skills/tencent-adm/tencentcloud-cos
- https://api.skillhub.cn/tencent-adm/tencentcloud-cos