Token导航 LogoToken导航

Agent Skill · 云服务

azure-cost-calculator(Azure cost calculator 部署)

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

azure-cost-calculator 是云服务类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在云服务类的 479 个 Skill 里排第 108。

总安装 2,611周安装 111GitHub Stars 15下载 915核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:azure-cost-calculator(Azure cost calculator 部署)
来源仓库:https://github.com/ahmadabdalla/azure-cost-calculator-skill
仓库路径:skills/azure-cost-calculator
安装命令:
npx skills add https://github.com/ahmadabdalla/azure-cost-calculator-skill --skill azure-cost-calculator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ahmadabdalla/azure-cost-calculator-skill --skill azure-cost-calculator

这个 Skill 是做什么的

云服务类 Skill 对接各家云平台的接口,用来查询资源、估算成本和执行变更。

通过 Retail Prices API 实现确定性 Azure 成本估算。适用于新项目预算规划与资源规格定价参考。支持 Bash 与 PowerShell 脚本探索实时价格信息。优先使用 curl + jq 组合执行 pricing 查询脚本。

Windows 环境需注意执行策略限制,添加 RemoteSigned 参数。

来源仓库内路径:skills/azure-cost-calculator

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ahmadabdalla/azure-cost-calculator-skill --ski…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

azure-cost-calculator 怎么安装?

在终端执行 npx skills add https://github.com/ahmadabdalla/azure-cost-calculator-skill --skill azure-c…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

azure-cost-calculator 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

azure-cost-calculator 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

azure-cost-calculator 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

azure-cost-calculator 用的人多吗?

公开数据是累计安装 2,611 次,近一周安装 111 次,下载 915 次,GitHub 15 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

azure-cost-calculator 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理云服务类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

云服务类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
azure-deploy

Azure 部署 · Codex、Claude

6,641,856764调用外部服务未明确通过
azure-diagnostics

Azure diagnostics 问题管理 · Codex、Claude

6,575,520764调用外部服务未明确通过
azure-aigateway

Azure aigateway 部署 · Codex、Claude

6,553,272764调用外部服务未明确有提醒
azure-ai

Azure AI 搜索 · Codex、Claude

6,514,128764调用外部服务未明确通过
azure-cloud-migrate

Azure Cloud migrate 部署 · Codex、Claude

6,506,784764调用外部服务未明确有提醒
azure-cost-calculator

Azure cost calculator 部署 · 本页

2,61115调用外部服务未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Azure Cost Calculator

Deterministic Azure cost estimation using the public Retail Prices API. Never guess prices; always query the live API via the scripts.

Runtime Detection

Choose the script runtime based on what is available:

RuntimeConditionPricing scriptExplore script
Bash (preferred)curl and jq availablescripts/get-azure-pricing.shscripts/explore-azure-pricing.sh
PowerShell 7+pwsh availablescripts/Get-AzurePricing.ps1scripts/Explore-AzurePricing.ps1
Windows PowerShell 5.1powershell.exe available (Windows only). Add -ExecutionPolicy RemoteSigned before -File to avoid silent failures from default policy restrictions.scripts/Get-AzurePricing.ps1scripts/Explore-AzurePricing.ps1

Both produce identical JSON output. Bash flags use --kebab-case equivalents of PowerShell -PascalCase parameters (e.g., -ServiceName → --service-name).

Declarative Parameters

Service reference files specify query parameters as Key: Value pairs. Translate to Bash --kebab-case or PowerShell -PascalCase flags; quote string values with spaces. See workflow.md for the full parameter table, translation examples, and output formats.

Workflow

Phase 1: Analysis (no API queries)

  1. Parse: extract resource types, quantities, and sizing from user's architecture
  2. Clarify: if any of these are true, stop and ask before continuing:

