All skills
microsoft avatar

/prepare

@b8a1c66
by microsoftmicrosoft/skills3.1k stars
351

Skills, MCP servers, Custom Agents, Agents.md for SDKs to ground Coding Agents

  • 13 files
  • 71.3 KB
  • Updated last week
  • GitHub

Use this Skill: https://skilld.dev/gh/microsoft/skills/prepare

This session only. Nothing lands on disk.

referencessubagent-quota.md

โ‰ˆ892 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Subagent Template โ€” Quota Validation (Step 5)

Validate SKU quota and offer restrictions across candidate regions before presenting region choices.

Critical Rules

  • โ›” Do NOT invoke ANY skills โ€” no {"skill": "azure-validate"}, {"skill": "azure-prepare"}, or any other skill call. You are a quota-check subagent only.
  • Read sku-quota-validation.md before executing ANY quota or offer restriction check. It contains the per-provider API patterns, anti-patterns to avoid, offer restriction checks for database services, region selection logic, and output schema. All procedures live there โ€” follow them exactly.

Input (provided by caller)

Field Required
subscriptionId YES
SKU list from Step 4 (service type + SKU per service) YES
Restricted-offer services (PostgreSQL, MySQL) If present in plan
Detected DB version per DB service (from context.json.detectedServices[], e.g. MySQL 5.7) โ›” REQUIRED if a DB is in the plan โ€” the version-selection algorithm in sku-quota-validation.md needs it.

Output

Return JSON (โ‰ค500 tokens):

{
  "quotaResults": [
    {
      "region": "{checked region}",
      "services": [
        { "service": "{provider}", "sku": "{sku}", "limit": "{from API}", "used": "{from API}", "available": "{limit - used > 0}" },
        // if DB service: add "offerRestricted": "{from capabilities API}", "version": "{selected per sku-quota-validation.md โ€” exact patch, never major-only '8.0'}"
      ],
      "allAvailable": "{true only if ALL services in this region have available=true}"
    }
    // one entry per checked region
  ],
  "recommendedRegion": "{first region where allAvailable=true}",
  "checkedRegions": ["{all regions checked}"],
  "offerRestrictions": [
    // one entry per DB service+region checked โ€” derive from capabilities API response
    { "provider": "{namespace}", "region": "{region}", "restricted": "{true if blocked}", "reason": "{from API or null}" }
  ],
  "offerRestrictionsVerified": "{true only if every DB service from input has โ‰ฅ1 entry in offerRestrictions[]}"
}

โ›” Caller: copy each DB service's returned version into prepare-plan.json.services[].version at plan-write โ€” scaffold needs the exact patch (ARM rejects major-only '8.0').

Workflow

  1. Read sku-quota-validation.md
  2. Run the per-provider quota checks for every SKU across all candidate regions
  3. If restricted-offer services are in the input, run the offer restriction check for each database service in each candidate region per sku-quota-validation.md ยง Offer Restriction Check
  4. Return results per the Output schema above (โ‰ค500 tokens)

Anti-Patterns (from sku-quota-validation.md โ€” repeated here as guardrails)

  • โ›” az vm list-usage โ€” wrong provider, misleading data
  • โ›” az appservice list-locations โ€” lists locations, NOT quota
  • โ›” az appservice list-usages โ€” wrong scope
  • โ›” mcp_azure_mcp_quota โ€” unreliable for App Service
  • โ›” az quota list โ€” extension loading fails on Windows
  • โ›” Use az rest for ALL quota checks

Rules

  • โ›” Free โ‰  unlimited โ€” F1, Consumption, Serverless all have per-subscription, per-region quotas
  • โ›” Check BOTH limit AND current usage โ€” limit=1, usage=1 means FULL
  • โ›” For PostgreSQL/MySQL: run offer restriction check per sku-quota-validation.md ยง Offer Restriction Check

Token Budget

โ‰ค500 tokens for quota results report.

Source: SKILL.md on GitHub

No third-party reports yet.

Signed by skilld at b8a1c66. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last week

README badge

README badge for microsoft/skills/prepare