← 返回 Skills 市场
cinience

Aliyun Oss Ossutil

作者 cinience · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
111
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install aliyun-oss-ossutil
功能描述
Use when installing, configuring, or operating Alibaba Cloud OSS from the command line with ossutil 2.0, based on the official ossutil overview.
使用说明 (SKILL.md)

Category: tool

OSS (ossutil 2.0) CLI Skill

Validation

python skills/storage/oss/aliyun-oss-ossutil/scripts/check_ossutil.py --output output/aliyun-oss-ossutil/validate.txt

Pass criteria: command exits 0 and output/aliyun-oss-ossutil/validate.txt is generated.

Output And Evidence

  • Save command outputs, object listings, and sync logs under output/aliyun-oss-ossutil/.
  • Keep at least one upload or listing result as evidence.

Goals

  • Use ossutil 2.0 to manage OSS: upload, download, sync, and resource management.
  • Provide a unified CLI flow for install, config, credentials, and region/endpoint handling.

Quick Start Flow

  1. Install ossutil 2.0.
  2. Configure AK/SK and default region (ossutil config or config file).
  3. Run ossutil ls to list buckets, then list objects using the bucket region.
  4. Execute upload/download/sync or API-level commands.

Install ossutil 2.0

  • See references/install.md for platform-specific install steps.

Configure ossutil

  • Interactive configuration:
ossutil config
  • Default config file paths:
    • Linux/macOS:~/.ossutilconfig
    • Windows:C:\Users\issuser\.ossutilconfig

Main configuration fields include:

  • AccessKey ID
  • AccessKey Secret
  • Region(example default cn-hangzhou; ask the user if the best region is unclear)
  • Endpoint(optional; auto-derived from region if omitted)

AccessKey configuration notes

Use RAM users/roles with least privilege and avoid passing AK in plain text on command line.

Recommended method (environment variables):

export ALICLOUD_ACCESS_KEY_ID="\x3Cyour-ak>"
export ALICLOUD_ACCESS_KEY_SECRET="\x3Cyour-sk>"
export ALICLOUD_REGION_ID="cn-beijing"

ALICLOUD_REGION_ID can be used as default region; if unset choose the most reasonable region, ask user if unclear.

Or use the standard shared credentials file:

~/.alibabacloud/credentials

[default]
type = access_key
access_key_id = \x3Cyour-ak>
access_key_secret = \x3Cyour-sk>

Command structure (2.0)

  • High-level command example:ossutil config
  • API-level command example:ossutil api put-bucket-acl

Common command examples

ossutil ls
ossutil ls oss://your-bucket -r --short-format --region cn-shanghai -e https://oss-cn-shanghai.aliyuncs.com
ossutil cp ./local.txt oss://your-bucket/path/local.txt
ossutil cp oss://your-bucket/path/remote.txt ./remote.txt
ossutil sync ./local-dir oss://your-bucket/path/ --delete

Recommended execution flow (list buckets first, then objects)

  1. List all buckets
ossutil ls
  1. Get target bucket region from output (e.g. oss-cn-shanghai) and convert it to --region format (cn-shanghai).

  2. When listing objects, explicitly set --region and -e to avoid cross-region signature/endpoint errors.

ossutil ls oss://your-bucket \
  -r --short-format \
  --region cn-shanghai \
  -e https://oss-cn-shanghai.aliyuncs.com
  1. For very large buckets, limit output size first.
ossutil ls oss://your-bucket --limited-num 100
ossutil ls oss://your-bucket/some-prefix/ -r --short-format --region cn-shanghai -e https://oss-cn-shanghai.aliyuncs.com

Common errors and handling

  • Error: region must be set in sign version 4.

    • Cause: missing region configuration.
    • Fix: add region in config file, or pass --region cn-xxx.
  • The bucket you are attempting to access must be addressed using the specified endpoint

    • Cause: request endpoint does not match bucket region.
    • Fix: use endpoint of the bucket region, e.g. -e https://oss-cn-hongkong.aliyuncs.com.
  • Invalid signing region in Authorization header

    • Cause: signature region does not match bucket region.
    • Fix: correct both --region and -e; both must match bucket region.

Credential and security guidance

  • Prefer RAM user AK for access control.
  • CLI options can override config file, but passing secrets on command line has leakage risk.
  • In production, manage secrets via config files or environment variables.

Clarifying questions (ask when uncertain)

  1. Is your target a Bucket or an Object?
  2. Do you need upload/download/sync, or management actions like ACL/lifecycle/CORS?
  3. What are the target region and endpoint?
  4. Are you accessing OSS from ECS in the same region (intranet endpoint may be preferred)?

