← 返回 Skills 市场
kaiyuelv

Cloud Storage Manager

作者 Lv Lancer · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
99
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install cloud-storage-manager
功能描述
Manage multiple cloud storage providers with features for file upload/download, bucket management, sync, multipart uploads, and CDN integration.
使用说明 (SKILL.md)

cloud-storage-manager - 云存储管理器

SKILL.md for cloud-storage-manager

Metadata

Field Value
Name cloud-storage-manager
Slug cloud-storage-manager
Version 1.0.0
Homepage https://github.com/openclaw/cloud-storage-manager
Category automation
Tags cloud, storage, s3, oss, cos, aliyun, aws, azure, backup, sync

Description

English

Universal cloud storage manager supporting multiple providers (AWS S3, Aliyun OSS, Tencent COS, Azure Blob). Features include file upload/download, bucket management, sync operations, multipart uploads, and CDN integration.

中文

通用云存储管理器,支持多种云服务商(AWS S3、阿里云OSS、腾讯云COS、Azure Blob)。功能包括文件上传下载、存储桶管理、同步操作、分片上传和CDN集成。

Requirements

  • Python 3.8+
  • boto3 >= 1.26.0 (AWS S3)
  • aliyun-python-sdk-oss >= 2.17.0 (Aliyun OSS)
  • qcloud-cos-python-sdk-v5 >= 1.9.0 (Tencent COS)
  • azure-storage-blob >= 12.14.0 (Azure Blob)

Configuration

Environment Variables

# AWS S3
AWS_ACCESS_KEY_ID=your_key
AWS_SECRET_ACCESS_KEY=your_secret
AWS_REGION=us-east-1
AWS_BUCKET=my-bucket

# Aliyun OSS
ALIYUN_ACCESS_KEY_ID=your_key
ALIYUN_ACCESS_KEY_SECRET=your_secret
ALIYUN_OSS_ENDPOINT=oss-cn-hangzhou.aliyuncs.com
ALIYUN_OSS_BUCKET=my-bucket

# Tencent COS
TENCENT_SECRET_ID=your_id
TENCENT_SECRET_KEY=your_key
TENCENT_COS_REGION=ap-beijing
TENCENT_COS_BUCKET=my-bucket

# Azure
AZURE_STORAGE_CONNECTION_STRING=your_connection_string
AZURE_CONTAINER=my-container

Usage

Basic Example

from cloud_storage_manager import StorageManager, Provider

# Initialize with Aliyun OSS
storage = StorageManager(Provider.ALIYUN_OSS)

# Upload file
storage.upload("local/file.txt", "remote/path/file.txt")

# Download file
storage.download("remote/path/file.txt", "local/downloaded.txt")

# List files
files = storage.list_objects(prefix="documents/")

# Delete file
storage.delete("remote/path/file.txt")

# Get signed URL (1 hour expiry)
url = storage.get_signed_url("private/file.txt", expires=3600)

Sync Example

from cloud_storage_manager import SyncManager

# Sync local directory to cloud
sync = SyncManager(storage)
sync.sync_to_cloud(
    local_dir="/path/to/local",
    remote_prefix="backup/2024/",
    exclude=["*.tmp", "*.log"],
    delete_remote=True  # Remove files not in local
)

# Sync from cloud to local
sync.sync_from_cloud(
    remote_prefix="data/",
    local_dir="/path/to/download",
    include=["*.csv", "*.json"]
)

Multi-Provider Copy

# Copy between different providers
source = StorageManager(Provider.AWS_S3)
dest = StorageManager(Provider.ALIYUN_OSS)

# Stream copy without downloading locally
from cloud_storage_manager import CrossProviderCopy
copier = CrossProviderCopy(source, dest)
copier.copy("s3/path/file.zip", "oss/path/file.zip")

API Reference

StorageManager

  • upload(local_path, remote_path) - Upload file
  • download(remote_path, local_path) - Download file
  • delete(remote_path) - Delete file
  • exists(remote_path) - Check if file exists
  • list_objects(prefix='') - List files with prefix
  • get_size(remote_path) - Get file size
  • get_signed_url(remote_path, expires) - Get temporary URL
  • set_acl(remote_path, acl) - Set access control

