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.
git clone --depth 1 https://github.com/secondsky/claude-skillsWrote 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.
[](https://agentmods.dev/commands/secondsky/claude-skills/r2-presigned-url)<a href="https://agentmods.dev/commands/secondsky/claude-skills/r2-presigned-url"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/r2-presigned-url/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.
<a href="https://agentmods.dev/commands/secondsky/claude-skills/r2-presigned-url"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/r2-presigned-url.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00020 | $0.00854 |
| Opus 5 | $0.00010 | $0.00427 |
| Sonnet 5 | $0.00004 | $0.00171 |
| Haiku 4.5 | $0.00002 | $0.00085 |
Grade A, and why
cloudflare-r2:presigned-url scanned grade A with 1 finding 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 5d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
3. **Provides curl test command** for verification How it starts
The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.
R2 Presigned URL Generator
Generate time-limited, signed URLs for secure client-side uploads or downloads without exposing R2 credentials.
Required Information
- Operation type:
{{operation}}(upload or download) - Object key (file path in bucket):
{{key}} - Expiry (seconds, max 604800 = 7 days):
{{expiry}} - Custom headers (optional, e.g., Content-Type):
{{headers}}
What This Command Does
- Generates AWS v4 signed URL using aws4fetch library
- Sets expiration time (1 hour to 7 days)
- Provides curl test command for verification
- Explains security considerations
- Shows client-side usage example
Implementation
import { AwsClient } from 'aws4fetch';
// Configure AWS client for R2
const r2Client = new AwsClient({
accessKeyId: env.R2_ACCESS_KEY_ID,
secretAccessKey: env.R2_SECRET_ACCESS_KEY,
});
// Generate presigned URL for upload
async function generateUploadURL(
bucket: string,
key: string,
expirySeconds: number
) {
const url = new URL(
`https://${bucket}.${env.ACCOUNT_ID}.r2.cloudflarestorage.com/${key}`
);
url.searchParams.set('X-Amz-Expires', expirySeconds.toString());
const signed = await r2Client.sign(
new Request(url, { method: 'PUT' }),
{ aws: { signQuery: true } }
);
return signed.url;
}
// Generate presigned URL for download
async function generateDownloadURL(
bucket: string,
key: string,
expirySeconds: number
) {
const url = new URL(
`https://${bucket}.${env.ACCOUNT_ID}.r2.cloudflarestorage.com/${key}`
);
url.searchParams.set('X-Amz-Expires', expirySeconds.toString());
const signed = await r2Client.sign(
new Request(url, { method: 'GET' }),
{ aws: { signQuery: true } }
);
return signed.url;
}
Example Usage
// Generate upload URL (valid for 1 hour)
const uploadURL = await generateUploadURL('my-bucket', 'user/file.pdf', 3600);
// Client-side upload
fetch(uploadURL, {
method: 'PUT',
body: fileData,
headers: {
'Content-Type': 'application/pdf',
},
});
// Generate download URL (valid for 24 hours)
const downloadURL = await generateDownloadURL('my-bucket', 'user/file.pdf', 86400);
// Provide URL to user
return c.json({ downloadURL });
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.
- 5d ago First seen · 127 lines · 20 tokens per session scan A 6ee392c66b71
cloudflare-r2:presigned-url is a command published in the GitHub repository secondsky/claude-skills (216 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 854 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other commands, from other repositories
correlate
Find related failures through pattern matching.
diff
Compare two command outputs with intelligent diff.
open
Open/retrieve an offloaded output by ID or shortcut.
search
Search through offloaded outputs with hard caps.
stats
Show FewWord session statistics with rich output and token savings.
timeline
Visual timeline of command outputs in current session.