# Send R2 Storage to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openclaw-skill-r2-storage",
    "name": "R2 Storage",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/mrnsmh/openclaw-skill-r2-storage",
    "canonicalUrl": "https://clawhub.ai/mrnsmh/openclaw-skill-r2-storage",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/openclaw-skill-r2-storage",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-skill-r2-storage",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/r2-api.md",
      "scripts/r2.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "openclaw-skill-r2-storage",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T20:27:48.654Z",
      "expiresAt": "2026-05-14T20:27:48.654Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-skill-r2-storage",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-skill-r2-storage",
        "contentDisposition": "attachment; filename=\"openclaw-skill-r2-storage-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "openclaw-skill-r2-storage"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/openclaw-skill-r2-storage"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/openclaw-skill-r2-storage",
    "downloadUrl": "https://openagent3.xyz/downloads/openclaw-skill-r2-storage",
    "agentUrl": "https://openagent3.xyz/skills/openclaw-skill-r2-storage/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-skill-r2-storage/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-skill-r2-storage/agent.md"
  }
}
```
## Documentation

### r2-storage Skill

Manage Cloudflare R2 buckets and objects via the S3-compatible API. Uses boto3 under the hood.

### When to Use This Skill

Use this skill whenever Marouane needs to:

Upload files to R2 (backups, assets, media)
Download files from R2
List bucket contents
Delete objects
Generate temporary pre-signed URLs for sharing

### Credentials

Set via environment variables (defaults are pre-configured for Marouane's account):

VariableDescriptionR2_ACCESS_KEY_IDR2 Access Key IDR2_SECRET_ACCESS_KEYR2 Secret Access KeyR2_ENDPOINTR2 endpoint URLR2_ACCOUNT_IDCloudflare Account ID

### CLI Usage

# Upload
python3 scripts/r2.py upload myfile.txt my-bucket
python3 scripts/r2.py upload myfile.txt my-bucket --key folder/myfile.txt

# Download
python3 scripts/r2.py download my-bucket/folder/myfile.txt ./local-copy.txt

# List
python3 scripts/r2.py list my-bucket
python3 scripts/r2.py list my-bucket --prefix folder/

# Delete
python3 scripts/r2.py delete my-bucket/folder/myfile.txt

# Pre-signed URL (default 1h)
python3 scripts/r2.py presign my-bucket/folder/myfile.txt
python3 scripts/r2.py presign my-bucket/folder/myfile.txt --expires 86400

### Python Import Usage

from scripts.r2 import upload, download, list_objects, delete, presign

# Upload
upload("local.txt", "my-bucket", key="optional/key.txt")

# List
objects = list_objects("my-bucket", prefix="folder/")
for obj in objects:
    print(obj["key"], obj["size"])

# Pre-signed URL
url = presign("my-bucket", "folder/file.txt", expires=3600)

### Requirements

Python 3.8+
boto3 (python3-boto3 on Ubuntu — already installed on vps118558)

### Notes

Cloudflare R2 is S3-compatible; standard boto3 patterns apply.
Pre-signed URLs work for GET requests only (public download links).
The region_name="auto" is required for R2 compatibility.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: mrnsmh
- Version: 0.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-07T20:27:48.654Z
- Expires at: 2026-05-14T20:27:48.654Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/openclaw-skill-r2-storage)
- [Send to Agent page](https://openagent3.xyz/skills/openclaw-skill-r2-storage/agent)
- [JSON manifest](https://openagent3.xyz/skills/openclaw-skill-r2-storage/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/openclaw-skill-r2-storage/agent.md)
- [Download page](https://openagent3.xyz/downloads/openclaw-skill-r2-storage)