- A resource maps to a category but not a specific service (e.g., "a database") → list 2–4 options - A resource has no count, no sizing/tier, or no workload scale → ask for specifics - A resource has no expected monthly volume: data transferred/ingested (GB), transactions, requests, messages, tokens, or users/devices → ask for estimated volume - A multi-model or multi-feature service (e.g., Azure OpenAI, AI Services, Defender for Cloud) has no model or feature variant specified → ask which one (cost can vary 15–30×) - User describes a goal without a hosting model (e.g., "a web app") → present 2–3 options with trade-offs - Batch all gaps into one prompt. Offer concrete choices with sensible options (e.g., "100 GB/month?", "GPT-4o or GPT-4o-mini?"). One round max; if user declines a specific parameter, apply safe defaults only for Safe-default gaps and disclose them; if any Never-assume gap remains, do NOT proceed; state what cannot be estimated without the missing input.

  1. Locate each service reference using the lookup workflow in shared.md (file search → routing map → category browse → broad search → discovery)
  2. Read matched service files; check billingNeeds and follow dependency chains (e.g., AKS → VMs → Managed Disks)
  3. Classify each parameter using the Disambiguation Protocol in shared.md:

- Specified: user provided value (use verbatim) - Never-assume gap: required parameter missing (must ask) - Safe-default gap: optional parameter missing (use default, disclose)

  1. Specification Review: present a summary: Service Specified Missing (will ask) Defaults (will assume)

- If any never-assume parameter is missing → ask user before proceeding - If only safe-default gaps remain → disclose defaults and proceed to Phase 2 - Single-service shortcut: skip this table for single-service estimates where all parameters are specified

Phase 2: Estimation

  1. Query: run the pricing script for each service using parameters from service files + user input + resolved defaults
  2. Calculate: apply cost formulas from service files; multiply by quantities
  3. Verify arithmetic: for each line item, restate the formula with actual numbers, compute, and confirm the result. If any intermediate calculation involves multiplication of two numbers > 10, compute it step-by-step (e.g., 14.5 × 640 → 14 × 640 → 10 × 640 = 6,400; 4 × 640 = 2,560; subtotal = 8,960; 0.5 × 640 = 320; total = 9,280). Do not rely on mental math for multi-digit operations.
  4. Present: output the estimate with:
  • Assumptions block (see Disambiguation Protocol in shared.md), listed before cost numbers
  • Line items: service, unit price, quantity/hours, monthly cost
  • Grand total: re-sum all line-item monthly costs independently; if discrepancy, use re-summed value

Post-Estimate Iteration

After presenting the estimate, the user may request changes (switch region, add RI, resize instances, add/remove services). Re-run only the affected queries; do not restart the full workflow.

Reference Index (load on demand)

ConditionRead
Always (entry point)references/shared.md: constants, category index, alias lookup
Query returned 0 results or wrong datareferences/pitfalls.md: troubleshooting and traps
User asks about Reserved Instances or savings plansreferences/reserved-instances.md
Non-USD currency or non-eastus regionreferences/regions-and-currencies.md
User requests private endpoints or private access; confirm PE intent with userreferences/services/networking/private-link.md: PE pricing, references/services/networking/private-dns.md: DNS zone pricing
File search returned 0 or ambiguous resultsreferences/service-routing.md - implemented services routing
First time running scripts or unfamiliar with parametersreferences/workflow.md: script parameters and output formats

Critical Rules

  1. Never guess prices: always run the script against the live API
  2. Infer currency and region from user context: if unspecified, ask the user or default to USD and eastus
  3. Ask before assuming: if a required parameter is ambiguous or missing, stop, clarify and ask the user. Never silently default a never-assume parameter. At the request level, use the Clarify checks in Step 2 (for example monthly volume, data transfer, and model/feature variant). At the parameter level, use the authoritative Disambiguation Protocol table in shared.md.
  4. Default output format is Json: never use Summary (invisible to agents)
  5. Lazy-load service references: only read files from references/services/ directly required by the user's query. Use the file-search workflow (Step 2) to locate specific files.
  6. PowerShell: use -File, not -Command: run scripts with pwsh -File or powershell.exe -File; on Linux/macOS, bash strips OData quotes from inline commands. PS 5.1 caveats: (a) Always add -ExecutionPolicy RemoteSigned before -File when using powershell.exe; default Windows policies silently block script execution (see Runtime Detection note above). (b) Use -Command instead of -File when passing array parameters (e.g., -Region 'eastus','australiaeast'), because -File mode does not parse PowerShell expression syntax and collapses the array into a single string.
  7. Use exact category names: group line items using the exact Category Index names from shared.md verbatim (e.g., "Compute", "Databases", "AI + ML"). Do not paraphrase, abbreviate, or rename them.
  8. Scope to user-specified resources: only include resources explicitly stated in the user's architecture. Companion resources from billingNeeds are included automatically.
  9. MeterId: when the user requests meter IDs, add --include-meter-id / -IncludeMeterId. No extra API calls needed.

