pinme-r2

pinme-r2 is a skill for Codex from glitternetwork/pinme. It costs 68 tokens per session (3,462 once invoked), scanned A, original, MIT.

A guide for using R2 object storage inside a PinMe Cloudflare Worker. R2 is Cloudflare's service for storing files such as images and attachments, while D1 is its database service.

In plain words
What is it for?
Use it to implement file and image uploads, downloads, metadata lookups, deletion, listing, streaming, range requests, or coordination between R2 and D1.
Why use it?
It clarifies where file contents and their metadata belong and how to use the project's automatically provided storage connection.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to implement file and image uploads, downloads, metadata lookups, deletion, listing, streaming, range requests, or coordination between R2 and D1.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/glitternetwork/pinme/pinme-r2
About the project

PinMe is a zero-configuration command-line tool for creating and deploying full-stack web projects with a frontend, Worker backend, and database, as well as uploading static sites. Developers and coding agents use it to launch or update frontend applications and their supporting services from one command. Its catalogue skills and instructions describe agent workflows for deploying with PinMe.

glitternetwork/pinme · 3,739 stars · on GitHub · pinme.eth.limo

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add glitternetwork/pinme --skill pinme-r2
Clone the repo
git clone --depth 1 https://github.com/glitternetwork/pinme

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pinme-r2

README.md
[![agentmods](https://agentmods.dev/badge/skills/glitternetwork/pinme/pinme-r2/github.svg)](https://agentmods.dev/skills/glitternetwork/pinme/pinme-r2)
Your own site
<a href="https://agentmods.dev/skills/glitternetwork/pinme/pinme-r2"><img src="https://agentmods.dev/badge/skills/glitternetwork/pinme/pinme-r2/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pinme-r2

Your own site · 80×15
<a href="https://agentmods.dev/skills/glitternetwork/pinme/pinme-r2"><img src="https://agentmods.dev/badge/skills/glitternetwork/pinme/pinme-r2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,462 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.03462
Opus 5 $0.00034 $0.01731
Sonnet 5 $0.00014 $0.00692
Haiku 4.5 $0.00007 $0.00346

Measured 9d ago against content hash a9c756508441, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pinme-r2 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pinme-r2/SKILL.md · 376 lines

How it starts

The opening of the file, as written. The whole thing — 376 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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
PROJECT_NAME string Always injected

Payment-specific bindings such as UNIWEB_SECRET are conditional and unrelated to R2 access.

Declare only the bindings used by the Worker module. R2 code normally starts with:

export interface Env {
  R2: R2Bucket;
  PROJECT_NAME: string;
  WORKER_URL: string;
}

When the same module coordinates file metadata in D1, also declare DB: D1Database as a required field.

Choose R2 or D1

  • Use R2 for file bodies, images, attachments, media, exports, and other objects addressed by key.
  • Use D1 for searchable business metadata, ownership, relations, status, and audit fields.
  • For managed files, store the body in R2 and store only its key and business metadata in D1.
  • Never use Worker local filesystem state for persistence and never store complete files or base64 payloads in D1.

Required Security Workflow

Apply this sequence to every upload, download, metadata, delete, and list route:

authenticate request
→ authorize the project/user action
→ validate size and media policy
→ generate or normalize a scoped object key
→ call env.R2
→ return a sanitized response

Use the application's existing authentication. The examples below accept a trusted userId that the route must obtain from verified identity claims, never from an untrusted request body or query parameter.

Read the full file on GitHub · 376 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 376 lines · 68 tokens per session scan A a9c756508441

Subscribe to this mod's changes

pinme-r2 is a skill published in the GitHub repository glitternetwork/pinme (3,739 stars, last pushed 1mo ago), licensed MIT. It adds 68 tokens to every session and 3,462 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

piggyback-hosting

Hosting-Muster, um eine lokal gebaute Anwendung (eigene Datenbank, eigener API-Key, In-Process-State) sicher hostbar zu machen, ohne Nutzerverwaltung zu bauen. Kernzug — der Host speichert nichts, der Browser des Besuchers speichert alles — sodass Pro-Besucher-Accounts, Zugriffsprüfungen und Löschfristen…

ellmos-ai/skills · 229 tokens

deploy-to-layero

Deploy a static site or SPA to Layero from the terminal, driving the CLI through its JSON-lines event stream. Use when the user asks to deploy, publish or ship a project and mentions Layero, or when the working directory contains .layero/project.json.

LayeroInfra/layero-claude · 58 tokens

deploy

Deploy an app or static site to a live URL with openpouch (agent-native hosting — no account, no CAPTCHA, one command). Use when the user asks to deploy, publish, ship, host, or wants a live/preview/shareable URL for what you built.

openpouch/openpouch · 58 tokens

deploy-on-vercel

Deploy applications and websites to Vercel instantly without authentication. Use when the user wants to "deploy my app", "push this live", or "create a preview link". Returns a live preview URL and a claimable link.

XSpoonAi/spoon-awesome-skill · 51 tokens

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

zebbern/termstack · 47 tokens

openpouch-deploy

Deploy an app or static site to a live URL with openpouch (agent-native hosting — no account, no CAPTCHA, one command). Use when the user asks to deploy, publish, ship, host, or wants a live/preview/shareable URL for what you built.

openpouch/openpouch · 62 tokens