Api oss

From Leoyishou/personal-ai-company · View interactive version

Api oss is an AI agent skill from the GitHub repository Leoyishou/personal-ai-company. 阿里云 OSS 文件上传工具 - 将本地文件上传到 OSS 并返回公网 URL。

How to use this skill

Skill file

api-oss

阿里云 OSS 文件上传工具 - 将本地文件上传到 OSS 并返回公网 URL。

使用场景

核心功能

# 上传单个文件
python ~/.claude/skills/api-oss/scripts/upload.py /path/to/file.mp3

# 输出示例
https://imagehosting4picgo.oss-cn-beijing.aliyuncs.com/tmp/file_a1b2c3.mp3

环境变量

从 ~/.claude/secrets.env 读取:

依赖

pip install oss2

上传路径规则

文件上传到 tmp/ 目录下,文件名格式:{原文件名}_{8位随机字符}.{扩展名}

例如:audio.mp3 → tmp/audio_a1b2c3d4.mp3

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.