Service File Metadata

YAML front matter fields. Optional fields use default elision; omitted means the default applies.

FieldRequiredDefaultAction
billingNeeds-omitRead and price listed dependency services
billingConsiderations-omitAsk user about listed pricing factors before calculating
primaryCost✔-One-line billing summary for quick cost context
apiServiceName-omitUse instead of serviceName in API queries
hasMeters-truefalse → skip API, use Known Rates table
pricingRegion-regionalglobal → Region: Global; api-unavailable → skip API; empty-region → omit region
hasKnownRates-falsetrue → file contains manual pricing table
hasFreeGrant-falsetrue → apply free grant deduction from Cost Formula
privateEndpoint-falsetrue → aggregate PE costs via networking/private-link.md

Universal Traps

These apply to EVERY query:

  1. serviceName and all filter values are case-sensitive: use exact values from service reference files
  2. Unfiltered queries return mixed SKU variants: always filter with productName/skuName to the specific variant needed
  3. Multi-meter resources need separate queries: run one query per meter with -MeterName

Batch Estimation Mode

When estimating 3 or more services, use these rules to reduce token consumption:

  1. Partial reads: read only lines 1–45 of each service file (YAML front matter, trap, first query pattern).
  2. Front matter routing: use YAML metadata to skip unnecessary work:

- hasMeters: false / pricingRegion: api-unavailable → skip API; use Known Rates or primaryCost - pricingRegion: global → Region: Global; empty-region → omit region - apiServiceName → use instead of serviceName in queries - hasFreeGrant: true → apply grant deduction; privateEndpoint: true → add PE line item

  1. Full read triggers: no query pattern in partial read, non-default config, 0/unexpected results, or billingConsiderations applies.
  2. Parallel queries: run independent service queries in parallel, but limit to 3–5 concurrent requests to avoid API rate limiting. If querying more than 5 services, stagger starts in batches.
  3. Skip redundant references: read shared.md and pitfalls.md once at the start, not between services.
  4. Progressive distillation: after each service query returns, emit a summary row before proceeding: | Category | Service | Resource | Unit Price | Unit | Qty | Monthly Cost | Notes | Multi-meter services get one row per line item. After all queries complete, assemble the final estimate from the accumulated rows. Do not re-read service files already distilled unless a full read trigger is needed. During Post-Estimate Iteration, replace the distillation row(s) for any re-queried service.
  5. Compact output: use OutputFormat: Compact (or --output-format Compact in Bash) for batch queries. Compact returns only the 9 fields needed for cost calculation (MeterName, ProductName, SkuName, UnitPrice, UnitOfMeasure, MonthlyCost, Currency, ReservationTerm, TierMinUnits); no query echo, no summary block. With --include-meter-id, Compact includes MeterId as a 10th field. Use full Json format when debugging unexpected results or when a service file requires fields not in the Compact set.

适合场景

01

Azure 成本分析

02

查找闲置资源

03

生成降本报告

04

云资源优化

能力概览

能力 1

分析 Azure 成本和资源利用

能力 2

识别闲置或过度配置资源

能力 3

生成优化建议和报告

能力 4

提示所需权限和审计输出

平台分布

Codex

35.82%
按下载量换算328

Claude

31.92%
按下载量换算292

Cursor

19.22%
按下载量换算176

Gemini CLI

8.71%
按下载量换算80

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills