Logo von Capacity Planning

Capacity Planning

Community
ricmmartins
capacity-planning

Assess Azure resource capacity, quota utilization, and growth trends to prevent outages from resource exhaustion. Use when asked about capacity, quotas, scaling readiness, load testing prep, Black Friday readiness, or growth projections.

Übersicht

Herausgeberricmmartins
Repositoryazure-sre-agent-skills
Skill-Namecapacity-planning
Sterne
70
Forks
14
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von ricmmartins auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Capacity Planning in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/ricmmartins/azure-sre-agent-skills/tree/main/skills/03-capacity-planning
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ricmmartins/azure-sre-agent-skills.git /tmp/azure-sre-agent-skills
mkdir -p .claude/skills
cp -r /tmp/azure-sre-agent-skills/skills/03-capacity-planning .claude/skills/capacity-planning
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Capacity Planning in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Capacity Planning automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Capacity Planning nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Capacity Planning

Purpose

Analyze current resource utilization, quota consumption, and growth trends to predict capacity risks and recommend scaling actions before limits are hit.

When to use this skill

  • User asks "will our infrastructure handle the traffic spike?"
  • User asks about quotas, limits, or capacity
  • Pre-event planning (Black Friday, product launch, marketing campaign)
  • Quarterly capacity review
  • After hitting a quota or throttling limit

Pre-check

Confirm with the user:

  • Scope: which subscriptions and regions
  • Time horizon: when is the expected load increase? (default: 30 days)
  • Expected growth factor (e.g., 2x, 5x, 10x current load)
  • Critical workloads to prioritize

Assessment procedure

Step 1: Quota utilization

Check current quota usage across all critical resource providers.

bash
az vm list-usage --location <region> -o table
az network list-usages --location <region> -o table
az storage account list --query "length(@)"

Check for:

  • vCPU quotas: Total and per-family (Dv5, Ev5, etc.) — flag if > 70% utilized
  • Public IPs: Usage vs. limit
  • Load balancers: Usage vs. limit
  • Network interfaces: Usage vs. limit
  • Storage accounts per subscription: Usage vs. 250 limit
  • App Service plans per region
  • AKS clusters per subscription

Build a quota utilization table. Use Unicode emoji characters directly (🟢🟡🔴) — never use emoji shortcodes like :green_circle: or :red_circle:.

ResourceRegionUsedLimitUtilizationRisk
Total vCPUsEast US8510085%🔴
Dv5 vCPUsEast US325064%🟡
Public IPsEast US82040%🟢

Step 2: Compute capacity

Analyze current compute utilization and headroom.

  1. VM utilization (last 14 days):

    • Average and P95 CPU across all VMs
    • Average and P95 memory (if available via Log Analytics)
    • Flag VMs consistently > 80% CPU or memory
  2. App Service plan utilization:

    bash
    az appservice plan list --query "[].{name:name, sku:sku.name, workers:numberOfWorkers, maxWorkers:maximumElasticWorkerCount}" -o table
    • Current instance count vs. max
    • CPU/memory % of the plan
    • Autoscale rules and current headroom
  3. AKS cluster capacity:

    bash
    az aks list --query "[].{name:name, nodeCount:agentPoolProfiles[0].count, maxCount:agentPoolProfiles[0].maxCount, vmSize:agentPoolProfiles[0].vmSize}" -o table
    • Node count vs. max count
    • Pod density per node
    • Cluster autoscaler configuration
  4. Container Apps:

    • Current replicas vs. max replicas
    • Autoscale rules (HTTP concurrency, CPU, custom)

Step 3: Data layer capacity

  1. SQL Database:

    • DTU/vCore utilization (avg and P95)
    • Storage usage vs. max size
    • Connection count vs. limit
  2. Cosmos DB:

    • RU consumption vs. provisioned (or autoscale max)
    • Storage per container
    • 429 (throttling) rate from metrics
  3. Redis Cache:

    • Memory usage %
    • Connection count vs. max
    • Server load %
  4. Storage accounts:

    • Ingress/egress patterns
    • Transaction rates vs. limits
    • Blob count growth rate

Step 4: Networking capacity

  1. ExpressRoute / VPN Gateway: Bandwidth utilization %
  2. Application Gateway / Front Door: Connection count, throughput
  3. NAT Gateway: SNAT port utilization
  4. DNS zones: Query volume trends

Step 5: Growth projection

Based on the data collected:

  1. Plot utilization trends for the last 90 days
  2. Apply linear projection to estimate when each resource hits 80% and 100%
  3. If the user specified a growth factor, multiply current usage and check against limits

Build a risk timeline:

ResourceCurrentAt 2x LoadAt 5x LoadHits LimitAction Needed
vCPUs East US85/100170 ❌425 ❌NowQuota increase
SQL DTU60%120% ❌300% ❌At 1.7xScale up tier
AKS nodes5/1010/10 ⚠️25 ❌At 2xIncrease max
Redis memory45%90% ⚠️225% ❌At 2.2xUpgrade SKU

