aliyun-oss-upload

阿里云 OSS 文件上传工具,支持上传文件到阿里云对象存储并生成临时访问链接。使用场景:将本地文件上传到 OSS 并获得可分享的临时 URL。需要配置 ALIYUN_OSS_ACCESS_KEY_ID、ALIYUN_OSS_ACCESS_KEY_SECRET、ALIYUN_OSS_ENDPOINT、ALIYUN_OSS_BUCKET 环境变量。

7 stars

Best use case

aliyun-oss-upload is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

阿里云 OSS 文件上传工具,支持上传文件到阿里云对象存储并生成临时访问链接。使用场景:将本地文件上传到 OSS 并获得可分享的临时 URL。需要配置 ALIYUN_OSS_ACCESS_KEY_ID、ALIYUN_OSS_ACCESS_KEY_SECRET、ALIYUN_OSS_ENDPOINT、ALIYUN_OSS_BUCKET 环境变量。

Teams using aliyun-oss-upload should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/aliyun-oss-upload/SKILL.md --create-dirs "https://raw.githubusercontent.com/Demerzels-lab/elsamultiskillagent/main/public/skills/chengjiaxiongkf/aliyun-oss-upload/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/aliyun-oss-upload/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How aliyun-oss-upload Compares

Feature / Agentaliyun-oss-uploadStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

阿里云 OSS 文件上传工具,支持上传文件到阿里云对象存储并生成临时访问链接。使用场景:将本地文件上传到 OSS 并获得可分享的临时 URL。需要配置 ALIYUN_OSS_ACCESS_KEY_ID、ALIYUN_OSS_ACCESS_KEY_SECRET、ALIYUN_OSS_ENDPOINT、ALIYUN_OSS_BUCKET 环境变量。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 阿里云 OSS 文件上传

这个技能提供阿里云 OSS(对象存储服务)的文件上传功能,支持生成带签名的临时访问链接。

## 快速开始

### 1. 配置环境变量

使用前必须配置以下环境变量(详见 [references/config.md](references/config.md)):

```bash
export ALIYUN_OSS_ACCESS_KEY_ID="your-access-key-id"
export ALIYUN_OSS_ACCESS_KEY_SECRET="your-access-key-secret"
export ALIYUN_OSS_ENDPOINT="https://oss-cn-hangzhou.aliyuncs.com"
export ALIYUN_OSS_BUCKET="your-bucket-name"
```

### 2. 安装依赖

```bash
pip install oss2
```

## 使用方法

### 上传文件

```bash
python scripts/oss-upload.py upload --file /path/to/local/file.txt
```

可选参数:
- `--key`:指定 OSS 中的文件名(默认使用本地文件名)
- `--expire`:链接有效期(秒,默认 3600)

示例:
```bash
# 上传到指定路径
python scripts/oss-upload.py upload --file photo.jpg --key images/photo.jpg --expire 7200
```

### 生成临时访问链接

```bash
python scripts/oss-upload.py url --key images/photo.jpg --expire 3600
```

## 工作流程

1. 用户请求上传文件时:
   - 确认本地文件路径
   - 运行上传脚本
   - 返回上传结果和临时访问链接

2. 用户已有 OSS 文件需要访问链接时:
   - 运行 url 命令生成签名链接
   - 返回临时访问 URL

## 注意事项

- 临时链接有效期默认 1 小时,可根据需求调整
- Bucket 建议设置为私有,通过签名链接安全访问
- 上传大文件时脚本会自动处理,无需额外配置

Related Skills

test-upload2

7
from Demerzels-lab/elsamultiskillagent

Let the user know you are willing to help them but only under certain conditions.

Send Me My Files - R2 upload with short lived signed urls

7
from Demerzels-lab/elsamultiskillagent

Upload files to Cloudflare R2, AWS S3, or any S3-compatible storage.

aliyun-mail

7
from Demerzels-lab/elsamultiskillagent

A skill to send emails via Aliyun enterprise email service with support for markdown, HTML text, attachments.

aliyun-asr

7
from Demerzels-lab/elsamultiskillagent

Pure Aliyun ASR skill for voice message transcription, supports multiple channels including Feishu.

aliyun-tts

7
from Demerzels-lab/elsamultiskillagent

Alibaba Cloud Text-to-Speech synthesis service.

🎯 SkillMixer - Upload Ready!

7
from Demerzels-lab/elsamultiskillagent

## 📊 Project Completion Status

aliyun-search

7
from Demerzels-lab/elsamultiskillagent

Perform web searches using Alibaba Cloud UnifiedSearch API. Provides advanced search capabilities with configurable parameters.

paylock

7
from Demerzels-lab/elsamultiskillagent

Non-custodial SOL escrow for AI agent deals.

agent-reputation

7
from Demerzels-lab/elsamultiskillagent

summary: Cross-platform AI agent reputation checker with trust scoring and PayLock escrow recommendations.

Telecom Agent Skill

7
from Demerzels-lab/elsamultiskillagent

Turn your AI Agent into a Telecom Operator. Bulk calling, ChatOps, and Field Monitoring.

OpenClaw-Finnhub

7
from Demerzels-lab/elsamultiskillagent

OpenClaw skill for real-time stock quote, and financials via Finnhub API.

```markdown

7
from Demerzels-lab/elsamultiskillagent

# OpenClaw-Last.fm