Preface¶
Modifying SQL jobs, querying run logs, and uploading dependent JARs on Oceanus typically involves clicking through the console or constructing OpenAPI calls manually. Delegating these tasks to a general Agent often leads to three types of issues: guessing commands and parameters, embedding keys in conversations or scripts, and lacking confirmation for write operations like creating or stopping. The following introduces tencentcloud-oceanus-ops on SkillHub, which consolidates Oceanus workspace operations into a unified Python CLI and defines trigger scopes, operation classifications, and draft publication gates within the Skill protocol.
What is this¶
tencentcloud-oceanus-ops is an intelligent operations skill package (following the generic SKILL.md format) for Tencent Cloud Stream Computing Oceanus. Public metadata indicates the maintainer is oceanus-team and the license is Apache-2.0.
Its positioning can be summarized as follows: users describe their intent in natural language, and the Agent executes commands under scripts/oceanus_ops.py according to Skill guidelines. Under the hood, it calls the Oceanus OpenAPI via TC3-HMAC-SHA256; credentials are read only from environment variables and are not written into command parameters. This capability is described in a dedicated section of the Tencent Cloud product documentation (see sources at the end).
Core Features¶
The following capabilities are derived from official Skill descriptions and Tencent Cloud documentation, categorized by module.
Job Development and Publishing¶
- Create and configure SQL / JAR jobs; edit drafts, perform SQL syntax checks, and publish job configuration versions.
Job Runtime¶
- Start and stop jobs; trigger Savepoints; view job details.
Workspace and Resources¶
- Folders: Create, move, rename, and delete to organize the job tree.
- Dependency Resources: Upload and version JARs and configuration files; query the dependency tree.
- Metadata: Browse catalogs, databases, and tables; query regions, workspaces, clusters, and workspace variables.
Observability¶
- Query job events, run logs (CLS / ES), COS log files, and download links.
Explicitly Out of Scope¶
Items not handled as listed in the Skill boundary description include: cluster lifecycle (creation/scaling/deletion), container or Pod troubleshooting, other engines like EMR/DLC, and general cloud resources such as CVM/VPC/billing. General cloud tasks without an Oceanus context should not trigger this Skill.
Installation and Activation¶
Environment Requirements¶
- Python 3.8+, using only the standard library (the
requirements.txtin the Skill assets currently has no third-party dependencies). - Tencent Cloud CAM keys are injected via environment variables (do not paste keys in conversations).
export TENCENTCLOUD_SECRET_ID="Your SecretId"
export TENCENTCLOUD_SECRET_KEY="Your SecretKey"
# Only needed for temporary credentials
export TENCENTCLOUD_SECURITY_TOKEN="Temp Token"
For macOS / zsh persistence examples, refer to the Tencent Cloud documentation: you can append the above variables to ~/.zshenv and then run source ~/.zshenv.
Installing from SkillHub¶
Community page: https://skillhub.cn/skills/tencentcloud-oceanus-ops. SkillHub API entry (official address provided by the user): https://api.skillhub.cn/u_f4712daa/tencentcloud-oceanus-ops.
secure-skills-cli (both SkillHub and the 360 Skill Center provide the same instruction):
npx secure-skills-cli add tencentcloud-oceanus-ops
WorkBuddy: Open “Experts · Skills · Connectors > Skills > SkillHub”, search for tencentcloud-oceanus-ops, and click install.
CodeBuddy: Search for and download the Skill archive from SkillHub, extract it, and import it via “Settings > Skills > Import Skill”.
Tencent Cloud documentation states: any Agent supporting Skill loading can use it. Currently, installation via SkillHub into CodeBuddy or WorkBuddy is recommended. Installation differences for Cursor, Codex CLI, and Claude Code are not separately listed in the verified materials; you can place the skill package according to the generic Skill directory conventions of each product. The aforementioned environment variables must still be configured before activation.
Typical Usage¶
CLI Entry Point¶
The Skill requires the Agent to must execute real commands via the following entry point, rather than using tccli, kubectl, or custom scripts as substitutes:
python scripts/oceanus_ops.py <command> [args]
Every command must include --region; if the user does not specify one, the Skill convention defaults to ap-guangzhou (Chinese region names like “Guangzhou” are also accepted). Common parameters include --workspace_id, --cluster_id, --job_type (1=SQL, 2=JAR), -o json|table|text. Mutation operations require --confirm.
Example (query type, refer to references/command-catalog.md for specific subcommands):
python scripts/oceanus_ops.py describe_workspaces --region ap-guangzhou -o json
Natural Language Job Development (Official Walkthrough)¶
The process provided in Tencent Cloud documentation is as follows:
- Reference the Skill in the conversation and describe the requirement in one sentence, for example: “In the Default workspace in Guangzhou, create a job to sync a MySQL order table to Doris, using workspace variables prefixed with ORDER for connection information replacement.”
- The Agent generates a SQL draft according to the Skill’s internal playbooks (e.g.,
references/playbooks/create-sql-job.md). - After manual confirmation that the draft is correct, instruct the Agent to proceed to the publication flow.
In production environments, do not expose connection strings and passwords in plaintext within conversations or SQL files; it is recommended to manage Sink/Source using hidden variables or Catalog in the console.
Operation Classification (Agent Protocol)¶
| Type | Examples | Rules |
|---|---|---|
| Read | describe_* |
Can be executed directly |
| Write (Draft) | modify_draft, check_sql |
Can be executed directly, no --confirm needed |
| Mutation | create_job, run_jobs, upload_resource, etc. |
Requires --confirm or explicit user instruction |
| Destructive | stop_jobs, delete_folders |
Requires clear intent + --confirm; explain impact before execution |
Draft publication is independent of --confirm: after create_job_config produces a draft summary, the user must explicitly agree (e.g., “Confirm publish”) before proceeding; unless the user explicitly says “skip review” etc., the Agent must not use --skip_draft_confirm.
Applicable Scenarios and Notes¶
Who is it for
- Developers and operations personnel already using Oceanus who wish to use an Agent for job CRUD, dependency uploads, and log/event troubleshooting.
- Teams requiring more controllable approval and credential isolation than “directly letting the Agent call OpenAPI” (Tencent Cloud documentation compares the four-level approval, draft gating, and environment variable isolation).
Usage Notes
- Credentials: Use environment variables only; the Skill prohibits leaking
TENCENTCLOUD_*viaecho/printenvor similar methods. - Permissions: CAM policies must cover the Oceanus operations listed in the documentation; using STS temporary credentials is recommended for production environments.
- Misoperation Protection: Mutation and destructive operations have
--confirmand draft confirmation; operations should still be performed under the correct workspace and region. - Trigger Words: Job, workspace, dependency, log, or resource ID patterns like
space-*,cluster-*,cql-*will trigger the Skill; pure CVM/COS/TKE tasks should not go through this Skill.
The SkillHub community classifies this skill as it-ops-security; specific ratings and download counts are subject to the SkillHub page display (the API page provided by the user could not be directly scraped for content at the time of writing).
Conclusion¶
tencentcloud-oceanus-ops solidifies Oceanus workspace operations into an auditable CLI + Agent protocol: clear boundaries, read/write classification, and manual draft review before publication. If you are iterating on SQL/JAR jobs on Oceanus and intend to hand repetitive operations over to an Agent, you can install it from SkillHub and configure the CAM environment variables first.
- SkillHub Skill Page: https://skillhub.cn/skills/tencentcloud-oceanus-ops
- SkillHub API (Official Lead): https://api.skillhub.cn/u_f4712daa/tencentcloud-oceanus-ops
- Tencent Cloud Product Documentation: Managing Jobs Using Oceanus Skill