pinme-r2

仓库创建 2025年4月13日最近提交 2 天前SkillHot 收录 15 小时前
▸ 精选理由

免凭据利用 PinMe 注入的 R2 绑定,简化上传/下载、列举与 Range 请求等常见操作。

▸ 风险提示

依赖 PinMe 注入的 env.R2 绑定,脱离该环境无法运行或复现。

这个 Skill 做什么

指导在 PinMe 部署的 Cloudflare Worker 中使用自动注入的 env.R2 进行对象存储操作。

指导在 PinMe 部署的 Cloudflare Worker 里用自动注入的 env.R2 做对象存储操作(上传、流式下载、Range 请求、元数据、删除、列举等),无需创建 R2 凭证或改 Wrangler 配置。用在需要在 PinMe Worker 里安全访问项目级 R2 桶时。重点是必须用 PinMe 提供的 env.R2 绑定,不要手动改桶名或凭证。

▸ 展开 SKILL.md 英文原文

Use when a PinMe Cloudflare Worker needs R2 object storage, including secure file or image upload, streaming download, metadata lookup, deletion, listing, Range requests, or R2+D1 coordination. Guides AI to use PinMe's automatically injected env.R2 binding without R2 credentials or manual Wrangler configuration.

开发编程Cloudflare R2PinMe对象存储Worker通用
3.7k
Stars
272
Forks
7
仓库内 Skill
+26
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/glitternetwork/pinme/main/skills/pinme-r2/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/glitternetwork/pinme/main/skills/pinme-r2/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# PinMe Worker R2 Storage

Use the project-scoped R2 bucket that PinMe binds to every deployed Worker as `env.R2`. Do not create credentials, choose a bucket name, or edit generated Wrangler configuration.

## Runtime Contract

PinMe rebuilds trusted Worker metadata on create, save, and update. Client metadata cannot replace the R2 binding.

| Binding | TypeScript type | Availability |
| --- | --- | --- |
| `DB` | `D1Database` | Always injected |
| `R2` | `R2Bucket` | Always injected; current project's bucket |
| `API_KEY` | `string` | Always injected |
| `LLM_API_KEY` | `string` | Always injected |
| `BASE_URL` | `string` | Always injected |
| `WORKER_URL` | `string` | Always injected |
| `
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有