storage-optimizer

storage-optimizer is a skill for Claude Code from drolosoft/immich-photo-manager. It costs 107 tokens per session (2,304 once invoked), scanned A, original, MIT.

A storage analysis tool for an Immich photo library, a self-hosted app for managing photos and videos. It identifies files and file types that use the most disk space.

In plain words
What is it for?
Use it to review storage usage, find large or redundant files, plan future capacity, and decide which originals or alternate formats to keep. It requires a connected Immich server.
Why use it?
It helps explain what is filling the server before you delete or reorganize anything. It can highlight duplicate photo versions, large videos, sidecar files, and inefficient formats.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the immich-photo-manager plugin — 13 skills, 5 commands shipped together

Good fit Use it to review storage usage, find large or redundant files, plan future capacity, and decide which originals or alternate formats to keep. It requires a connected Immich server.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/drolosoft/immich-photo-manager/storage-optimizer
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.

Any agent
npx skills add drolosoft/immich-photo-manager --skill storage-optimizer
Clone the repo
git clone --depth 1 https://github.com/drolosoft/immich-photo-manager

Made for: Claude Code.

Or install immich-photo-manager, the plugin that ships this one along with the rest of its 13 skills, 5 commands.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/drolosoft/immich-photo-manager/storage-optimizer/github.svg)](https://agentmods.dev/skills/drolosoft/immich-photo-manager/storage-optimizer)
Your own site
<a href="https://agentmods.dev/skills/drolosoft/immich-photo-manager/storage-optimizer"><img src="https://agentmods.dev/badge/skills/drolosoft/immich-photo-manager/storage-optimizer/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.

agentmods 80×15 button for storage-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/drolosoft/immich-photo-manager/storage-optimizer"><img src="https://agentmods.dev/badge/skills/drolosoft/immich-photo-manager/storage-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,304 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00107 $0.02304
Opus 5 $0.00053 $0.01152
Sonnet 5 $0.00021 $0.00461
Haiku 4.5 $0.00011 $0.00230

Measured 5d ago against content hash 1116161d5640, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 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.

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.

skills/storage-optimizer/SKILL.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.

Storage Optimizer

⚠️ Connection Required: ALWAYS CHECK FIRST

Before doing ANYTHING else in this skill, call ping on the Immich MCP server.

  • If ping succeeds → proceed with the skill normally.
  • If ping fails or the MCP tools are not available → STOP. Do not continue. Tell the user:

Immich is not connected. This plugin needs a running Immich MCP server to work.

Run /setup-immich-photo-manager to configure your Immich connection. You'll need:

  1. Your Immich server URL (e.g., http://192.168.1.100:2283)
  2. An Immich API key (how to create one)
  3. The MCP server configured (see /setup-immich-photo-manager)

Nothing in this plugin will work until the connection is configured.

Do NOT skip this check. Do NOT try to run any other tool first. Always ping, always block if it fails.

Analyze storage usage in an Immich photo library, identify the biggest consumers, and recommend strategies to reclaim space without losing important content.

When to Use

  • Disk space running low on the Immich server
  • After bulk imports to assess storage impact
  • Planning storage capacity (how long until disk is full?)
  • Deciding whether to keep RAW files, original videos, etc.

Analysis Workflow

Step 1: Storage Overview

get_statistics gives the totals (photos, videos, storage used) in one call, with no database access. The query below is the optional fallback for the per-type averages and maximums Immich's API does not report; the plugin never provides database access, so it only applies to a user who already has psql on their own Immich.

-- Total storage by asset type
SELECT type,
  count(*) as files,
  pg_size_pretty(sum(("exifInfo"->>'fileSizeInByte')::bigint)) as total_size,
  pg_size_pretty(avg(("exifInfo"->>'fileSizeInByte')::bigint)) as avg_size,
  pg_size_pretty(max(("exifInfo"->>'fileSizeInByte')::bigint)) as max_size
FROM asset WHERE "deletedAt" IS NULL
GROUP BY type;

-- Trash storage (reclaimable immediately)
SELECT
  count(*) as trashed_files,
  pg_size_pretty(sum(("exifInfo"->>'fileSizeInByte')::bigint)) as trash_size
FROM asset WHERE "deletedAt" IS NOT NULL;

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. 5d ago Changed 1116161d5640
  2. 5d ago Changed · +7 lines 9d5523cb9197
  3. 9d ago First seen · 198 lines · 107 tokens per session scan A 94c0bc23ed65

Subscribe to this mod's changes

storage-optimizer is a skill published in the GitHub repository drolosoft/immich-photo-manager (47 stars, last pushed 5d ago), licensed MIT. It adds 107 tokens to every session and 2,304 once invoked, about $0.0005 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-30.

Related

Other skills, from other repositories

ideogram-ultra

Build Ideogram 4 (Ideogram Ultra) txt2img and img2img workflows with the local open-weights model, dual conditional/unconditional models with DualModelGuider, Qwen3-VL text encoder, and structured JSON ("compositional deconstruction") prompts for strong text rendering and layout control.

artokun/comfyui-mcp · 68 tokens

model-compatibility

Model family compatibility matrix covering loaders, resolutions, samplers, CFG, VAE, ControlNet, and LoRA compatibility for SD 1.5, SDXL, Flux, SD3, and video models.

artokun/comfyui-mcp · 47 tokens

flux-txt2img

Build Flux txt2img workflows with Flux.1 Dev (SRPO), Flux 2 Klein 9B, Turbo LoRAs, FluxGuidance, and DualCLIPLoader patterns.

artokun/comfyui-mcp · 44 tokens

panel-node-pack-sync

Keep the ComfyUI sidebar panel node-pack (comfyui-agent-panel) in step with the orchestrator after comfyui-mcp updates. Use this whenever the orchestrator was just updated (installcomfyui (action:"selfupdate"), npm i -g comfyui-mcp, a new version in the ENVIRONMENT line), when a panel/bridge command fails in a way…

artokun/comfyui-mcp · 206 tokens

civitai

Discover Civitai models with the BUILT-IN downloadmodel action:"searchcivitai" and install/generate them locally. Find a checkpoint/LoRA/embedding on Civitai, download it into ComfyUI, and use its trigger words. Optionally pair the official Civitai MCP for community features (images browsing, posting, collections).

artokun/comfyui-mcp · 76 tokens

chief-strategy-officer

Owns where the business plays and how it wins over a multi-year horizon — portfolio choices, corporate development, strategic partnerships, and planning under uncertainty. Use this for a decision about which markets or businesses to be in, whether to build, buy, or partner, how to allocate capital across business…

cbrock84/headcount · 93 tokens