dan-r2-skill

Upload local files to Cloudflare R2 and replace markdown references with public URLs.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/Dante-dan/dan-skills --skill dan-r2-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dan-r2-skill
Source: https://github.com/Dante-dan/dan-skills/tree/main/src/dan-r2-skill
Command: npx skills add https://github.com/Dante-dan/dan-skills --skill dan-r2-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @aws-sdk/client-s3, glob, minimist, and includes scripts (resource) components.

What problem does it solve?

This Skill removes the manual process of uploading local files to Cloudflare R2 and updating markdown references, helping users publish content with consistent public URLs.

Core Features & Use Cases

  • Cloudflare R2 Upload Automation: Upload images, documents, or custom file sets from a project directory to an R2 bucket.
  • Markdown Link Replacement: Automatically replace local markdown image and file paths with generated public R2 URLs.
  • Configurable Publishing Workflow: Supports project-level and user-level configuration, dry runs, incremental uploads, custom globs, and optional local file cleanup.

Quick Start

Ask the AI to upload images in the current directory to R2 and replace the markdown paths with public URLs.

Frequently Asked Questions about dan-r2-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upload local files to Cloudflare R2 and update markdown links automatically?

This Skill uploads local files to Cloudflare R2 using S3-compatible APIs and automatically replaces local markdown paths with public R2 URLs, streamlining content publishing workflows.

Can I use the AWS SDK for S3 to upload files to Cloudflare R2 for asset migration?

Yes, you can use the @aws-sdk/client-s3 dependency to interact with Cloudflare R2. This Skill leverages S3-compatible APIs to handle file scanning and upload processes for project asset migration scenarios.

What is the best way to replace local markdown image paths with public URLs?

The best way to replace local markdown image paths with public URLs is through automated markdown transformation. This Skill scans files and updates markdown references with generated public R2 URLs after uploading.

Does this content publishing workflow support incremental uploads and dry runs?

Yes, the content publishing workflow supports incremental uploads and dry runs. It also accommodates custom globs, project-level configuration, and optional local file cleanup after replacing markdown references.

Do I need pre-configured R2 credentials to perform markdown link replacement and file uploads?

Yes, you need configured R2 credentials to perform file uploads and markdown link replacement. The Skill requires these credentials to authenticate S3-compatible API requests before generating public URLs for your content.