azure-prices
Skill578 starsChanged 11 months agoCC0-1.0View on GitHub
Look up and compare Azure service pricing using the Azure Retail Prices API. Use this skill whenever the user asks about Azure costs, pricing, rates, or wants to compare prices across regions or services — even if they don't say "pricing" explicitly. Trigger for questions like "how much does a D2 v2 VM cost?", "cheapest region for Azure SQL", or "compare storage prices between eastus and westeurope".
In this repository3 other files it gives its agents.
- calculatorSkill
- az-cliSkill
- jira-cliSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Always use the bundled npm script for price lookups and comparisons when terminal execution is available.
- Distinctive: line 18
DO NOT: call the Azure Retail Prices API directly.
- Very specific: line 22
All scripts live in ./scripts/ and run via npm:
- Distinctive: line 37
When called with no arguments, it prints a sample of available service names.
- Distinctive: line 45
Run the script with the service name and region.
- Distinctive: line 61
Run prices for the target service across several common regions and sort by price.
- Distinctive: line 69
If the user isn't sure of the exact service name, run the script with no arguments first to get a sample of available names, then use the …
- Distinctive: line 73
If command execution is unavailable, use the local script implementation as the behavioral reference, then fall back to public pricing …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Azure Prices
Fetch and compare live Azure service pricing using the bundled scripts that call the Azure Retail Prices API.
Execution Rules
Always use the bundled npm script for price lookups and comparisons when terminal execution is available.
DO NOT call the Azure Retail Prices API directly. You can only use the script to call the API.
Scripts
All scripts live in ./scripts/ and run via npm:
# List sample service names (discover what's available)
npm run --prefix ./scripts get-prices
# Get prices for a service in a region (default region: eastus)
npm run --prefix ./scripts get-prices -- "Virtual Machines" eastusThe script accepts two positional arguments:
- Service name (required for price lookup) — e.g.
"Virtual Machines","SQL Database","Storage","Azure Cosmos DB" - Region (optional, defaults to
eastus) — e.g.eastus,westus2,westeurope,southeastasia
When called with no arguments, it prints a sample of available service names.
How to Use
The npm commands below are the preferred execution path for this skill and should be used instead of direct API calls whenever command execution is available.
Single region lookup
Run the script with the service name and region. Present results in a readable table.
Cross-region comparison
To compare prices across regions, run the script multiple times — once per region — then combine the results into a comparison table. For example, to compare Virtual Machines prices across three regions:
npm run --prefix ./scripts get-prices -- "Virtual Machines" eastus
npm run --prefix ./scripts get-prices -- "Virtual Machines" westus2
npm run --prefix ./scripts get-prices -- "Virtual Machines" westeuropeThen join the results by SKU name to show a side-by-side comparison table with columns for each region.
Finding the cheapest region
Run prices for the target service across several common regions and sort by price. Common Azure regions to compare:
eastus,eastus2,westus2,centralus(US)westeurope,northeurope,uksouth(Europe)southeastasia,eastasia,japaneast(Asia-Pacific)
Service discovery
If the user isn't sure of the exact service name, run the script with no arguments first to get a sample of available names, then use the closest match.
Fallback Behavior
If command execution is unavailable, use the local script implementation as the behavioral reference, then fall back to public pricing sources only as needed. In that case, explicitly tell the user that script execution was unavailable before presenting results.
Output Format
Present pricing results as markdown tables. For comparisons, use a format like:
| SKU | East US | West US 2 | West Europe |
| D2 v2 | $0.10/hr | $0.11/hr | $0.12/hr |
| D4 v2 | $0.20/hr | $0.22/hr | $0.24/hr |
Highlight the cheapest option per row when doing comparisons. Include the currency and unit of measure.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

