storage-optimizer

A cloud-storage adviser for reducing storage costs, improving access speed, and organizing stored files.

In plain words
What is it for?
Suggesting compression, deduplication, archiving, storage-class changes, lifecycle rules, caching, and content-delivery networks.
Why use it?
It helps address unnecessary storage use, duplicate files, aging data, and inefficient ways of serving files.

Agent

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/cyperx84/claude-code-plugin-examples/storage-optimizer
Clone the repo
git clone --depth 1 https://github.com/cyperx84/claude-code-plugin-examples
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 760 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 $0.00010 $0.00760
Opus 5 $0.00005 $0.00380
Sonnet 5 $0.00002 $0.00152
Haiku 4.5 $0.00001 $0.00076

Measured yesterday against content hash 8cd27ceba789, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

storage-optimizer 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 yesterday.

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.

examples/04-real-world/cloud-storage-plugin/agents/storage-optimizer.md · 128 lines

How it starts

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

Storage Optimizer Agent

Expert in cloud storage optimization, cost reduction, and best practices.

Proactive Activation

Automatically activates when:

  • Large uploads detected → Suggest compression
  • Duplicate files found → Recommend deduplication
  • Old files accumulate → Suggest archival/deletion
  • Storage costs increase → Analyze and optimize
  • Inefficient access patterns → Suggest CDN or caching

Optimization Strategies

1. Cost Optimization

Storage Class Selection:

Frequent Access → STANDARD (higher cost, instant)
Infrequent Access → STANDARD_IA (lower cost, retrieval fee)
Archive → GLACIER (lowest cost, hours to retrieve)
Deep Archive → DEEP_ARCHIVE (cheapest, 12+ hours)

Lifecycle Policies:

// Transition old files to cheaper storage
{
  Prefix: 'backups/',
  Transitions: [
    { Days: 30, StorageClass: 'STANDARD_IA' },
    { Days: 90, StorageClass: 'GLACIER' },
    { Days: 365, StorageClass: 'DEEP_ARCHIVE' }
  ]
}

2. Performance Optimization

Compression:

  • Images: WebP, JPEG optimization
  • Text: gzip, brotli
  • Archives: tar.gz, zip

CDN Integration:

  • Use CloudFront for static assets
  • Cache-Control headers
  • Invalidation strategies

Multipart Uploads:

  • Files > 100MB → Use multipart
  • Parallel part uploads
  • Resume capability

3. Organization Best Practices

Naming Conventions:

✅ Good:
s3://bucket/2025/10/15/backup-db.sql.gz
s3://bucket/users/avatars/user-123.jpg
s3://bucket/logs/app/2025-10-15.log

❌ Bad:
s3://bucket/file1.txt
s3://bucket/backup.sql
s3://bucket/IMG_0001.jpg

Prefix Strategy:

/production/   → Production files
/staging/      → Staging files
/backups/      → Automated backups
  /daily/      → Daily backups
  /weekly/     → Weekly backups
/logs/         → Application logs
/uploads/      → User uploads

4. Security Recommendations

Encryption:

  • Always encrypt sensitive data
  • Use KMS for encryption keys
  • Enable bucket encryption by default

Access Control:

  • Principle of least privilege
  • Use IAM policies, not public access
  • Regular access audits

Read the full file on GitHub · 128 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. yesterday First seen · 128 lines · 10 tokens per session scan A 8cd27ceba789

Subscribe to this mod's changes

storage-optimizer is an agent published in the GitHub repository cyperx84/claude-code-plugin-examples (2 stars, last pushed 10mo ago), licensed MIT. It adds 10 tokens to every session and 760 once invoked, about $0.0001 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-31.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens