cloudflare-r2
Upload files to Cloudflare R2 storage using wrangler CLI. Use when needing to upload images, videos, or files to R2 for CDN hosting, or manage R2 bucket contents. Triggers on "upload to R2", "upload to Cloudflare", "上传到R2", "存到CDN".
Why use this skill?
Efficiently upload, manage, and distribute files to Cloudflare R2 storage buckets using the OpenClaw agent for automated CDN asset management.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/dongsjoa-byte/cloudflare-r2What This Skill Does
The cloudflare-r2 skill enables OpenClaw to interact directly with your Cloudflare R2 storage buckets using the Wrangler CLI. This provides a streamlined interface for file management, allowing you to upload, list, and delete assets stored in the cloud. By integrating this skill, OpenClaw can act as an automated asset manager for your web projects, handling everything from deploying individual images to managing large collections of files intended for CDN delivery. It bridges the gap between local file systems and globally distributed storage by providing standardized shell-based automation wrappers that simplify the complex Wrangler CLI commands required for R2 operations.
Installation
To integrate this skill into your OpenClaw environment, ensure you have the Wrangler CLI installed globally via npm install -g wrangler. Next, create a configuration file at ~/.config/cloudflare/r2.json containing your bucket name, account ID, public domain, and API token. Once configured, execute clawhub install openclaw/skills/skills/dongsjoa-byte/cloudflare-r2 to add the skill to your agent. Ensure your system environment variables have the necessary permissions to execute the provided shell scripts, as the skill relies on internal calls to scripts/r2-upload.sh.
Use Cases
This skill is perfect for developers managing static site assets, content creators looking to host videos or media files on a high-performance CDN, and system administrators automating the backup of configuration files or logs. For instance, if you are generating blog post assets, you can instruct OpenClaw to upload your processed images to the R2 bucket and immediately return the public URL for your content. It is also highly efficient for batch uploads, allowing you to sync entire folders of built static assets directly to your public R2 bucket in a single command.
Example Prompts
- "Upload the file 'banner.png' in my current folder to the R2 bucket under the folder 'marketing/' and give me the public link."
- "I need to deploy all contents from the 'dist/' folder to the 'production/' prefix in my configured R2 bucket."
- "List all files currently in the 'archives/' folder of my R2 bucket so I can see what is available for deletion."
Tips & Limitations
To maximize effectiveness, always ensure your apiToken has sufficient permissions for R2 write and list access. Remember that R2 storage is object-based, so verify your prefixes match your expected file structure to avoid clutter. The skill uses shell-level execution, so always sanitize input paths if passing dynamic variables from user inputs to prevent unauthorized file access. Currently, this skill only supports authenticated operations via the local wrangler configuration, so ensure your machine has internet access to communicate with Cloudflare's API endpoints.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-dongsjoa-byte-cloudflare-r2": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, external-api, code-execution
Related Skills
cursor-council
Multi-Cursor orchestration for parallel task execution and AI council deliberation. Use when needing to run multiple Cursor agents in parallel, coordinate complex multi-step coding tasks, get diverse perspectives from different AI models (Opus/Sonnet/GPT) on technical decisions, or synthesize multi-agent discussions into actionable recommendations.
windows-remote
Control remote Windows machines via SSH. Use when executing commands on Windows, checking GPU status (nvidia-smi), running scripts, or managing remote Windows systems. Triggers on "run on Windows", "execute on remote", "check GPU", "nvidia-smi", "远程执行", "Windows 命令".
google-ai-usage-monitor
Monitor Google AI Studio (Gemini API) usage, rate limits, and quota consumption with automated alerts.
promotion-review
Analyze promotion/review materials (述职/晋升材料) as an evaluator, identify issues and likely interview questions, then provide coaching advice. Supports text files, PDFs, and images (screenshots). Default output is Markdown file; HTML with Cloudflare R2 upload is optional. Use when user sends promotion documents, review materials, 述职材料, 晋升材料, or asks to review/analyze career advancement documents.
discord-governance
Discord 服务器分区和管理流程。用于创建/管理分类、频道、子区,维护置顶摘要,执行归档操作。触发词:Discord 整理、频道管理、子区管理、归档频道。