References

Prerequisites

  • Configure least-privilege Alibaba Cloud credentials before execution.
  • Prefer environment variables: ALICLOUD_ACCESS_KEY_ID, ALICLOUD_ACCESS_KEY_SECRET, optional ALICLOUD_REGION_ID.
  • If region is unclear, ask the user before running mutating operations.

Workflow

  1. Confirm user intent, region, identifiers, and whether the operation is read-only or mutating.
  2. Run one minimal read-only query first to verify connectivity and permissions.
  3. Execute the target operation with explicit parameters and bounded scope.
  4. Verify results and save output/evidence files.
安全使用建议
This skill appears coherent and appropriate for helping with Alibaba Cloud OSS via ossutil. Before using: 1) Verify the referenced download URL and prefer the latest official release; check SHA256/signatures if available. 2) Avoid pasting long-lived root/admin AK/SK; use least-privilege RAM users, temporary credentials, or instance roles. 3) Prefer environment variables or credentials files over passing secrets on the command line. 4) Be aware installation requires sudo and places a binary in /usr/local/bin — review the binary before installing. 5) If you allow autonomous agent invocation, note the agent could run ossutil commands on your behalf; ensure credentials scoped to the intended operations only.
功能分析
Type: OpenClaw Skill Name: aliyun-oss-ossutil Version: 1.0.0 The skill bundle provides a legitimate workflow for managing Alibaba Cloud OSS using the official ossutil 2.0 CLI. It includes standard installation procedures from official Alibaba Cloud domains (gosspublic.alicdn.com), configuration guidance for credentials, and a simple environment validation script (scripts/check_ossutil.py). No evidence of malicious intent, data exfiltration, or unauthorized execution was found.
能力评估
Purpose & Capability
Name/description, SKILL.md, references, and the included check_ossutil.py all align with providing OSS/ossutil CLI guidance and basic validation. The skill requests no unrelated credentials or system resources.
Instruction Scope
Runtime instructions are limited to installing ossutil, configuring AccessKey/region, running ossutil commands, and saving outputs under output/aliyun-oss-ossutil/. The included Python check script only inspects local skill docs, optionally checks for the ossutil binary, and can call `ossutil --version` if asked. There are no instructions to read unrelated system files or to exfiltrate data.
Install Mechanism
There is no automated install spec in the skill bundle (instruction-only). references/install.md shows downloading official ossutil release zips from gosspublic.alicdn.com (Alibaba's public CDN) and moving the binary to /usr/local/bin with sudo. This is expected for installing a standalone CLI but involves downloading and running a remote binary and requires elevated privileges — users should verify the URL, version, and integrity before running.
Credentials
The skill declares no required env vars. SKILL.md sensibly recommends ALICLOUD_ACCESS_KEY_ID, ALICLOUD_ACCESS_KEY_SECRET, and optional ALICLOUD_REGION_ID or using the shared credentials file; these are appropriate and proportional for an OSS CLI helper.
Persistence & Privilege
always is false and the skill does not request persistent agent-wide privileges or modify other skills. The check script writes only to the skill's output path. There is no evidence the skill attempts to enable itself or store external tokens.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install aliyun-oss-ossutil
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /aliyun-oss-ossutil 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Alibaba Cloud OSS (ossutil 2.0) CLI integration. - Provides step-by-step guidance for installing, configuring, and using ossutil 2.0. - Covers key OSS operations: upload, download, sync, and resource management from the command line. - Documents recommended credential and security practices, including environment variable setup. - Includes common command usage patterns and troubleshooting for region/endpoint/config errors. - Supplies a basic workflow for safe and effective CLI operations, emphasizing confirmation and evidence capture.
元数据
Slug aliyun-oss-ossutil
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Aliyun Oss Ossutil 是什么?

Use when installing, configuring, or operating Alibaba Cloud OSS from the command line with ossutil 2.0, based on the official ossutil overview. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 111 次。

如何安装 Aliyun Oss Ossutil?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install aliyun-oss-ossutil」即可一键安装,无需额外配置。

Aliyun Oss Ossutil 是免费的吗?

是的,Aliyun Oss Ossutil 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Aliyun Oss Ossutil 支持哪些平台?

Aliyun Oss Ossutil 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Aliyun Oss Ossutil?

由 cinience(@cinience)开发并维护,当前版本 v1.0.0。

💬 留言讨论