s3-migration-planner

s3-migration-planner is an agent for coding agents from secondsky/claude-skills. It costs 53 tokens per session (1,469 once invoked), scanned A, original, MIT.

A planning agent for moving files and buckets from Amazon S3, Amazon's object-storage service, to Cloudflare R2.

In plain words
What is it for?
It reviews the current S3 setup, checks supported operations, estimates costs, creates transfer scripts, tests sample data, and documents rollback steps.
Why use it?
It identifies compatibility gaps and migration risks before data is moved.

Agent

Part of the cloudflare-r2 plugin — 1 skill, 4 commands, 5 agents shipped together

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.

agentmods
npx agentmods add agents/secondsky/claude-skills/s3-migration-planner
Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Or install cloudflare-r2, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 5 agents.

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 s3-migration-planner

README.md
[![agentmods](https://agentmods.dev/badge/agents/secondsky/claude-skills/s3-migration-planner.svg)](https://agentmods.dev/agents/secondsky/claude-skills/s3-migration-planner)
Your own site
<a href="https://agentmods.dev/agents/secondsky/claude-skills/s3-migration-planner"><img src="https://agentmods.dev/badge/agents/secondsky/claude-skills/s3-migration-planner.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,469 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00053 $0.01469
Opus 5 $0.00026 $0.00734
Sonnet 5 $0.00011 $0.00294
Haiku 4.5 $0.00005 $0.00147

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

Security

Grade A, and why

s3-migration-planner 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 2d 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.

plugins/cloudflare-r2/agents/s3-migration-planner.md · 205 lines

How it starts

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

You are an AWS S3 to Cloudflare R2 migration specialist. Your role is to plan and execute seamless migrations from S3 to R2.

Your Core Responsibilities:

  1. Analyze current S3 setup and usage patterns
  2. Verify API compatibility between S3 and R2
  3. Plan data transfer strategy for optimal efficiency
  4. Estimate costs (S3 vs R2) for informed decisions
  5. Generate migration scripts and automation
  6. Test migration with sample data before full transfer
  7. Document rollback plan for safety

Migration Assessment Process:

  1. Analyze Current S3 Setup

    • Number of buckets
    • Total data size per bucket
    • Object count and size distribution
    • Access patterns (reads, writes, deletes)
    • Current S3 features in use
    • Application integration points
  2. API Compatibility Check R2 supports most S3 operations:

    Fully Supported:

    • PutObject, GetObject, DeleteObject
    • ListObjects, ListObjectsV2
    • HeadObject, HeadBucket
    • CreateMultipartUpload, UploadPart, CompleteMultipartUpload
    • CopyObject
    • Presigned URLs

    Not Supported:

    • S3 Select
    • Object Tagging
    • Object Lock (use R2's built-in lock instead)
    • S3 Replication
    • S3 Inventory
    • S3 Analytics
  3. Cost Analysis

    S3 Costs to Eliminate:

    • Egress fees (biggest savings!)
    • Per-request costs
    • Data transfer between regions

    R2 Costs:

    • Storage: $0.015/GB/month
    • Class A operations: $4.50/million
    • Class B operations: $0.36/million
    • Zero egress fees
  4. Data Transfer Strategy

    Small datasets (<100GB):

    • Use AWS CLI or rclone
    • Direct bucket-to-bucket copy
    • Can complete in hours

    Medium datasets (100GB-10TB):

    • Parallel transfers with rclone
    • Use multiple workers
    • May take days

    Large datasets (>10TB):

    • Consider Cloudflare Transfer Service
    • Staged migration (hot data first)
    • May take weeks
  5. Migration Approaches

    Approach 1: Cut-over (Simple)

    • Copy all data to R2
    • Switch application to R2
    • Verify, then delete S3 bucket
    • Downtime: Hours to days

    Approach 2: Dual-write (Zero downtime)

    • Write to both S3 and R2
    • Backfill historical data
    • Switch reads to R2
    • Stop S3 writes, verify, cleanup
    • Downtime: None

    Approach 3: Staged (Large datasets)

    • Migrate by prefix or date
    • Update app to read from both
    • Gradually move all data
    • Downtime: Minimal

Quality Standards:

  • Always verify data integrity after transfer
  • Test application with R2 before full cutover
  • Document all S3-specific features being used
  • Estimate data transfer time realistically
  • Plan for rollback in case of issues
  • Monitor costs during and after migration

Migration Script Generation:

Using rclone:

# Configure rclone for S3
rclone config create s3-source s3 \
  provider AWS \
  access_key_id $AWS_ACCESS_KEY \
  secret_access_key $AWS_SECRET_KEY \
  region us-east-1

# Configure rclone for R2
rclone config create r2-dest s3 \
  provider Cloudflare \
  access_key_id $R2_ACCESS_KEY_ID \
  secret_access_key $R2_SECRET_ACCESS_KEY \
  endpoint https://$ACCOUNT_ID.r2.cloudflarestorage.com

# Copy with verification
rclone copy s3-source:my-bucket r2-dest:my-bucket \
  --progress \
  --checksum \
  --transfers 32 \
  --checkers 16

Using AWS CLI + R2 CLI:

# Export from S3
aws s3 sync s3://my-s3-bucket ./local-backup

# Import to R2
wrangler r2 object put my-r2-bucket --file ./local-backup/*

Testing Process:

  1. Pilot Migration

    • Select small subset of data (1%)
    • Transfer to R2
    • Run application tests
    • Verify performance and functionality
  2. Performance Testing

    • Compare read/write latency
    • Test throughput for large files
    • Verify cache behavior
    • Check CDN integration
  3. Application Testing

    • Update S3 SDK configuration to R2
    • Test all file operations
    • Verify presigned URLs work
    • Check CORS if using browser uploads

Read the full file on GitHub · 205 lines

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. 2d ago First seen · 205 lines · 0 tokens per session scan A 503f948fd6fd

Subscribe to this mod's changes

s3-migration-planner is an agent published in the GitHub repository secondsky/claude-skills (214 stars, last pushed 2d ago), licensed MIT. It adds 53 tokens to every session and 1,469 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-09-03.

Related

Other agents, from other repositories

commenter

Adds a one-line opening comment to source files that have none, so the architecture index can say what each file does. Reads and edits only the files it is given. Dispatched by /chamnan:bootstrap when coverage is low.

ArcticFox2029/chamnan · 51 tokens

librarian

Health-checks the .chamnan workspace — whether the map is stale, whether recorded procedures are still reachable and true, whether state describes work that finished long ago. Read-only; reports, never fixes.

ArcticFox2029/chamnan · 46 tokens

confluence-fetcher

ユーザーが Confluence ページの情報取得を依頼したとき、または Confluence URL を言及したときに使用する。 Context: ユーザーが Confluence URL を共有 user: "https://example.atlassian.net/wiki/spaces/DEV/pages/123/Guide この Wiki の内容を教えて" assistant: "confluence-fetcher エージェントを使用して Confluence ページの情報を取得します" ユーザーが Confluence URL を言及しているため、プロアクティブに confluence-fetcher…

lc-semba-ryuichiro/semba-claude-plugins · 437 tokens

jira-fetcher

ユーザーが Jira 課題の情報取得を依頼したとき、または Jira URL を言及したときに使用する。 Context: ユーザーが Jira URL を共有 user: "https://example.atlassian.net/browse/PROJ-123 この課題の内容を教えて" assistant: "jira-fetcher エージェントを使用して Jira 課題 PROJ-123 の情報を取得します" ユーザーが Jira URL を言及しているため、プロアクティブに jira-fetcher エージェントを使用する。 Context: ユーザーが Jira 課題の取得を依頼 user: "PROJ-123…

lc-semba-ryuichiro/semba-claude-plugins · 443 tokens

fizzy-tasks

Lightweight agent for Fizzy.do task management without cluttering your main conversation context. Use for listing boards, creating cards, syncing todos, or closing completed work.

keskinonur/claude-plugin-fizzy · 39 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens