/agent-resources:hostfrom agent-resources
Upload files to Cloudflare R2 and return a shareable public URL. Supports any file type with automatic slug generation, clipboard copy, and hosting history tracking.
Ships in agent-resources. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Upload any file to Cloudflare R2 and get back a shareable public URL.
SCRIPTS below refers to the scripts/ directory next to this file.
wrangler login (interactive OAuth — run once, token persists in ~/.wrangler)CLOUDFLARE_API_TOKEN environment variableCheck if wrangler is available:
wrangler --version
If not installed, install it globally:
npm install -g wrangler
Verify auth status:
wrangler whoami
If not authenticated, the user must run wrangler login interactively (opens a browser for OAuth). This is a one-time step.
Look for ~/.publish.json. If it doesn't exist, run $SCRIPTS/setup.sh and walk the user through the prompts. The setup script creates the config file with:
{
"bucket": "my-bucket-name",
"publicBaseUrl": "https://pub-xxx.r2.dev"
}
If the file exists, read it and parse the bucket and publicBaseUrl values. Both are required.
Determine what file to host from context:
.canvas.tsx output or generated HTML file from the current sessionDecide the R2 object key (the path within the bucket):
my-report-2026-05-15Sales Report Q1.html becomes sales-report-q1-2026-05-15.html~/.publish-history.json for the key. If it exists, ask the user whether to overwrite or append a suffix (-2, -3, etc.).Run the host script:
$SCRIPTS/host.sh <file-path> [--key <custom-key>]
The script:
~/.publish.json for bucket name and public URL basewrangler r2 object put <bucket>/<key> --file <path> --content-type <type> --remote<publicBaseUrl>/<key>pbcopy on macOS, xclip/xsel on Linux)~/.publish-history.jsonurl, key, contentType, size, and publishedAtImportant: The --remote flag is required. Without it, Wrangler uploads to a local R2 simulator instead of the actual Cloudflare R2 bucket.
If the script exits non-zero, report the error to the user. Common issues:
npm install -g wranglerwrangler login~/.publish.json and that public access is enabledAfter a successful upload:
Example output:
Hosted: https://pub-xxx.r2.dev/sales-report-q1-2026-05-15.html
Copied to clipboard.
Use $SCRIPTS/history.sh to interact with the local hosting history at ~/.publish-history.json.
| Command | Description |
|---|---|
history.sh list | Show the 10 most recent uploads |
history.sh list --all | Show all uploads |
history.sh search <query> | Filter entries by key or local path |
history.sh prune | Remove entries whose R2 objects no longer exist |
When the user asks to see their hosting history, list recent uploads, or find a previously hosted file, use the appropriate history command.
For setting up a custom domain instead of the default r2.dev URL, see references/custom-domain.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (jcottam/agent-resources) — no native marketplace selected
npx claudepluginhub p/jcottam-agent-resources14 skills in this plugin
/advisorActivate rigorous, no-nonsense advisory mode for deep analysis, research, critical review, or honest assessment. Use when the user says "advise", "advise me", "give me your honest take", "don't sugarcoat", "be brutally honest", "rigorous mode", "devil's advocate", "second opinion", "challenge this", "stress-test this", "poke holes", "what am I missing", or any variation of wanting unfiltered expert analysis. Also use when the user asks a complex research question, requests a critical review of a plan or architecture, or wants a decision evaluated with full intellectual honesty rather than encouragement./babysit-prBabysit review comments on the current branch's pull request. Bugbot comes first: wait for its review, fix each valid finding, commit, and push. Handle every other open comment too, from human reviewers and other bots. Repeat for up to three rounds, or until nothing new is open. Use when the user says "babysit PR", "babysit this PR", "wait for Bugbot", "address review comments", "address Bugbot comments", "loop until Bugbot is clean", or wants open PR feedback fixed without merging./cleanup-hardenRuns a cleanup and hardening pass on an application or website covering security fixes, DRY consolidation, orphan and dead-code removal, doc drift, dependency audit, error handling, config validation, performance, and repo hygiene, without changing user-facing behavior. Use when the user asks to clean up, prune, harden, audit, tidy, or de-cruft a codebase, remove dead code, fix doc drift, or do a security pass./content-wireframeDraft a content wireframe for a website or page before any design or code. Produces a structured markdown document with real copy, section intent, and open decisions — approved by the user before implementation begins. Use when the user says "content first", "wireframe the copy", "words before design", "start with the content", "what should the page say", or when a website project lacks finalized copy and is jumping straight to visuals./new-projectKickstart a new project by interviewing for context, choosing Astro or Next.js and extras, then scaffolding a barebones app on Vercel with Tailwind, base shadcn/ui, pnpm, Vitest, a `pnpm check` gate, AGENTS.md, a plain-language README, a CHANGELOG, and a GitHub repo under `jcottam`. Use when the user says "new project", "start a project", "scaffold", "bootstrap", "init a repo", or "spin up an app"./orientOrient a developer to an unfamiliar codebase by systematically exploring its structure, purpose, features, conventions, and workflows. Produces a concise orientation document. Use when the user says "orient me", "what does this project do", "walk me through this codebase", "help me understand this repo", "onboard me", "give me the lay of the land", "codebase overview", or any variation of wanting to quickly understand a project they're new to.Other plugins' skills for the same job