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.
npx skills add fabioc-aloha/Alex_Skill_Mall --skill azure-cost-management-apigit clone --depth 1 https://github.com/fabioc-aloha/Alex_Skill_MallWrote 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.
[](https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/azure-cost-management-api)<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/azure-cost-management-api"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/azure-cost-management-api/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/azure-cost-management-api"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/azure-cost-management-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00023 | $0.00567 |
| Opus 5 | $0.00012 | $0.00283 |
| Sonnet 5 | $0.00005 | $0.00113 |
| Haiku 4.5 | $0.00002 | $0.00057 |
Grade A, and why
azure-cost-management-api 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 7d ago.
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.
What it actually says
Azure Cost Management API
The Problem
In PowerShell, inline JSON for Cost Management API causes "Unsupported Media Type" errors:
# This fails silently or with 415 error
az rest --method POST --uri $uri --body '{"type":"Usage","timeframe":"MonthToDate"}'
The shell mangles the JSON.
The Solution
Write JSON to a file, then reference with @:
# 1. Create body file
$body = @{
type = "Usage"
timeframe = "MonthToDate"
dataset = @{
granularity = "Daily"
aggregation = @{
totalCost = @{
name = "Cost"
function = "Sum"
}
}
}
} | ConvertTo-Json -Depth 10
$bodyFile = "$env:TEMP\cost-query-body.json"
$body | Out-File -FilePath $bodyFile -Encoding utf8
# 2. Call with file reference
$uri = "/subscriptions/$subscriptionId/providers/Microsoft.CostManagement/query?api-version=2023-03-01"
az rest --method POST --uri $uri --body "@$bodyFile"
Common Queries
Monthly Cost by Resource Group
{
"type": "Usage",
"timeframe": "MonthToDate",
"dataset": {
"granularity": "None",
"aggregation": {
"totalCost": { "name": "Cost", "function": "Sum" }
},
"grouping": [
{ "type": "Dimension", "name": "ResourceGroup" }
]
}
}
Daily Cost Trend
{
"type": "Usage",
"timeframe": "MonthToDate",
"dataset": {
"granularity": "Daily",
"aggregation": {
"totalCost": { "name": "Cost", "function": "Sum" }
}
}
}
Verification
# Should return JSON with "rows" array
$result = az rest --method POST --uri $uri --body "@$bodyFile" | ConvertFrom-Json
$result.properties.rows | Format-Table
When to Apply
- Any Azure Cost Management API call from PowerShell
- Complex JSON bodies in az rest commands
- Budget alerts and cost analysis scripts
Tags
azure cost-management api powershell
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.
- 7d ago First seen · 100 lines · 23 tokens per session scan A c18d1cae9926
azure-cost-management-api is a skill published in the GitHub repository fabioc-aloha/Alex_Skill_Mall (4 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 567 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
apply-earnings-myopia-defense
Use when a company's investment decisions — R&D spending, long-term infrastructure, maintenance — are being evaluated against their effect on the next quarterly earnings report, before letting that pressure cut or delay a genuinely positive-long-term-value investment, because quarterly-earnings pressure is a…
apply-deep-industry-immersion-research
Use when forming an investment thesis in a new or emerging technology trend — committing to extended, multi-year immersion in the industry before evaluating specific deals, rather than assessing opportunities opportunistically as they arrive.
apply-double-down-portfolio-strategy
Use when managing a portfolio of early-stage investments — reserving significant capital for follow-on investment in the clearest-performing companies rather than spreading the initial investment evenly or holding follow-on capital back proportionally.
apply-full-lifecycle-investing
Use when structuring a venture capital firm's investment mandate — building the capability to invest in a portfolio company across its entire lifecycle from seed through pre-IPO and beyond, rather than confining the firm to a single stage, so the strongest companies can be backed continuously without forcing a founder…
apply-moonshot-technology-investing
Use when evaluating a technically ambitious, high-uncertainty breakthrough technology investment — accepting a much higher individual-investment failure rate than standard venture investing in exchange for the possibility of a genuinely transformative, category-defining outcome most investors wouldn't accept the…
apply-non-consensus-category-conviction
Use when evaluating an investment in an unproven category or business model that the prevailing market consensus actively doubts or dismisses — betting on the category and founder ahead of any price or market validation signal, based on independently-formed conviction rather than following consensus.