optimizing-azure-blob-storage-cost

optimizing-azure-blob-storage-cost is a skill for Claude Code from alexpizarro/azure-lean-stack-skills. It costs 100 tokens per session (1,535 once invoked), scanned A, original, MIT.

A set of Azure Blob Storage configuration patterns for temporary files and long-lived production data. Azure Blob Storage is Microsoft's service for storing files such as videos, images, uploads, and archives.

In plain words
What is it for?
Use it when adding or reviewing blob storage, configuring automatic deletion and Hot, Cool, or Cold storage tiers, setting up browser uploads and range reads, or choosing storage redundancy and container access.
Why use it?
It helps prevent storage costs from growing because temporary files are left indefinitely or permanent files remain in expensive storage tiers. It also addresses upload, download, browser-access, visibility, and redundancy choices.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the azure-lean-stack-skills plugin — 16 skills shipped together

Good fit Use it when adding or reviewing blob storage, configuring automatic deletion and Hot, Cool, or Cold storage tiers, setting up browser uploads and range reads, or choosing storage redundancy and container access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexpizarro/azure-lean-stack-skills/optimizing-azure-blob-storage-cost
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 alexpizarro/azure-lean-stack-skills --skill optimizing-azure-blob-storage-cost
Clone the repo
git clone --depth 1 https://github.com/alexpizarro/azure-lean-stack-skills

Made for: Claude Code.

Or install azure-lean-stack-skills, the plugin that ships this one along with the rest of its 16 skills.

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 optimizing-azure-blob-storage-cost

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexpizarro/azure-lean-stack-skills/optimizing-azure-blob-storage-cost/github.svg)](https://agentmods.dev/skills/alexpizarro/azure-lean-stack-skills/optimizing-azure-blob-storage-cost)
Your own site
<a href="https://agentmods.dev/skills/alexpizarro/azure-lean-stack-skills/optimizing-azure-blob-storage-cost"><img src="https://agentmods.dev/badge/skills/alexpizarro/azure-lean-stack-skills/optimizing-azure-blob-storage-cost/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 optimizing-azure-blob-storage-cost

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexpizarro/azure-lean-stack-skills/optimizing-azure-blob-storage-cost"><img src="https://agentmods.dev/badge/skills/alexpizarro/azure-lean-stack-skills/optimizing-azure-blob-storage-cost.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,535 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.
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.00100 $0.01535
Opus 5 $0.00050 $0.00767
Sonnet 5 $0.00020 $0.00307
Haiku 4.5 $0.00010 $0.00153

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

Security

Grade A, and why

optimizing-azure-blob-storage-cost 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 11d 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/optimizing-azure-blob-storage-cost/SKILL.md · 175 lines

How it starts

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

Optimizing Azure Blob Storage Cost

Default-low-cost blob storage with lifecycle rules tuned for media workloads (and any pattern with ephemeral temp blobs + long-lived primary blobs).

When to invoke

  • Adding a blob storage account to a project
  • Designing for uploads (SAS-based) + serving (Range / CORS)
  • Auditing an existing storage account that's growing unbounded
  • A project that stores media (video, large images, archives) where retention > 60 days

The two-pattern playbook

Pattern A: temp + permanent containers

Most apps have two flavours of blob:

  • Temp — short-lived working data (uploads being processed, intermediate transformations, cache)
  • Permanent — user-visible content (videos, images, exports)

Apply different lifecycle rules to each:

resource tempBlobLifecycle 'Microsoft.Storage/storageAccounts/managementPolicies@2023-05-01' = {
  parent: storageAccount
  name: 'default'
  properties: {
    policy: {
      rules: [
        // Rule 1: delete stale temp blobs after 7 days
        {
          enabled: true
          name: 'delete-stale-temp-blobs'
          type: 'Lifecycle'
          definition: {
            filters: {
              blobTypes: ['blockBlob']
              prefixMatch: ['incoming/', 'processor-jobs/', 'tmp/']
            }
            actions: {
              baseBlob: { delete: { daysAfterModificationGreaterThan: 7 } }
            }
          }
        }
        // Rule 2: age permanent blobs through tiers — NEVER use Archive for
        // playable/viewable content (rehydration takes hours)
        {
          enabled: true
          name: 'tier-aging-content'
          type: 'Lifecycle'
          definition: {
            filters: {
              blobTypes: ['blockBlob']
              prefixMatch: ['videos/', 'images/', 'exports/']
            }
            actions: {
              baseBlob: {
                tierToCool: { daysAfterModificationGreaterThan: 60 }
                tierToCold: { daysAfterModificationGreaterThan: 180 }
                // intentionally NO tierToArchive — needs rehydration
              }
            }
          }
        }
      ]
    }
  }
}

Read the full file on GitHub · 175 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 175 lines · 100 tokens per session scan A d22afb19d54c

Subscribe to this mod's changes

optimizing-azure-blob-storage-cost is a skill published in the GitHub repository alexpizarro/azure-lean-stack-skills (1 stars, last pushed 1mo ago), licensed MIT. It adds 100 tokens to every session and 1,535 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-31.

Related

Other skills, from other repositories

azure-expert

Expert-level Microsoft Azure cloud platform, services, and architecture. Use when the user mentions cloud, Microsoft platforms, Azure Functions, or Cosmos DB.

personamanagmentlayer/pcl · 33 tokens

azure-mgmt-applicationinsights-dotnet

Azure Application Insights SDK for .NET. Application performance monitoring and observability resource management. Use for creating Application Insights components, web tests, workbooks, analytics items, and API keys. Triggers: "Application Insights", "ApplicationInsights", "App Insights", "APM", "application…

microsoft/skills · 82 tokens

azure-resource-manager-mysql-dotnet

Azure MySQL Flexible Server SDK for .NET. Database management for MySQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "MySQL", "MySqlFlexibleServer", "MySQL Flexible Server", "Azure Database for MySQL", "MySQL database…

microsoft/skills · 87 tokens

azure-eventhub-dotnet

Azure Event Hubs SDK for .NET. Use for high-throughput event streaming: sending events (EventHubProducerClient, EventHubBufferedProducerClient), receiving events (EventProcessorClient with checkpointing), partition management, and real-time data ingestion. Triggers: "Event Hubs", "event streaming"…

microsoft/skills · 94 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

azure-mgmt-fabric-dotnet

Azure Resource Manager SDK for Fabric in .NET. Use for MANAGEMENT PLANE operations: provisioning, scaling, suspending/resuming Microsoft Fabric capacities, checking name availability, and listing SKUs via Azure Resource Manager. Triggers: "Fabric capacity", "create capacity", "suspend capacity", "resume capacity"…

microsoft/skills · 88 tokens