stratos-storage
向 Stratos 去中心化存储 (SDS) 网络上传和下载文件。 当用户想要在 Stratos 上存储文件、从 Stratos 检索文件时使用, 上传到去中心化存储,或从 SDS 下载。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~notboxqsn-stratos-storagecURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~notboxqsn-stratos-storage/file -o notboxqsn-stratos-storage.md## 概述(中文) 向 Stratos 去中心化存储 (SDS) 网络上传和下载文件。 当用户想要在 Stratos 上存储文件、从 Stratos 检索文件时使用, 上传到去中心化存储,或从 SDS 下载。 ## 原文 # Stratos Decentralized Storage ## When to use - User wants to upload a file to Stratos SDS network - User wants to download a file from Stratos SDS using file hash or share link - User mentions "Stratos", "SDS", "SPFS", or "decentralized storage upload/download" ## Steps ### Upload a file 1. Verify ppd or SPFS gateway is available 2. Run the upload script: `bash $SKILL_DIR/scripts/upload.sh <file_path>` 3. Return the file hash (CID) to the user ### Download a file 1. Verify ppd or SPFS gateway is available 2. Run the download script: `bash $SKILL_DIR/scripts/download.sh <file_hash_or_cid> <output_path>` 3. Confirm download success ## Examples Upload: "Upload /tmp/report.pdf to Stratos" → Run: bash scripts/upload.sh /tmp/report.pdf → Output: File uploaded. CID: Qm...xxx Download: "Download file Qm...xxx from Stratos to ~/Downloads/" → Run: bash scripts/download.sh Qm...xxx ~/Downloads/report.pdf → Output: File downloaded to ~/Downloads/report.pdf ## Constraints - Always confirm file path with user before uploading - Never overwrite existing files without user confirmation - Verify SDS node is running before operations - Large files may take significant time; inform user of progress