capacity
Discovers available Azure OpenAI model capacity across regions and projects. Analyzes quota limits, compares availability, and recommends optimal deployment locations based on capacity requirements. USE FOR: find capacity, check quota, where can I deploy, capacity discovery, best region for capacity, multi-project capacity search, quota analysis, model availability, region comparison, check TPM availability. DO NOT USE FOR: actual deployment (hand off to preset or customize after discovery), quota increase requests (direct user to Azure Portal), listing existing deployments.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o capacity.zip https://jpskill.com/download/19679.zip && unzip -o capacity.zip && rm capacity.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19679.zip -OutFile "$d\capacity.zip"; Expand-Archive "$d\capacity.zip" -DestinationPath $d -Force; ri "$d\capacity.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
capacity.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
capacityフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 5
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[スキル名] 容量
容量の検出
アクセス可能なすべての Azure OpenAI モデルの容量を、すべてのリージョンとプロジェクトで検出します。容量要件に基づいて最適なデプロイ場所を推奨します。
クイックリファレンス
| プロパティ | 説明 |
|---|---|
| 目的 | 十分な容量を持つモデルをデプロイできる場所を見つける |
| スコープ | ユーザーがアクセスできるすべてのリージョンとプロジェクト |
| 出力 | 利用可能な容量を持つリージョン/プロジェクトのランク付けされた表 |
| アクション | 読み取り専用分析 — デプロイは行いません。プリセットまたはカスタマイズに引き渡します |
| 認証 | Azure CLI (az login) |
このスキルを使用するタイミング
- ✅ ユーザーが「gpt-4o をどこにデプロイできますか?」と尋ねる場合
- ✅ ユーザーが容量ターゲットを指定する場合:「gpt-4o の 10K TPM を持つリージョンを見つけてください」
- ✅ ユーザーが可用性を比較したい場合:「どのリージョンで gpt-4o が利用可能ですか?」
- ✅ ユーザーがクォータエラーを受け取り、代替の場所を見つける必要がある場合
- ✅ ユーザーが「モデル X をデプロイするのに最適なリージョンとプロジェクト」と尋ねる場合
検出後 → 実際のデプロイのために プリセット または カスタマイズ に引き渡します。
スクリプト
事前に構築されたスクリプトは、複雑な REST API 呼び出しとデータ処理を処理します。コマンドを手動で構築する代わりに、これらを使用してください。
| スクリプト | 目的 | 使用法 |
|---|---|---|
scripts/discover_and_rank.ps1 |
完全な検出:容量 + プロジェクト + ランキング | 容量検出の主要スクリプト |
scripts/discover_and_rank.sh |
上記と同じ (bash) | 容量検出の主要スクリプト |
scripts/query_capacity.ps1 |
生の容量クエリ (プロジェクトの一致なし) | クイック容量チェックまたはバージョンリスト表示 |
scripts/query_capacity.sh |
上記と同じ (bash) | クイック容量チェックまたはバージョンリスト表示 |
ワークフロー
フェーズ 1: 前提条件の検証
az account show --query "{Subscription:name, SubscriptionId:id}" --output table
フェーズ 2: モデルとバージョンの特定
ユーザープロンプトからモデル名を抽出します。バージョンが不明な場合は、利用可能なバージョンをクエリします。
.\scripts\query_capacity.ps1 -ModelName <model-name>
./scripts/query_capacity.sh <model-name>
これにより、利用可能なバージョンがリストされます。ユーザーが特に指定しない限り、最新バージョンを使用してください。
フェーズ 3: 検出の実行
モデル名、バージョン、および最小容量ターゲットを指定して、完全な検出スクリプトを実行します。
.\scripts\discover_and_rank.ps1 -ModelName <model-name> -ModelVersion <version> -MinCapacity <target>
./scripts/discover_and_rank.sh <model-name> <version> <min-capacity>
💡 スクリプトは、すべてのリージョンで容量を自動的にクエリし、ユーザーの既存のプロジェクトと相互参照し、ターゲットを満たすか → プロジェクト数 → 利用可能な容量の順にソートされたランク付けされた表を出力します。
フェーズ 3.5: サブスクリプションクォータの検証
検出によって候補リージョンが特定された後、ユーザーのサブスクリプションが実際に各リージョンで利用可能なクォータを持っていることを検証します。モデル容量(フェーズ 3 から)はプラットフォームがサポートできるものを示しますが、サブスクリプションクォータはこの特定のユーザーがデプロイできるものを制限します。
# 検出結果からの各候補リージョンについて:
$usageData = az cognitiveservices usage list --location <region> --subscription $SUBSCRIPTION_ID -o json 2>$null | ConvertFrom-Json
# モデルがサポートする各 SKU のクォータを確認
# クォータ名はパターンに従います:OpenAI.<SKU>.<model-name>
$usageEntry = $usageData | Where-Object { $_.name.value -eq "OpenAI.<SKU>.<model-name>" }
if ($usageEntry) {
$quotaAvailable = $usageEntry.limit - $usageEntry.currentValue
} else {
$quotaAvailable = 0 # クォータが割り当てられていません
}
# 検出結果からの各候補リージョンについて:
usage_json=$(az cognitiveservices usage list --location <region> --subscription "$SUBSCRIPTION_ID" -o json 2>/dev/null)
# 特定の SKU+モデルのクォータを抽出
quota_available=$(echo "$usage_json" | jq -r --arg name "OpenAI.<SKU>.<model-name>" \
'.[] | select(.name.value == $name) | .limit - .currentValue')
検出結果に注釈を付けます。
フェーズ 3 のランク付けされた出力に「利用可能なクォータ」列を追加します。
| リージョン | 利用可能な容量 | ターゲットを満たす | プロジェクト | 利用可能なクォータ |
|---|---|---|---|---|
| eastus2 | 120K TPM | ✅ | 3 | ✅ 80K |
| westus3 | 90K TPM | ✅ | 1 | ❌ 0 (上限に達しています) |
| swedencentral | 100K TPM | ✅ | 0 | ✅ 100K |
quotaAvailable = 0 のリージョン/SKU は、結果で ❌ とマークする必要があります。利用可能なクォータを持つリージョンがない場合は、増加リクエストとトラブルシューティングのために クォータスキル に引き渡します。
フェーズ 4: 結果の提示と引き渡し
スクリプトがランク付けされた表(クォータ情報で注釈が付けられたもの)を出力した後、それをユーザーに提示し、尋ねます。
- 🚀 デフォルトでトップ推奨にクイックデプロイ → プリセット にルーティング
- ⚙️ バージョン/SKU/容量/RAI 選択によるカスタムデプロイ → カスタマイズ にルーティング
- 📊 別のモデルまたは容量ターゲットを確認 → フェーズ 2 を再実行
- ❌ キャンセル
フェーズ 5: デプロイ前のプロジェクトの確認
プリセットまたはカスタマイズに引き渡す前に、常にターゲットプロジェクトをユーザーと確認してください。親ルーターの プロジェクト選択 ルールを参照してください。
検出表に選択したリージョンのサンプルプロジェクトが表示されている場合は、それをデフォルトとして提案します。そうでない場合は、そのリージョンのプロジェクトをクエリし、ユーザーに選択させます。
エラー処理
| エラー | 原因 | 解決策 |
|---|---|---|
| 「容量が見つかりません」 | モデルが利用できないか、すべてクォータに達している | 増加リクエストとトラブルシューティングのために クォータスキル に引き渡します |
| スクリプト認証エラー | az login の有効期限切れ |
az login を再実行します |
| 空のバージョンリスト | モデルがリージョンカタログにない | 別のリージョンを試してください:./scripts/query_capacity.sh <model> "" eastus |
| 「プロジェクトが見つかりません」 | AI Services リソースがない | project/create スキルまたは Azure Portal に誘導します |
関連スキル
- プリセット — C 後にクイックデプロイ
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
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>
This lists available versions. Use the latest version unless user specifies otherwise.
Phase 3: Run Discovery
Run the full discovery script with model name, version, and minimum capacity target:
.\scripts\discover_and_rank.ps1 -ModelName <model-name> -ModelVersion <version> -MinCapacity <target>
./scripts/discover_and_rank.sh <model-name> <version> <min-capacity>
💡 The script automatically queries capacity across ALL regions, cross-references with the user's existing projects, and outputs a ranked table sorted by: meets target → project count → available capacity.
Phase 3.5: Validate Subscription Quota
After discovery identifies candidate regions, validate that the user's subscription actually has available quota in each region. Model capacity (from Phase 3) shows what the platform can support, but subscription quota limits what this specific user can deploy.
# For each candidate region from discovery results:
$usageData = az cognitiveservices usage list --location <region> --subscription $SUBSCRIPTION_ID -o json 2>$null | ConvertFrom-Json
# Check quota for each SKU the model supports
# Quota names follow pattern: OpenAI.<SKU>.<model-name>
$usageEntry = $usageData | Where-Object { $_.name.value -eq "OpenAI.<SKU>.<model-name>" }
if ($usageEntry) {
$quotaAvailable = $usageEntry.limit - $usageEntry.currentValue
} else {
$quotaAvailable = 0 # No quota allocated
}
# For each candidate region from discovery results:
usage_json=$(az cognitiveservices usage list --location <region> --subscription "$SUBSCRIPTION_ID" -o json 2>/dev/null)
# Extract quota for specific SKU+model
quota_available=$(echo "$usage_json" | jq -r --arg name "OpenAI.<SKU>.<model-name>" \
'.[] | select(.name.value == $name) | .limit - .currentValue')
Annotate discovery results:
Add a "Quota Available" column to the ranked output from Phase 3:
| Region | Available Capacity | Meets Target | Projects | Quota Available |
|---|---|---|---|---|
| eastus2 | 120K TPM | ✅ | 3 | ✅ 80K |
| westus3 | 90K TPM | ✅ | 1 | ❌ 0 (at limit) |
| swedencentral | 100K TPM | ✅ | 0 | ✅ 100K |
Regions/SKUs where quotaAvailable = 0 should be marked with ❌ in the results. If no region has available quota, hand off to the quota skill for increase requests and troubleshooting.
Phase 4: Present Results and Hand Off
After the script outputs the ranked table (now annotated with quota info), present it to the user and ask:
- 🚀 Quick deploy to top recommendation with defaults → route to preset
- ⚙️ Custom deploy with version/SKU/capacity/RAI selection → route to customize
- 📊 Check another model or capacity target → re-run Phase 2
- ❌ Cancel
Phase 5: Confirm Project Before Deploying
Before handing off to preset or customize, always confirm the target project with the user. See the Project Selection rules in the parent router.
If the discovery table shows a sample project for the chosen region, suggest it as the default. Otherwise, query projects in that region and let the user pick.
Error Handling
| Error | Cause | Resolution |
|---|---|---|
| "No capacity found" | Model not available or all at quota | Hand off to quota skill for increase requests and troubleshooting |
| Script auth error | az login expired |
Re-run az login |
| Empty version list | Model not in region catalog | Try a different region: ./scripts/query_capacity.sh <model> "" eastus |
| "No projects found" | No AI Services resources | Guide to project/create skill or Azure Portal |
Related Skills
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (6,956 bytes)
- 📎 scripts/discover_and_rank.ps1 (4,670 bytes)
- 📎 scripts/discover_and_rank.sh (4,641 bytes)
- 📎 scripts/query_capacity.ps1 (3,030 bytes)
- 📎 scripts/query_capacity.sh (2,942 bytes)