capacity

capacity is a skill for Claude Code, Codex from microsoft/azure-skills. It costs 105 tokens per session (1,617 once invoked), scanned A, a copy of capacity, MIT.

A read-only tool for finding where Microsoft Azure has enough capacity to deploy an OpenAI model. It checks accessible regions and projects, then ranks the available options.

In plain words
What is it for?
It is for checking model availability, comparing Azure regions and projects, and finding a location that meets a capacity target.
Why use it?
It removes the guesswork when a deployment fails because a region or project has reached its quota.

Skill for Claude CodeCodex

Part of the azure plugin — 38 skills, 1 plugin shipped together

About the project

Azure Skills Plugin is an agent plugin that packages Azure-specific guidance with MCP server configurations for carrying out Azure work. Coding agents use it to plan, deploy, troubleshoot, monitor, govern, and optimize Azure applications and services. The catalogue entries are the plugin's skills, instructions, and execution integrations.

microsoft/azure-skills · 1,453 stars · on GitHub

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 skills/microsoft/azure-skills/capacity
Any agent
npx skills add microsoft/azure-skills --skill capacity
Clone the repo
git clone --depth 1 https://github.com/microsoft/azure-skills

Made for: Claude Code, Codex.

Or install azure, the plugin that ships this one along with the rest of its 38 skills, 1 plugin.

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 capacity

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/azure-skills/capacity.svg)](https://agentmods.dev/skills/microsoft/azure-skills/capacity)
Your own site
<a href="https://agentmods.dev/skills/microsoft/azure-skills/capacity"><img src="https://agentmods.dev/badge/skills/microsoft/azure-skills/capacity.svg" alt="Measured on agentmods" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,617 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00105 $0.01617
Opus 5 $0.00053 $0.00809
Sonnet 5 $0.00021 $0.00323
Haiku 4.5 $0.00011 $0.00162

Measured 5d ago against content hash 91b3ce958de4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

capacity 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.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/discover_and_rank.ps1, scripts/discover_and_rank.sh, scripts/query_capacity.ps1, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

This is a copy

100% identical to capacity — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.github/plugins/azure-skills/skills/microsoft-foundry/models/deploy-model/capacity/SKILL.md · 147 lines

How it starts

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

Capacity Discovery

Finds available Azure OpenAI model capacity across all accessible regions and projects. Recommends the best deployment location based on capacity requirements.

Quick Reference

Property Description
Purpose Find where you can deploy a model with sufficient capacity
Scope All regions and projects the user has access to
Output Ranked table of regions/projects with available capacity
Action Read-only analysis — does NOT deploy. Hands off to preset or customize
Authentication Azure CLI (az login)

When to Use This Skill

  • ✅ User asks "where can I deploy gpt-4o?"
  • ✅ User specifies a capacity target: "find a region with 10K TPM for gpt-4o"
  • ✅ User wants to compare availability: "which regions have gpt-4o available?"
  • ✅ User got a quota error and needs to find an alternative location
  • ✅ User asks "best region and project for deploying model X"

After discovery → hand off to preset or customize for actual deployment.

Scripts

Pre-built scripts handle the complex REST API calls and data processing. Use these instead of constructing commands manually.

Script Purpose Usage
scripts/discover_and_rank.ps1 Full discovery: capacity + projects + ranking Primary script for capacity discovery
scripts/discover_and_rank.sh Same as above (bash) Primary script for capacity discovery
scripts/query_capacity.ps1 Raw capacity query (no project matching) Quick capacity check or version listing
scripts/query_capacity.sh Same as above (bash) Quick capacity check or version listing

Workflow

Phase 1: Validate Prerequisites

az account show --query "{Subscription:name, SubscriptionId:id}" --output table

Phase 2: Identify Model and Version

Extract model name from user prompt. If version is unknown, query available versions:

.\scripts\query_capacity.ps1 -ModelName <model-name>
./scripts/query_capacity.sh <model-name>

Read the full file on GitHub · 147 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. 5d ago First seen · 147 lines · 105 tokens per session scan A 91b3ce958de4

Subscribe to this mod's changes

capacity is a skill published in the GitHub repository microsoft/azure-skills (1,453 stars, last pushed today), licensed MIT. It adds 105 tokens to every session and 1,617 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to capacity, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

tensorrt-llm

High-throughput LLM inference on NVIDIA GPUs.

NousResearch/hermes-agent · 18 tokens

google-cloud-solution-guided-gke-ai-migration

Guides the migration of existing AI workloads (Cloud Run, Gemini API, Gemini Enterprise Agent Platform) to self-hosted GKE inference using gcloud and kubectl. Use when the user has an existing AI inference workload (on Cloud Run, the Gemini API, Gemini Enterprise Agent Platform, or a custom VM) and wants to move it to…

google/skills · 157 tokens

agent-platform-tuning

Agent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outside Agent Platform, model deployment to endpoints (use agent-platform-deploy), or managing serving endpoints (use agent-platform-endpoint-management).

google/skills · 64 tokens

modal

Modal is a serverless cloud platform for running Python on demand, including on-demand GPUs. Use when deploying or serving AI/ML models, running GPU-accelerated workloads (training, fine-tuning, inference), serving web endpoints, scheduling batch jobs, or scaling Python code to cloud containers with the Modal SDK.

K-Dense-AI/scientific-agent-skills · 65 tokens

agent-platform-endpoint-management

Manages Agent Platform serving endpoints. Use when you need to create, list, describe, update, or delete serving endpoints for model deployment on Agent Platform. Also use when troubleshooting endpoint permission, quota, or resource busy errors. Don't use for deploying models to endpoints or for running model…

google/skills · 64 tokens

gke-inference

Deploys and optimizes AI/ML inference workloads on GKE, using GPUs, TPUs, and model servers. Use when deploying GKE inference servers, configuring GKE GPU resources for inference, or deploying LLMs on GKE. Don't use for generic batch jobs or HPC task queues (use gke-batch-hpc instead).

google/skills · 74 tokens