SyncManager

  • sync_to_cloud(local_dir, remote_prefix, **options) - Upload sync
  • sync_from_cloud(remote_prefix, local_dir, **options) - Download sync
  • compare(local_dir, remote_prefix) - Compare differences

Examples

See examples/ directory for complete examples.

Testing

cd /root/.openclaw/workspace/skills/cloud-storage-manager
python -m pytest tests/ -v

License

MIT License

安全使用建议
Do not provide cloud credentials or enable this skill yet. Key problems: the package is missing core implementation files (it imports storage.py and sync.py but they are not in the bundle), and registry metadata contradicts SKILL.md (no required env listed vs. SKILL.md listing many secret env vars and a GitHub homepage). Ask the publisher for the canonical source (GitHub repo), verify that the published bundle actually contains the implementation, and inspect the real storage.py/sync.py before installing. If you must test, do so in an isolated sandbox or throwaway environment, and use temporary, least-privilege credentials (or mocks) rather than production keys. Verify dependencies in requirements.txt and prefer to install them in a virtualenv. If the publisher cannot resolve the missing files or metadata inconsistencies, treat the skill as untrusted.
功能分析
Type: OpenClaw Skill Name: cloud-storage-manager Version: 1.0.0 The cloud-storage-manager skill bundle is a standard framework for managing multiple cloud storage providers (AWS, Aliyun, Tencent, Azure). The provided files include configuration logic (src/cloud_storage_manager/config.py) for loading credentials from environment variables, comprehensive documentation (SKILL.md, README.md), and unit tests (tests/test_storage.py) that use mock objects. Although the core implementation files (storage.py and sync.py) are missing from the provided content, the existing code and instructions show no evidence of malicious intent, data exfiltration, or prompt injection, and strictly align with the stated purpose of the tool.
能力评估
Purpose & Capability
The skill's name and SKILL.md describe a StorageManager/SyncManager offering full multi-cloud capabilities, which would legitimately require the listed cloud SDKs and credentials; however the source bundle is missing key implementation modules (storage.py and sync.py are imported in __init__.py but not present), making the package incomplete. Additionally registry metadata lists no homepage or source while SKILL.md points to a GitHub repo URL — a metadata mismatch.
Instruction Scope
SKILL.md contains reasonable usage examples and test instructions. It asks the agent to load credentials from environment variables (appropriate for cloud access). One minor oddity: the test invocation references an absolute agent workspace path (/root/.openclaw/workspace/skills/...), which assumes a specific runtime layout; otherwise instructions do not request unrelated system files or network endpoints beyond expected cloud SDKs.
Install Mechanism
There is no install specification (instruction-only install), so nothing is automatically downloaded or executed by the installer. The bundle includes a requirements.txt listing many cloud SDKs (expected for the stated purpose). Because no install step is provided, a user would need to pip-install dependencies themselves; this is not itself dangerous but increases manual-install friction.
Credentials
SKILL.md documents many provider-specific environment variables (AWS, Aliyun, Tencent, Azure) which are appropriate for the described functionality. However the registry metadata at the top of the package lists 'Required env vars: none' and 'Primary credential: none' — that's inconsistent. The skill legitimately needs secrets for cloud access, so do not supply credentials to the skill until implementation/source is validated.
Persistence & Privilege
The skill does not request persistent or always-on privileges (always:false) and model-invocation is not disabled (the default). It does not claim to modify other skills or global agent settings. This is normal and not concerning by itself.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cloud-storage-manager
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cloud-storage-manager 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
cloud-storage-manager 1.0.0 initial release: - Universal cloud storage manager supports AWS S3, Aliyun OSS, Tencent COS, and Azure Blob. - Features: file upload/download, bucket management, sync, multipart uploads, and CDN integration. - Cross-provider copy supported without local download. - Includes Python API for StorageManager and SyncManager, with example usage and comprehensive configuration instructions.
元数据
Slug cloud-storage-manager
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Cloud Storage Manager 是什么?

Manage multiple cloud storage providers with features for file upload/download, bucket management, sync, multipart uploads, and CDN integration. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 99 次。

如何安装 Cloud Storage Manager?

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

Cloud Storage Manager 是免费的吗?

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

Cloud Storage Manager 支持哪些平台?

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

谁开发了 Cloud Storage Manager?

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

💬 留言讨论