Step 6: Quota increase requests

For any quota that needs increasing, generate the correct request command:

bash
# Request a quota increase via the Azure portal Support + Troubleshooting flow,
# or use the REST API directly:
az rest --method patch \
  --url "https://management.azure.com/subscriptions/<sub-id>/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/<region>/serviceLimits/StandardDv5Family?api-version=2020-10-25" \
  --body '{"properties":{"limit":{"limitObjectType":"LimitValue","value":<new-limit>}}}'

Note: The az quota CLI extension is in preview and syntax may change. The REST API approach above is stable. Alternatively, guide users to submit quota requests via the Azure portal: Help + support > New support request > Service and subscription limits (quotas).

Step 7: Recommendations

For each risk identified:

  1. Immediate: Quota increase requests, SKU upgrades
  2. Short-term (1-2 weeks): Autoscale configuration, caching layers
  3. Long-term: Architecture changes (sharding, async patterns, CDN)

Accepted exceptions (optional)

If the user provides a list of accepted exceptions, do not flag those items. Instead, note them in the report as Accepted Exception with the reason provided.

Example format the user may provide:

CheckReason
1.1 vCPU quota utilizationQuota increase already submitted, awaiting approval
2.3 AKS cluster capacityCluster is scheduled for decommission next month
4.2 Application Gateway throughputTraffic is seasonal, current capacity is intentional

When exceptions are provided:

  • Skip the flagged checks in scoring
  • List them in a separate "Accepted Exceptions" section at the end of the report
  • Recalculate the overall score excluding excepted checks

Expected output

Report header (mandatory — use this exact format)

Capacity Planning Report

FieldValue
Subscription(name + ID)
Assessment DateYYYY-MM-DD
Region(s) Assessed(list)

Capacity summary

MetricValue
🏗️ Resources scannedX
⚠️ Resources at risk (>70% capacity)Y
🔴 Resources critical (>90% capacity)Z
📈 Projected limit breach within 30 daysW resources

Risk matrix

Table with all resources, current utilization, projected utilization at specified growth factor, and recommended action.

Scaling runbook

Step-by-step actions to prepare for the expected load increase, ordered by priority and dependency.

Remediation guidance

For each capacity risk identified, include in the output:

  1. The specific az CLI command to remediate (quota increase, scale-up, autoscale config)
  2. Use GetAzCliHelp to validate the command syntax before suggesting
  3. The official Microsoft Learn documentation link

References

Sample output

The following is a redacted example of what the report looks like when run against a subscription.

Capacity Planning Report

FieldValue
Subscriptioncontoso-prod-001 (a1b2c3d4-e5f6-7890-abcd-ef1234567890)
Assessment Date2026-07-15
Region(s) AssessedEast US, West Europe

Capacity summary

MetricValue
🏗️ Resources scanned47
⚠️ Resources at risk (>70% capacity)5
🔴 Resources critical (>90% capacity)2
📈 Projected limit breach within 30 days1 resource

Risk matrix (sample)

ResourceRegionCurrentAt 2x LoadHits LimitAction Needed
Total vCPUsEast US85/100 (85%)170 ❌NowQuota increase
Dv5 vCPUsEast US32/50 (64%)64 ⚠️At 1.6xQuota increase
SQL DTU sql-contoso-prodEast US78% avg156% ❌At 1.3xScale up tier
AKS nodes aks-app-prodWest Europe7/1014 ❌At 1.4xIncrease max count
Public IPsEast US8/20 (40%)16 🟢At 2.5xMonitor

Scaling runbook (sample)

PriorityActionResourceEstimated Time
1Request vCPU quota increase to 200East US subscription1–3 business days
2Scale SQL DB from S3 to S4sql-contoso-prod15 min (online)
3Increase AKS max node count to 20aks-app-prod5 min

Remediation guidance (sample)

bash
# Request vCPU quota increase via REST API
az rest --method patch \
  --url "https://management.azure.com/subscriptions/a1b2c3d4-.../providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimits/StandardDv5Family?api-version=2020-10-25" \
  --body '{"properties":{"limit":{"limitObjectType":"LimitValue","value":200}}}'

# Scale up SQL Database
az sql db update --resource-group rg-data-prod --server sql-contoso-prod --name appdb --service-objective S4

Häufig gestellte Fragen

Was macht der KI-Skill Capacity Planning?

Assess Azure resource capacity, quota utilization, and growth trends to prevent outages from resource exhaustion. Use when asked about capacity, quotas, scaling readiness, load testing prep, Black Friday readiness, or growth projections.

Warum Capacity Planning in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Capacity Planning besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Capacity Planning in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/ricmmartins/azure-sre-agent-skills/tree/main/skills/03-capacity-planning ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Capacity Planning nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Capacity Planning verwenden?

So viele Sie möchten. In TypingMind können Sie Capacity Planning mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Capacity Planning kostenlos?

Ja. Der Skill wird von ricmmartins auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