alibabacloud-cli-cost-estimation

alibabacloud-cli-cost-estimation is a skill for Claude Code from aliyun/alibabacloud-agent-toolkit. It costs 118 tokens per session (3,072 once invoked), scanned A, original, Apache-2.0.

A cost-checking guide for Alibaba Cloud’s command-line tool, which lets you manage cloud resources by typing commands. It estimates the price of chargeable actions before they run.

In plain words
What is it for?
Use it to quote the cost of one Alibaba Cloud CLI action or a multi-step cloud workflow before execution.
Why use it?
It helps prevent unexpected charges when creating, changing, renewing, or resizing cloud resources.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the alibabacloud-core plugin — 10 skills, 6 hooks, 1 MCP server shipped together

Good fit Use it to quote the cost of one Alibaba Cloud CLI action or a multi-step cloud workflow before execution.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aliyun/alibabacloud-agent-toolkit/alibabacloud-cli-cost-estimation
Install

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.

Any agent
npx skills add aliyun/alibabacloud-agent-toolkit --skill alibabacloud-cli-cost-estimation
Clone the repo
git clone --depth 1 https://github.com/aliyun/alibabacloud-agent-toolkit

Made for: Claude Code.

Or install alibabacloud-core, the plugin that ships this one along with the rest of its 10 skills, 6 hooks, 1 MCP server.

Wrote 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.

agentmods badge for alibabacloud-cli-cost-estimation

README.md
[![agentmods](https://agentmods.dev/badge/skills/aliyun/alibabacloud-agent-toolkit/alibabacloud-cli-cost-estimation/github.svg)](https://agentmods.dev/skills/aliyun/alibabacloud-agent-toolkit/alibabacloud-cli-cost-estimation)
Your own site
<a href="https://agentmods.dev/skills/aliyun/alibabacloud-agent-toolkit/alibabacloud-cli-cost-estimation"><img src="https://agentmods.dev/badge/skills/aliyun/alibabacloud-agent-toolkit/alibabacloud-cli-cost-estimation/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.

agentmods 80×15 button for alibabacloud-cli-cost-estimation

Your own site · 80×15
<a href="https://agentmods.dev/skills/aliyun/alibabacloud-agent-toolkit/alibabacloud-cli-cost-estimation"><img src="https://agentmods.dev/badge/skills/aliyun/alibabacloud-agent-toolkit/alibabacloud-cli-cost-estimation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,072 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.03072
Opus 5 $0.00059 $0.01536
Sonnet 5 $0.00024 $0.00614
Haiku 4.5 $0.00012 $0.00307

Measured 11d ago against content hash edfceb3dc56d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

alibabacloud-cli-cost-estimation 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 11d 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.

plugins/alibabacloud-core/skills/alibabacloud-cli-cost-estimation/SKILL.md · 275 lines

How it starts

The opening of the file, as written. The whole thing — 275 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Alibaba Cloud CLI Cost Estimation

Get an exact price quote for a CLI operation without executing it. The quote comes from the same pricing source as the trade system: for operations that produce an immediate order, the quoted amount equals the order amount you would actually pay (verified across new purchases, spec upgrades, and bandwidth changes — quote and bill match to the cent).

This is the pre-execution half of cost management. The post-hoc half (bills already incurred) is aliyun bssopenapi QueryAccountBill — see the reconciliation section below.

Requirements

  • Alibaba Cloud CLI ≥ 3.4.2 (aliyun version)
  • Product plugins up to date (aliyun plugin update)

The Agent Rule: Quote Before Chargeable Execution

When you are about to execute an operation that creates, resizes, renews, or otherwise changes billable resources:

  1. Check whether the API supports quoting (see Discovery below).
  2. Quote it by appending --estimate-cost to the exact command you intend to run.
  3. Present the amount to the user as part of the confirmation, e.g. "This will execute ModifyPrepayInstanceSpec — estimated charge ¥28.89 (prorated upgrade delta). Proceed?"
  4. Execute only after confirmation, by removing --estimate-cost from the same command.

Never silently execute a chargeable operation when a quote was obtainable. --estimate-cost is always safe to add: it only quotes, never executes, and changes nothing in the account.

Multi-step plans: quote everything first, confirm once. When the user's request decomposes into multiple API calls (a workflow), do NOT interleave execute-and-ask step by step. Instead:

  1. Quote all chargeable steps up front, before executing step 1 — use --estimate-cost-context state overrides for steps that depend on the state an earlier step will produce.
  2. Present one consolidated cost plan: each step's amount labelled by its nature (immediate order / usage-based estimate with its assumption / refund / free), plus the total of immediate charges.
  3. Ask for a single confirmation of the whole sequence, then execute the steps in order.
  4. If a step fails or the account state changes mid-sequence, stop and re-quote the remaining steps before continuing.

Read the full file on GitHub · 275 lines

Changes

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.

  1. 11d ago First seen · 275 lines · 118 tokens per session scan A edfceb3dc56d

Subscribe to this mod's changes

alibabacloud-cli-cost-estimation is a skill published in the GitHub repository aliyun/alibabacloud-agent-toolkit (21 stars, last pushed today), licensed Apache-2.0. It adds 118 tokens to every session and 3,072 once invoked, about $0.0006 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-08-30.

Related

Other skills, from other repositories

alibabacloud-ecs-windows-os-troubleshooting

Troubleshoot and repair Alibaba Cloud ECS Windows instances from inside the GuestOS or remotely via Cloud Assistant. Use whenever the user reports any Windows symptom or asks for a health check on an ECS Windows instance, even vague ones like "check this machine": boot failures (BSOD, black screen, boot loop, stuck at…

aliyun/alibabacloud-ecs-troubleshoot-skills · 215 tokens

alibabacloud-ecs-linux-os-troubleshooting

Troubleshoot an Alibaba Cloud ECS Linux OS. Use when a user needs to diagnose a specified ECS Linux instance, such as instance stuck in Starting, boot stuck, SSH/VNC/Workbench login failure, network issues, disk/FS issues, performance anomalies, suspected mining or hidden processes, crash/hang, clock drift, or…

aliyun/alibabacloud-ecs-troubleshoot-skills · 84 tokens

x-theme

Change terminal command line prompt theme. Globally manage the display style of all x-cmd interactive components. Supports multiple theme vendors: theme, starship, ohmyposh. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 74 tokens

loop

Schedule recurring tasks with notifications. Triggered by "/loop " to set up periodic monitoring.

x-cmd/x-cmd · 25 tokens

skill0

Root index of x-cmd skill0 sub-skills. Defines the OKR-style agent workflow (goal → rule-verified results → execute), skill discovery, and agent tooling preferences. Style: principle-first, concise, delegate specifics to authoritative external sources.

x-cmd/x-cmd · 54 tokens

atmos-custom-commands

Custom CLI commands: command definition in atmos.yaml, arguments, flags, shared native step types, when: conditions, output/UI steps, env vars, custom component types.

cloudposse/atmos · 39 tokens