Agent skill · aliyun
alibabacloud-waf-billing-backup
Query and back up Alibaba Cloud WAF 3.0 billing data. Use this Skill when a user asks to check WAF bills, export WAF cost details, back up WAF billing data locally, or analyze daily/hourly SeCU and Credit usage. The Skill retrieves instance information, daily bill summaries, and hourly cost breakdowns (function fees, traffic processing fees, Credit usage) via aliyun-cli, then exports the results as JSON and CSV files to the local workspace.
What it needs
About 6k tokens when loaded.
What this skill does
WAF 3.0 Billing Query and Local Backup Read-only Skill: This Skill only invokes Describe/List read-only APIs. Any Create/Modify/Delete/Release operation is strictly prohibited. Query Alibaba Cloud WAF 3.0 billing data via OpenAPI. This Skill supports: Retrieving WAF instance ID and region information Querying daily bill summaries for pay-as-you-go instances (SeCU / Credit / cost) Drilling down into hourly function fees, traffic processing fees, and Credit usage details Querying elastic postpaid bills for prepaid instances (optional) Exporting raw data and summary reports as local JSON / CSV backups --- Prerequisites 1. Dependency Check Verify the aliyun-cli version: Version >= 3.3.3 is required. If it is not installed or the version is too low, refer to references/cli-installation-guide.md. 2. Credential Configuration Check Security rules: Never read, echo, or print AK/SK values Never read or cat credential files (e.g., ~/.aliyun/config.json) Never ask users to enter AK/SK directly in conversation or on the command line Never use aliyun configure set with plaintext credential values Only aliyun configure list is allowed to check credential status If no valid configuration exists, prompt the user to configure credentials before retrying. Reference: https://help.aliyun.com/zh/cli/configure-credentials 3. RAM Permissions This Skill requires read-only WAF permissions. See references/ram-policies.md for the full minimum RAM policy. 4. CLI Global Parameters All aliyun commands must include: --- Core Workflow Step 1: Retrieve WAF Instance Information Extract from the returned JSON: InstanceId: WAF instance ID RegionId: instance region (cn-hangzhou for Mainland China, ap-southeast-1 for outside Mainland China) Region selection rules: 1. If the user explicitly provides a region (e.g., "my instance is in ap-southeast-1"), use that region first. 2. If no region is given, first try --region cn-hangzhou. 3. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aliyun/alibabacloud-waf-billing-backup