Token导航 LogoToken导航TokenDH.com
云服务external-servicegithub未标认证来源可访问许可证需确认审计通过

azure-cost-calculatorAzure cost calculator 部署

Agent Skill

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

总安装

2,611

周安装

111

GitHub Stars

15

下载量

915
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

通过 Retail Prices API 实现确定性 Azure 成本估算。

  • 适用于新项目预算规划与资源规格定价参考。
  • 支持 Bash 与 PowerShell 脚本探索实时价格信息。
  • 优先使用 curl + jq 组合执行 pricing 查询脚本。
  • Windows 环境需注意执行策略限制,添加 RemoteSigned 参数。

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-regionalglobalRegion: 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: globalRegion: 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

提示所需权限和审计输出

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.82%
按下载量换算328

Claude

31.92%
按下载量换算292

Cursor

19.22%
按下载量换算176

Gemini CLI

8.71%
按下载量换算80

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

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

安装前确认

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

来源信息

继续浏览同类 Skills