Search

PythonReactSEOPDF
OpenClaw

aliyun-oss

阿里云 OSS 对象存储技能。支持文件上传、下载、列出、删除、获取 URL 等操作。 两层架构:Node.js SDK(优先)→ ossutil CLI。

aohoyo0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install aohoyo/aliyun-oss-skill

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

☁️ 阿里云 OSS 技能

通过 Node.js SDK / ossutil CLI 管理阿里云对象存储。


🎯 执行策略(两层降级)

优先级 工具 使用场景
1 Node.js SDK (ali-oss) 优先使用
2 ossutil CLI 备选

🚀 快速开始

1. 安装依赖
# 进入技能目录
cd ~/.openclaw/workspace/skills/aliyun-oss-skill

# 运行自动安装
bash scripts/setup.sh
2. 配置凭证
bash scripts/setup.sh \
  --access-key-id "YOUR_ACCESS_KEY_ID" \
  --access-key-secret "YOUR_ACCESS_KEY_SECRET" \
  --region "oss-cn-hangzhou" \
  --bucket "mybucket"
3. 测试连接
node scripts/oss_node.mjs test-connection

📋 使用示例

上传文件
node scripts/oss_node.mjs upload \
  --local "/path/to/file.txt" \
  --key "uploads/file.txt"
列出文件
node scripts/oss_node.mjs list --prefix "uploads/" --limit 100
下载文件
node scripts/oss_node.mjs download \
  --key "uploads/file.txt" \
  --local "/path/to/save.txt"
删除文件
node scripts/oss_node.mjs delete --key "uploads/file.txt" --force
获取文件 URL
# 公开空间
node scripts/oss_node.mjs url --key "uploads/file.txt"

# 私有空间(1小时有效)
node scripts/oss_node.mjs url --key "uploads/file.txt" --private --expires 3600

🔧 Node.js SDK API

命令 说明
upload --local <path> --key <key> 上传文件
download --key <key> --local <path> 下载文件
list [--prefix <p>] [--limit <n>] 列出文件
delete --key <key> [--force] 删除文件
url --key <key> [--private] [--expires <s>] 获取 URL
stat --key <key> 文件信息
move --src-key <a> --dest-key <b> 移动文件
copy --src-key <a> --dest-key <b> 复制文件
test-connection 测试连接

⚙️ 配置文件

config/oss-config.json

{
  "accessKeyId": "YOUR_ACCESS_KEY_ID",
  "accessKeySecret": "YOUR_ACCESS_KEY_SECRET",
  "bucket": "mybucket",
  "region": "o...

Source information

Source
github
Repository
openclaw/skills
Path
skills/aohoyo/aliyun-oss-skill
Version
—
Commit
a381b7fb2bcee609305bfdd3ec4116d0155443e7
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

☁️ 阿里云 OSS 技能

OpenClaw 技能,用于管理阿里云对象存储(OSS)。

✨ 功能

  • 📤 上传文件
  • 📥 下载文件
  • 📋 列出文件
  • 🗑️ 删除文件
  • 🔗 获取文件 URL(支持私有空间签名)
  • 📊 查看文件信息
  • 📁 移动/复制文件

🚀 快速开始

# 安装依赖
npm install

# 配置凭证
bash scripts/setup.sh --access-key-id "xxx" --access-key-secret "xxx" --region "oss-cn-hangzhou" --bucket "mybucket"

# 测试连接
node scripts/oss_node.mjs test-connection

📖 使用示例

# 上传
node scripts/oss_node.mjs upload --local file.txt --key uploads/file.txt

# 列出
node scripts/oss_node.mjs list --prefix uploads/

# 下载
node scripts/oss_node.mjs download --key uploads/file.txt --local file.txt

# 删除
node scripts/oss_node.mjs delete --key uploads/file.txt --force

# 获取 URL
node scripts/oss_node.mjs url --key uploads/file.txt

🔧 架构

两层降级策略:

  1. Node.js SDK (ali-oss) - 优先使用
  2. ossutil CLI - 备选

📄 许可证

MIT

Extracted content

SKILL.md
# ☁️ 阿里云 OSS 技能

通过 **Node.js SDK** / **ossutil CLI** 管理阿里云对象存储。

---

## 🎯 执行策略(两层降级)

| 优先级 | 工具 | 使用场景 |
|--------|------|----------|
| **1** | Node.js SDK (`ali-oss`) | 优先使用 |
| **2** | ossutil CLI | 备选 |

---

## 🚀 快速开始

### 1. 安装依赖

```bash
# 进入技能目录
cd ~/.openclaw/workspace/skills/aliyun-oss-skill

# 运行自动安装
bash scripts/setup.sh
```

### 2. 配置凭证

```bash
bash scripts/setup.sh \
  --access-key-id "YOUR_ACCESS_KEY_ID" \
  --access-key-secret "YOUR_ACCESS_KEY_SECRET" \
  --region "oss-cn-hangzhou" \
  --bucket "mybucket"
```

### 3. 测试连接

```bash
node scripts/oss_node.mjs test-connection
```

---

## 📋 使用示例

### 上传文件

```bash
node scripts/oss_node.mjs upload \
  --local "/path/to/file.txt" \
  --key "uploads/file.txt"
```

### 列出文件

```bash
node scripts/oss_node.mjs list --prefix "uploads/" --limit 100
```

### 下载文件

```bash
node scripts/oss_node.mjs download \
  --key "uploads/file.txt" \
  --local "/path/to/save.txt"
```

### 删除文件

```bash
node scripts/oss_node.mjs delete --key "uploads/file.txt" --force
```

### 获取文件 URL

```bash
# 公开空间
node scripts/oss_node.mjs url --key "uploads/file.txt"

# 私有空间(1小时有效)
node scripts/oss_node.mjs url --key "uploads/file.txt" --private --expires 3600
```

---

## 🔧 Node.js SDK API

| 命令 | 说明 |
|------|------|
| `upload --local <path> --key <key>` | 上传文件 |
| `download --key <key> --local <path>` | 下载文件 |
| `list [--prefix <p>] [--limit <n>]` | 列出文件 |
| `delete --key <key> [--force]` | 删除文件 |
| `url --key <key> [--private] [--expires <s>]` | 获取 URL |
| `stat --key <key>` | 文件信息 |
| `move --src-key <a> --dest-key <b>` | 移动文件 |
| `copy --src-key <a> --dest-key <b>` | 复制文件 |
| `test-connection` | 测试连接 |

---

## ⚙️ 配置文件

**config/oss-config.json**

```json
{
  "accessKeyId": "YOUR_ACCESS_KEY_ID",
  "accessKeySecret": "YOUR_ACCESS_KEY_SECRET",
  "bucket": "mybucket",
  "region": "o...
README
# ☁️ 阿里云 OSS 技能

OpenClaw 技能,用于管理阿里云对象存储(OSS)。

## ✨ 功能

- 📤 上传文件
- 📥 下载文件
- 📋 列出文件
- 🗑️ 删除文件
- 🔗 获取文件 URL(支持私有空间签名)
- 📊 查看文件信息
- 📁 移动/复制文件

## 🚀 快速开始

```bash
# 安装依赖
npm install

# 配置凭证
bash scripts/setup.sh --access-key-id "xxx" --access-key-secret "xxx" --region "oss-cn-hangzhou" --bucket "mybucket"

# 测试连接
node scripts/oss_node.mjs test-connection
```

## 📖 使用示例

```bash
# 上传
node scripts/oss_node.mjs upload --local file.txt --key uploads/file.txt

# 列出
node scripts/oss_node.mjs list --prefix uploads/

# 下载
node scripts/oss_node.mjs download --key uploads/file.txt --local file.txt

# 删除
node scripts/oss_node.mjs delete --key uploads/file.txt --force

# 获取 URL
node scripts/oss_node.mjs url --key uploads/file.txt
```

## 🔧 架构

两层降级策略:
1. **Node.js SDK** (`ali-oss`) - 优先使用
2. **ossutil CLI** - 备选

## 📄 许可证

MIT

Related skills

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.

OpenClaw

0xarchive

0xfantommenace

Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user...

OpenClaw

1sec-security

cutmob

Install, configure, and manage 1-SEC — an open-source, all-in-one cybersecurity platform (16 modules, single binary) on Linux servers and VPS instances. Use when the user asks to secure a server, install securi...