Cloudflare R2
Cloudflare R2 bucket binding usage rules
от ThePrimeagen★ 239 звёзд на GitHub
Установить Cloudflare R2 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Cloudflare R2
Rules
- Declare bucket bindings in
wrangler.jsoncunderr2_bucketswith bothbindingandbucket_name; keep this file as the source of truth. - Access buckets via
env.<BINDING>inside each Worker handler, and keep the binding name identical in both config and code. - For object operations, handle
get()misses (null) explicitly, sethttpMetadata(for examplecontentType) onput(), and return clear HTTP status codes.
Example 1: wrangler.jsonc
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "my-worker",
"main": "src/index.ts",
"compatibility_date": "2026-02-24",
"r2_buckets": [
{
"binding": "FILES",
"bucket_name": "my-files"
}
]
}
Example 2: Minimal put()
await env.FILES.put("hello.txt", "hello from r2", {
httpMetadata: { contentType: "text/plain; charset=utf-8" },
});
Example 3: Minimal get()
const object = await env.FILES.get("hello.txt");
if (!object) return new Response("Not found", { status: 404 });
const headers = new Headers();
object.writeHttpMetadata(headers);
headers.set("etag", object.httpEtag);
return new Response(object.body, { headers });
Note: if you mean "htmlEtags", the R2 field is actually httpEtag; use httpEtag for response etag headers because it is already correctly quoted.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Cloudflare R2?
Cloudflare R2 bucket binding usage rules
Как установить скилл Cloudflare R2?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Cloudflare R2 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…