cost-advisor

Pull Azure Advisor cost recommendations across subscriptions and save them to a GitLab knowledge base.

Updated Jul 22, 2026
One-click install
npx skills add https://github.com/Trigent-Software-Pvt-Ltd/trigen-aidlc --skill cost-advisor-trigent-software-pvt-ltd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cost-advisor
Source: https://github.com/Trigent-Software-Pvt-Ltd/trigen-aidlc/tree/main/plugins/cost-anomalies/skills/cost-advisor
Command: npx skills add https://github.com/Trigent-Software-Pvt-Ltd/trigen-aidlc --skill cost-advisor-trigent-software-pvt-ltd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Azure Advisor cost recommendations are scattered across multiple subscriptions and hard to act on. This Skill consolidates UsageOptimization and rate optimization recommendations into grouped, prioritized reports with savings estimates, and persists them to a GitLab knowledge base for downstream cost investigation and reporting. ## Core Features & Use Cases - Right-sizing detection: Identifies resources with current-to-target SKU changes or shutdown actions, enriched for App Service plans with ARM details, 30-day CPU/memory averages, and per-instance cost from billing data. - Rate optimization analysis: Extracts reserved instance and savings plan recommendations (1-year term, 30-day lookback), grouped into Compute, Database, and Other categories with per-category savings subtotals. - KB persistence: Saves per-subscription CSVs (advisor_usage_optimization.csv, advisor_rate_optimization.csv) to a GitLab cost-anomalies repository and updates the advisor_covered cursor in _index.json. - Use Case: Run the skill monthly to refresh advisor recommendations across Production, Staging, and Development subscriptions, then let cost-investigate and cost-report skills consume the saved CSVs. ## Quick Start Ask the assistant to pull Azure Advisor cost recommendations across all subscriptions and highlight right-sizing candidates and savings plan opportunities.

Frequently Asked Questions about cost-advisor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get Azure Advisor cost recommendations across all subscriptions?

Run the skill with no arguments to query az advisor recommendation list for every configured subscription. Results are grouped into right-sizing candidates, optimisation hints, and rate optimization sections with savings estimates.

How do I filter Azure Advisor results to right-sizing only?

Pass --right-size-only to suppress optimisation hints and rate optimization output. Use --subscription <name> to scope to one subscription, or --rate-only to show only reserved instance and savings plan recommendations.

Does the skill support Azure savings plans and reserved instances?

Yes, it extracts Reservations and SavingsPlan recommendations filtered to 1-year terms and 30-day lookbacks. Rows are categorized as Compute, Database, or Other, with savings plan and reservation totals shown separately since they are alternatives.

Why does the skill skip saving to the KB for partial runs?

When --subscription is passed, the run is partial, so the advisor_covered cursor in _index.json must not advance. This prevents partial data from masking subscriptions that have not been extracted yet.

What happens when the Azure CLI session is expired?

The skill checks authentication with az account get-access-token and prompts you to run az login with the tenant ID if expired. After you confirm login, it re-checks authentication before continuing.