[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M730X02S3SNXGF15BH0FXWZA":3,"skill-same:01M730X02S3SNXGF15BH0FXWZA":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M730X02S3SNXGF15BH0FXWZA","azure-cost-optimization",null,"Identify and quantify cost savings across Azure subscriptions by analyzing actual costs, utilization metrics, and generating actionable optimization recommendations. USE FOR: optimize Azure costs, reduce Azure spending, reduce Azure expenses, analyze Azure costs, find cost savings, generate cost optimization report, find orphaned resources, rightsize VMs, cost analysis, reduce waste, Azure spending analysis, find unused resources, optimize Redis costs. DO NOT USE FOR: deploying resources (use azure-deploy), general Azure diagnostics (use azure-diagnostics), security issues (use azure-security)","julio211916\u002FTlantiCAD-Studio-V0.1-alpha","julio211916","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128201165?v=4","01M730ENY015MHFY82VKR6AGGR","José Carlos amador garcia","01M730ENYT83EWH6EXRHF9FTXV",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fazure-cost-optimization\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: azure-cost-optimization\ndescription: \"Identify and quantify cost savings across Azure subscriptions by analyzing actual costs, utilization metrics, and generating actionable optimization recommendations. USE FOR: optimize Azure costs, reduce Azure spending, reduce Azure expenses, analyze Azure costs, find cost savings, generate cost optimization report, find orphaned resources, rightsize VMs, cost analysis, reduce waste, Azure spending analysis, find unused resources, optimize Redis costs. DO NOT USE FOR: deploying resources (use azure-deploy), general Azure diagnostics (use azure-diagnostics), security issues (use azure-security)\"\nlicense: MIT\nmetadata:\n  author: Microsoft\n  version: \"1.0.0\"\n---\n\n# Azure Cost Optimization Skill\n\nAnalyze Azure subscriptions to identify cost savings through orphaned resource cleanup, rightsizing, and optimization recommendations based on actual usage data.\n\n## When to Use This Skill\n\nUse this skill when the user asks to:\n- Optimize Azure costs or reduce spending\n- Analyze Azure subscription for cost savings\n- Generate cost optimization report\n- Find orphaned or unused resources\n- Rightsize Azure VMs, containers, or services\n- Identify where they're overspending in Azure\n- **Optimize Redis costs specifically** - See [Azure Redis Cost Optimization](.\u002Freferences\u002Fazure-redis.md) for Redis-specific analysis\n\n## Instructions\n\nFollow these steps in conversation with the user:\n\n### Step 0: Validate Prerequisites\n\nBefore starting, verify these tools and permissions are available:\n\n**Required Tools:**\n- Azure CLI installed and authenticated (`az login`)\n- Azure CLI extensions: `costmanagement`, `resource-graph`\n- Azure Quick Review (azqr) installed - See [Azure Quick Review](.\u002Freferences\u002Fazure-quick-review.md) for details\n\n**Required Permissions:**\n- Cost Management Reader role\n- Monitoring Reader role\n- Reader role on subscription\u002Fresource group\n\n**Verification commands:**\n```powershell\naz --version\naz account show\naz extension show --name costmanagement\nazqr version\n```\n\n### Step 1: Load Best Practices\n\nGet Azure cost optimization best practices to inform recommendations:\n\n```javascript\n\u002F\u002F Use Azure MCP best practices tool\nmcp_azure_mcp_get_azure_bestpractices({\n  intent: \"Get cost optimization best practices\",\n  command: \"get_bestpractices\",\n  parameters: { resource: \"cost-optimization\", action: \"all\" }\n})\n```\n\n### Step 1.5: Redis-Specific Analysis (Conditional)\n\n**If the user specifically requests Redis cost optimization**, use the specialized Redis skill:\n\n📋 **Reference**: [Azure Redis Cost Optimization](.\u002Freferences\u002Fazure-redis.md)\n\n**When to use Redis-specific analysis:**\n- User mentions \"Redis\", \"Azure Cache for Redis\", or \"Azure Managed Redis\"\n- Focus is on Redis resource optimization, not general subscription analysis\n- User wants Redis-specific recommendations (SKU downgrade, failed caches, etc.)\n\n**Key capabilities:**\n- Interactive subscription filtering (prefix, ID, or \"all subscriptions\")\n- Redis-specific optimization rules (failed caches, oversized tiers, missing tags)\n- Pre-built report templates for Redis cost analysis\n- Uses `redis_list` command\n\n**Report templates available:**\n- [Subscription-level Redis summary](.\u002Ftemplates\u002Fredis-subscription-level-report.md)\n- [Detailed Redis cache analysis](.\u002Ftemplates\u002Fredis-detailed-cache-analysis.md)\n\n> **Note**: For general subscription-wide cost optimization (including Redis), continue with Step 2. For Redis-only focused analysis, follow the instructions in the Redis-specific reference document.\n### Step 1.6: Choose Analysis Scope (for Redis-specific analysis)\n\n**If performing Redis cost optimization**, ask the user to select their analysis scope:\n\n**Prompt the user with these options:**\n1. **Specific Subscription ID** - Analyze a single subscription\n2. **Subscription Name** - Use display name instead of ID\n3. **Subscription Prefix** - Analyze all subscriptions starting with a prefix (e.g., \"CacheTeam\")\n4. **All My Subscriptions** - Scan all accessible subscriptions\n5. **Tenant-wide** - Analyze entire organization\n\nWait for user response before proceeding to Step 2.\n\n### Step 2: Run Azure Quick Review\n\nRun azqr to find orphaned resources (immediate cost savings):\n\n📋 **Reference**: [Azure Quick Review](.\u002Freferences\u002Fazure-quick-review.md) - Detailed instructions for running azqr scans\n\n```javascript\n\u002F\u002F Use Azure MCP extension_azqr tool\nextension_azqr({\n  subscription: \"\u003CSUBSCRIPTION_ID>\",\n  \"resource-group\": \"\u003CRESOURCE_GROUP>\"  \u002F\u002F optional\n})\n```\n\n**What to look for in azqr results:**\n- Orphaned resources: unattached disks, unused NICs, idle NAT gateways\n- Over-provisioned resources: excessive retention periods, oversized SKUs\n- Missing cost tags: resources without proper cost allocation\n\n> **Note**: The Azure Quick Review reference document includes instructions for creating filter configurations, saving output to the `output\u002F` folder, and interpreting results for cost optimization.\n\n### Step 3: Discover Resources\n\nFor efficient cross-subscription resource discovery, use Azure Resource Graph. See [Azure Resource Graph Queries](references\u002Fazure-resource-graph.md) for orphaned resource detection and cost optimization patterns.\n\nList all resources in the subscription using Azure MCP tools or CLI:\n\n```powershell\n# Get subscription info\naz account show\n\n# List all resources\naz resource list --subscription \"\u003CSUBSCRIPTION_ID>\" --resource-group \"\u003CRESOURCE_GROUP>\"\n\n# Use MCP tools for specific services (preferred):\n# - Storage accounts, Cosmos DB, Key Vaults: use Azure MCP tools\n# - Redis caches: use mcp_azure_mcp_redis tool (see .\u002Freferences\u002Fazure-redis.md)\n# - Web apps, VMs, SQL: use az CLI commands\n```\n\n### Step 4: Query Actual Costs\n\nGet actual cost data from Azure Cost Management API (last 30 days):\n\n**Create cost query file:**\n\nCreate `temp\u002Fcost-query.json` with:\n```json\n{\n  \"type\": \"ActualCost\",\n  \"timeframe\": \"Custom\",\n  \"timePeriod\": {\n    \"from\": \"\u003CSTART_DATE>\",  \n    \"to\": \"\u003CEND_DATE>\"\n  },\n  \"dataset\": {\n    \"granularity\": \"None\",\n    \"aggregation\": {\n      \"totalCost\": {\n        \"name\": \"Cost\",\n        \"function\": \"Sum\"\n      }\n    },\n    \"grouping\": [\n      {\n        \"type\": \"Dimension\",\n        \"name\": \"ResourceId\"\n      }\n    ]\n  }\n}\n```\n\n> **Action Required**: Calculate `\u003CSTART_DATE>` (30 days ago) and `\u003CEND_DATE>` (today) in ISO 8601 format (e.g., `2025-11-03T00:00:00Z`).\n\n**Execute cost query:**\n```powershell\n# Create temp folder\nNew-Item -ItemType Directory -Path \"temp\" -Force\n\n# Query using REST API (more reliable than az costmanagement query)\naz rest --method post `\n  --url \"https:\u002F\u002Fmanagement.azure.com\u002Fsubscriptions\u002F\u003CSUBSCRIPTION_ID>\u002FresourceGroups\u002F\u003CRESOURCE_GROUP>\u002Fproviders\u002FMicrosoft.CostManagement\u002Fquery?api-version=2023-11-01\" `\n  --body '@temp\u002Fcost-query.json'\n```\n\n**Important:** Save the query results to `output\u002Fcost-query-result\u003Ctimestamp>.json` for audit trail.\n\n### Step 5: Validate Pricing\n\nFetch current pricing from official Azure pricing pages using `fetch_webpage`:\n\n```javascript\n\u002F\u002F Validate pricing for key services\nfetch_webpage({\n  urls: [\"https:\u002F\u002Fazure.microsoft.com\u002Fen-us\u002Fpricing\u002Fdetails\u002Fcontainer-apps\u002F\"],\n  query: \"pricing tiers and costs\"\n})\n```\n\n**Key services to validate:**\n- Container Apps: https:\u002F\u002Fazure.microsoft.com\u002Fpricing\u002Fdetails\u002Fcontainer-apps\u002F\n- Virtual Machines: https:\u002F\u002Fazure.microsoft.com\u002Fpricing\u002Fdetails\u002Fvirtual-machines\u002F\n- App Service: https:\u002F\u002Fazure.microsoft.com\u002Fpricing\u002Fdetails\u002Fapp-service\u002F\n- Log Analytics: https:\u002F\u002Fazure.microsoft.com\u002Fpricing\u002Fdetails\u002Fmonitor\u002F\n\n> **Important**: Check for free tier allowances - many Azure services have generous free limits that may explain $0 costs.\n\n### Step 6: Collect Utilization Metrics\n\nQuery Azure Monitor for utilization data (last 14 days) to support rightsizing recommendations:\n\n```powershell\n# Calculate dates for last 14 days\n$startTime = (Get-Date).AddDays(-14).ToString(\"yyyy-MM-ddTHH:mm:ssZ\")\n$endTime = Get-Date -Format \"yyyy-MM-ddTHH:mm:ssZ\"\n\n# VM CPU utilization\naz monitor metrics list `\n  --resource \"\u003CRESOURCE_ID>\" `\n  --metric \"Percentage CPU\" `\n  --interval PT1H `\n  --aggregation Average `\n  --start-time $startTime `\n  --end-time $endTime\n\n# App Service Plan utilization\naz monitor metrics list `\n  --resource \"\u003CRESOURCE_ID>\" `\n  --metric \"CpuTime,Requests\" `\n  --interval PT1H `\n  --aggregation Total `\n  --start-time $startTime `\n  --end-time $endTime\n\n# Storage capacity\naz monitor metrics list `\n  --resource \"\u003CRESOURCE_ID>\" `\n  --metric \"UsedCapacity,BlobCount\" `\n  --interval PT1H `\n  --aggregation Average `\n  --start-time $startTime `\n  --end-time $endTime\n```\n\n### Step 7: Generate Optimization Report\n\nCreate a comprehensive cost optimization report in the `output\u002F` folder:\n\n**Use the `create_file` tool** with path `output\u002Fcostoptimizereport\u003CYYYYMMDD_HHMMSS>.md`:\n\n**Report Structure:**\n```markdown\n# Azure Cost Optimization Report\n**Generated**: \u003Ctimestamp>\n\n## Executive Summary\n- Total Monthly Cost: $X (💰 ACTUAL DATA)\n- Top Cost Drivers: [List top 3 resources with Azure Portal links]\n\n## Cost Breakdown\n[Table with top 10 resources by cost, including Azure Portal links]\n\n## Free Tier Analysis\n[Resources operating within free tiers showing $0 cost]\n\n## Orphaned Resources (Immediate Savings)\n[From azqr - resources that can be deleted immediately]\n- Resource name with Portal link - $X\u002Fmonth savings\n\n## Optimization Recommendations\n\n### Priority 1: High Impact, Low Risk\n[Example: Delete orphaned resources]\n- 💰 ACTUAL cost: $X\u002Fmonth\n- 📊 ESTIMATED savings: $Y\u002Fmonth\n- Commands to execute (with warnings)\n\n### Priority 2: Medium Impact, Medium Risk\n[Example: Rightsize VM from D4s_v5 to D2s_v5]\n- 💰 ACTUAL baseline: D4s_v5, $X\u002Fmonth\n- 📈 ACTUAL metrics: CPU 8%, Memory 30%\n- 💵 VALIDATED pricing: D4s_v5 $Y\u002Fhr, D2s_v5 $Z\u002Fhr\n- 📊 ESTIMATED savings: $S\u002Fmonth\n- Commands to execute\n\n### Priority 3: Long-term Optimization\n[Example: Reserved Instances, Storage tiering]\n\n## Total Estimated Savings\n- Monthly: $X\n- Annual: $Y\n\n## Implementation Commands\n[Safe commands with approval warnings]\n\n## Validation Appendix\n\n### Data Sources and Files\n- **Cost Query Results**: `output\u002Fcost-query-result\u003Ctimestamp>.json`\n  - Raw cost data from Azure Cost Management API\n  - Audit trail proving actual costs at report generation time\n  - Keep for at least 12 months for historical comparison\n  - Contains every resource's exact cost over the analysis period\n- **Pricing Sources**: [Links to Azure pricing pages]\n- **Free Tier Allowances**: [Applicable allowances]\n\n> **Note**: The `temp\u002Fcost-query.json` file (if present) is a temporary query template and can be safely deleted. All permanent audit data is in the `output\u002F` folder.\n```\n\n**Portal Link Format:**\n```\nhttps:\u002F\u002Fportal.azure.com\u002F#@\u003CTENANT_ID>\u002Fresource\u002Fsubscriptions\u002F\u003CSUBSCRIPTION_ID>\u002FresourceGroups\u002F\u003CRESOURCE_GROUP>\u002Fproviders\u002F\u003CRESOURCE_PROVIDER>\u002F\u003CRESOURCE_TYPE>\u002F\u003CRESOURCE_NAME>\u002Foverview\n```\n\n### Step 8: Save Audit Trail\n\nSave all cost query results for validation:\n\n**Use the `create_file` tool** with path `output\u002Fcost-query-result\u003CYYYYMMDD_HHMMSS>.json`:\n\n```json\n{\n  \"timestamp\": \"\u003CISO_8601>\",\n  \"subscription\": \"\u003CSUBSCRIPTION_ID>\",\n  \"resourceGroup\": \"\u003CRESOURCE_GROUP>\",\n  \"queries\": [\n    {\n      \"queryType\": \"ActualCost\",\n      \"timeframe\": \"MonthToDate\",\n      \"query\": { },\n      \"response\": { }\n    }\n  ]\n}\n```\n\n### Step 9: Clean Up Temporary Files\n\nRemove temporary query files and folder after the report is generated:\n\n```powershell\n# Delete entire temp folder (no longer needed)\nRemove-Item -Path \"temp\" -Recurse -Force -ErrorAction SilentlyContinue\n```\n\n> **Note**: The `temp\u002Fcost-query.json` file is only needed during API execution. The actual query and results are preserved in `output\u002Fcost-query-result*.json` for audit purposes.\n\n## Output\n\nThe skill generates:\n1. **Cost Optimization Report** (`output\u002Fcostoptimizereport\u003Ctimestamp>.md`)\n   - Executive summary with total costs and top drivers\n   - Detailed cost breakdown with Azure Portal links\n   - Prioritized recommendations with actual data and estimated savings\n   - Implementation commands with safety warnings\n\n2. **Cost Query Results** (`output\u002Fcost-query-result\u003Ctimestamp>.json`)\n   - Audit trail of all cost queries and responses\n   - Validation evidence for recommendations\n\n## Important Notes\n\n### Data Classification\n- 💰 **ACTUAL DATA** = Retrieved from Azure Cost Management API\n- 📈 **ACTUAL METRICS** = Retrieved from Azure Monitor\n- 💵 **VALIDATED PRICING** = Retrieved from official Azure pricing pages\n- 📊 **ESTIMATED SAVINGS** = Calculated based on actual data and validated pricing\n\n### Best Practices\n- Always query actual costs first - never estimate or assume\n- Validate pricing from official sources - account for free tiers\n- Use REST API for cost queries (more reliable than `az costmanagement query`)\n- Save audit trail - include all queries and responses\n- Include Azure Portal links for all resources\n- Use UTF-8 encoding when creating report files\n- For costs \u003C $10\u002Fmonth, emphasize operational improvements over financial savings\n- Never execute destructive operations without explicit approval\n\n### Common Pitfalls\n- **Assuming costs**: Always query actual data from Cost Management API\n- **Ignoring free tiers**: Many services have generous allowances (e.g., Container Apps: 180K vCPU-sec free\u002Fmonth)\n- **Using wrong date ranges**: 30 days for costs, 14 days for utilization\n- **Broken Portal links**: Verify tenant ID and resource ID format\n- **Cost query failures**: Use `az rest` with JSON body, not `az costmanagement query`\n\n### Safety Requirements\n- Get approval before deleting resources\n- Test changes in non-production first\n- Provide dry-run commands for validation\n- Include rollback procedures\n- Monitor impact after implementation\n\n## SDK Quick References\n\n- **Redis Management**: [.NET](references\u002Fsdk\u002Fazure-resource-manager-redis-dotnet.md)\n","# Azure Cost Optimization Skill\n\nAnalyze Azure subscriptions to identify cost savings through orphaned resource cleanup, rightsizing, and optimization recommendations based on actual usage data.\n\n## When to Use This Skill\n\nUse this skill when the user asks to:\n- Optimize Azure costs or reduce spending\n- Analyze Azure subscription for cost savings\n- Generate cost optimization report\n- Find orphaned or unused resources\n- Rightsize Azure VMs, containers, or services\n- Identify where they're overspending in Azure\n- **Optimize Redis costs specifically** - See [Azure Redis Cost Optimization](.\u002Freferences\u002Fazure-redis.md) for Redis-specific analysis\n\n## Instructions\n\nFollow these steps in conversation with the user:\n\n### Step 0: Validate Prerequisites\n\nBefore starting, verify these tools and permissions are available:\n\n**Required Tools:**\n- Azure CLI installed and authenticated (`az login`)\n- Azure CLI extensions: `costmanagement`, `resource-graph`\n- Azure Quick Review (azqr) installed - See [Azure Quick Review](.\u002Freferences\u002Fazure-quick-review.md) for details\n\n**Required Permissions:**\n- Cost Management Reader role\n- Monitoring Reader role\n- Reader role on subscription\u002Fresource group\n\n**Verification commands:**\n```powershell\naz --version\naz account show\naz extension show --name costmanagement\nazqr version\n```\n\n### Step 1: Load Best Practices\n\nGet Azure cost optimization best practices to inform recommendations:\n\n```javascript\n\u002F\u002F Use Azure MCP best practices tool\nmcp_azure_mcp_get_azure_bestpractices({\n  intent: \"Get cost optimization best practices\",\n  command: \"get_bestpractices\",\n  parameters: { resource: \"cost-optimization\", action: \"all\" }\n})\n```\n\n### Step 1.5: Redis-Specific Analysis (Conditional)\n\n**If the user specifically requests Redis cost optimization**, use the specialized Redis skill:\n\n📋 **Reference**: [Azure Redis Cost Optimization](.\u002Freferences\u002Fazure-redis.md)\n\n**When to use Redis-specific analysis:**\n- User mentions \"Redis\", \"Azure Cache for Redis\", or \"Azure Managed Redis\"\n- Focus is on Redis resource optimization, not general subscription analysis\n- User wants Redis-specific recommendations (SKU downgrade, failed caches, etc.)\n\n**Key capabilities:**\n- Interactive subscription filtering (prefix, ID, or \"all subscriptions\")\n- Redis-specific optimization rules (failed caches, oversized tiers, missing tags)\n- Pre-built report templates for Redis cost analysis\n- Uses `redis_list` command\n\n**Report templates available:**\n- [Subscription-level Redis summary](.\u002Ftemplates\u002Fredis-subscription-level-report.md)\n- [Detailed Redis cache analysis](.\u002Ftemplates\u002Fredis-detailed-cache-analysis.md)\n\n> **Note**: For general subscription-wide cost optimization (including Redis), continue with Step 2. For Redis-only focused analysis, follow the instructions in the Redis-specific reference document.\n### Step 1.6: Choose Analysis Scope (for Redis-specific analysis)\n\n**If performing Redis cost optimization**, ask the user to select their analysis scope:\n\n**Prompt the user with these options:**\n1. **Specific Subscription ID** - Analyze a single subscription\n2. **Subscription Name** - Use display name instead of ID\n3. **Subscription Prefix** - Analyze all subscriptions starting with a prefix (e.g., \"CacheTeam\")\n4. **All My Subscriptions** - Scan all accessible subscriptions\n5. **Tenant-wide** - Analyze entire organization\n\nWait for user response before proceeding to Step 2.\n\n### Step 2: Run Azure Quick Review\n\nRun azqr to find orphaned resources (immediate cost savings):\n\n📋 **Reference**: [Azure Quick Review](.\u002Freferences\u002Fazure-quick-review.md) - Detailed instructions for running azqr scans\n\n```javascript\n\u002F\u002F Use Azure MCP extension_azqr tool\nextension_azqr({\n  subscription: \"\u003CSUBSCRIPTION_ID>\",\n  \"resource-group\": \"\u003CRESOURCE_GROUP>\"  \u002F\u002F optional\n})\n```\n\n**What to look for in azqr results:**\n- Orphaned resources: unattached disks, unused NICs, idle NAT gateways\n- Over-provisioned resources: excessive retention periods, oversized SKUs\n- Missing cost tags: resources without proper cost allocation\n\n> **Note**: The Azure Quick Review reference document includes instructions for creating filter configurations, saving output to the `output\u002F` folder, and interpreting results for cost optimization.\n\n### Step 3: Discover Resources\n\nFor efficient cross-subscription resource discovery, use Azure Resource Graph. See [Azure Resource Graph Queries](references\u002Fazure-resource-graph.md) for orphaned resource detection and cost optimization patterns.\n\nList all resources in the subscription using Azure MCP tools or CLI:\n\n```powershell\n# Get subscription info\naz account show\n\n# List all resources\naz resource list --subscription \"\u003CSUBSCRIPTION_ID>\" --resource-group \"\u003CRESOURCE_GROUP>\"\n\n# Use MCP tools for specific services (preferred):\n# - Storage accounts, Cosmos DB, Key Vaults: use Azure MCP tools\n# - Redis caches: use mcp_azure_mcp_redis tool (see .\u002Freferences\u002Fazure-redis.md)\n# - Web apps, VMs, SQL: use az CLI commands\n```\n\n### Step 4: Query Actual Costs\n\nGet actual cost data from Azure Cost Management API (last 30 days):\n\n**Create cost query file:**\n\nCreate `temp\u002Fcost-query.json` with:\n```json\n{\n  \"type\": \"ActualCost\",\n  \"timeframe\": \"Custom\",\n  \"timePeriod\": {\n    \"from\": \"\u003CSTART_DATE>\",  \n    \"to\": \"\u003CEND_DATE>\"\n  },\n  \"dataset\": {\n    \"granularity\": \"None\",\n    \"aggregation\": {\n      \"totalCost\": {\n        \"name\": \"Cost\",\n        \"function\": \"Sum\"\n      }\n    },\n    \"grouping\": [\n      {\n        \"type\": \"Dimension\",\n        \"name\": \"ResourceId\"\n      }\n    ]\n  }\n}\n```\n\n> **Action Required**: Calculate `\u003CSTART_DATE>` (30 days ago) and `\u003CEND_DATE>` (today) in ISO 8601 format (e.g., `2025-11-03T00:00:00Z`).\n\n**Execute cost query:**\n```powershell\n# Create temp folder\nNew-Item -ItemType Directory -Path \"temp\" -Force\n\n# Query using REST API (more reliable than az costmanagement query)\naz rest --method post `\n  --url \"https:\u002F\u002Fmanagement.azure.com\u002Fsubscriptions\u002F\u003CSUBSCRIPTION_ID>\u002FresourceGroups\u002F\u003CRESOURCE_GROUP>\u002Fproviders\u002FMicrosoft.CostManagement\u002Fquery?api-version=2023-11-01\" `\n  --body '@temp\u002Fcost-query.json'\n```\n\n**Important:** Save the query results to `output\u002Fcost-query-result\u003Ctimestamp>.json` for audit trail.\n\n### Step 5: Validate Pricing\n\nFetch current pricing from official Azure pricing pages using `fetch_webpage`:\n\n```javascript\n\u002F\u002F Validate pricing for key services\nfetch_webpage({\n  urls: [\"https:\u002F\u002Fazure.microsoft.com\u002Fen-us\u002Fpricing\u002Fdetails\u002Fcontainer-apps\u002F\"],\n  query: \"pricing tiers and costs\"\n})\n```\n\n**Key services to validate:**\n- Container Apps: https:\u002F\u002Fazure.microsoft.com\u002Fpricing\u002Fdetails\u002Fcontainer-apps\u002F\n- Virtual Machines: https:\u002F\u002Fazure.microsoft.com\u002Fpricing\u002Fdetails\u002Fvirtual-machines\u002F\n- App Service: https:\u002F\u002Fazure.microsoft.com\u002Fpricing\u002Fdetails\u002Fapp-service\u002F\n- Log Analytics: https:\u002F\u002Fazure.microsoft.com\u002Fpricing\u002Fdetails\u002Fmonitor\u002F\n\n> **Important**: Check for free tier allowances - many Azure services have generous free limits that may explain $0 costs.\n\n### Step 6: Collect Utilization Metrics\n\nQuery Azure Monitor for utilization data (last 14 days) to support rightsizing recommendations:\n\n```powershell\n# Calculate dates for last 14 days\n$startTime = (Get-Date).AddDays(-14).ToString(\"yyyy-MM-ddTHH:mm:ssZ\")\n$endTime = Get-Date -Format \"yyyy-MM-ddTHH:mm:ssZ\"\n\n# VM CPU utilization\naz monitor metrics list `\n  --resource \"\u003CRESOURCE_ID>\" `\n  --metric \"Percentage CPU\" `\n  --interval PT1H `\n  --aggregation Average `\n  --start-time $startTime `\n  --end-time $endTime\n\n# App Service Plan utilization\naz monitor metrics list `\n  --resource \"\u003CRESOURCE_ID>\" `\n  --metric \"CpuTime,Requests\" `\n  --interval PT1H `\n  --aggregation Total `\n  --start-time $startTime `\n  --end-time $endTime\n\n# Storage capacity\naz monitor metrics list `\n  --resource \"\u003CRESOURCE_ID>\" `\n  --metric \"UsedCapacity,BlobCount\" `\n  --interval PT1H `\n  --aggregation Average `\n  --start-time $startTime `\n  --end-time $endTime\n```\n\n### Step 7: Generate Optimization Report\n\nCreate a comprehensive cost optimization report in the `output\u002F` folder:\n\n**Use the `create_file` tool** with path `output\u002Fcostoptimizereport\u003CYYYYMMDD_HHMMSS>.md`:\n\n**Report Structure:**\n```markdown\n# Azure Cost Optimization Report\n**Generated**: \u003Ctimestamp>\n\n## Executive Summary\n- Total Monthly Cost: $X (💰 ACTUAL DATA)\n- Top Cost Drivers: [List top 3 resources with Azure Portal links]\n\n## Cost Breakdown\n[Table with top 10 resources by cost, including Azure Portal links]\n\n## Free Tier Analysis\n[Resources operating within free tiers showing $0 cost]\n\n## Orphaned Resources (Immediate Savings)\n[From azqr - resources that can be deleted immediately]\n- Resource name with Portal link - $X\u002Fmonth savings\n\n## Optimization Recommendations\n\n### Priority 1: High Impact, Low Risk\n[Example: Delete orphaned resources]\n- 💰 ACTUAL cost: $X\u002Fmonth\n- 📊 ESTIMATED savings: $Y\u002Fmonth\n- Commands to execute (with warnings)\n\n### Priority 2: Medium Impact, Medium Risk\n[Example: Rightsize VM from D4s_v5 to D2s_v5]\n- 💰 ACTUAL baseline: D4s_v5, $X\u002Fmonth\n- 📈 ACTUAL metrics: CPU 8%, Memory 30%\n- 💵 VALIDATED pricing: D4s_v5 $Y\u002Fhr, D2s_v5 $Z\u002Fhr\n- 📊 ESTIMATED savings: $S\u002Fmonth\n- Commands to execute\n\n### Priority 3: Long-term Optimization\n[Example: Reserved Instances, Storage tiering]\n\n## Total Estimated Savings\n- Monthly: $X\n- Annual: $Y\n\n## Implementation Commands\n[Safe commands with approval warnings]\n\n## Validation Appendix\n\n### Data Sources and Files\n- **Cost Query Results**: `output\u002Fcost-query-result\u003Ctimestamp>.json`\n  - Raw cost data from Azure Cost Management API\n  - Audit trail proving actual costs at report generation time\n  - Keep for at least 12 months for historical comparison\n  - Contains every resource's exact cost over the analysis period\n- **Pricing Sources**: [Links to Azure pricing pages]\n- **Free Tier Allowances**: [Applicable allowances]\n\n> **Note**: The `temp\u002Fcost-query.json` file (if present) is a temporary query template and can be safely deleted. All permanent audit data is in the `output\u002F` folder.\n```\n\n**Portal Link Format:**\n```\nhttps:\u002F\u002Fportal.azure.com\u002F#@\u003CTENANT_ID>\u002Fresource\u002Fsubscriptions\u002F\u003CSUBSCRIPTION_ID>\u002FresourceGroups\u002F\u003CRESOURCE_GROUP>\u002Fproviders\u002F\u003CRESOURCE_PROVIDER>\u002F\u003CRESOURCE_TYPE>\u002F\u003CRESOURCE_NAME>\u002Foverview\n```\n\n### Step 8: Save Audit Trail\n\nSave all cost query results for validation:\n\n**Use the `create_file` tool** with path `output\u002Fcost-query-result\u003CYYYYMMDD_HHMMSS>.json`:\n\n```json\n{\n  \"timestamp\": \"\u003CISO_8601>\",\n  \"subscription\": \"\u003CSUBSCRIPTION_ID>\",\n  \"resourceGroup\": \"\u003CRESOURCE_GROUP>\",\n  \"queries\": [\n    {\n      \"queryType\": \"ActualCost\",\n      \"timeframe\": \"MonthToDate\",\n      \"query\": { },\n      \"response\": { }\n    }\n  ]\n}\n```\n\n### Step 9: Clean Up Temporary Files\n\nRemove temporary query files and folder after the report is generated:\n\n```powershell\n# Delete entire temp folder (no longer needed)\nRemove-Item -Path \"temp\" -Recurse -Force -ErrorAction SilentlyContinue\n```\n\n> **Note**: The `temp\u002Fcost-query.json` file is only needed during API execution. The actual query and results are preserved in `output\u002Fcost-query-result*.json` for audit purposes.\n\n## Output\n\nThe skill generates:\n1. **Cost Optimization Report** (`output\u002Fcostoptimizereport\u003Ctimestamp>.md`)\n   - Executive summary with total costs and top drivers\n   - Detailed cost breakdown with Azure Portal links\n   - Prioritized recommendations with actual data and estimated savings\n   - Implementation commands with safety warnings\n\n2. **Cost Query Results** (`output\u002Fcost-query-result\u003Ctimestamp>.json`)\n   - Audit trail of all cost queries and responses\n   - Validation evidence for recommendations\n\n## Important Notes\n\n### Data Classification\n- 💰 **ACTUAL DATA** = Retrieved from Azure Cost Management API\n- 📈 **ACTUAL METRICS** = Retrieved from Azure Monitor\n- 💵 **VALIDATED PRICING** = Retrieved from official Azure pricing pages\n- 📊 **ESTIMATED SAVINGS** = Calculated based on actual data and validated pricing\n\n### Best Practices\n- Always query actual costs first - never estimate or assume\n- Validate pricing from official sources - account for free tiers\n- Use REST API for cost queries (more reliable than `az costmanagement query`)\n- Save audit trail - include all queries and responses\n- Include Azure Portal links for all resources\n- Use UTF-8 encoding when creating report files\n- For costs \u003C $10\u002Fmonth, emphasize operational improvements over financial savings\n- Never execute destructive operations without explicit approval\n\n### Common Pitfalls\n- **Assuming costs**: Always query actual data from Cost Management API\n- **Ignoring free tiers**: Many services have generous allowances (e.g., Container Apps: 180K vCPU-sec free\u002Fmonth)\n- **Using wrong date ranges**: 30 days for costs, 14 days for utilization\n- **Broken Portal links**: Verify tenant ID and resource ID format\n- **Cost query failures**: Use `az rest` with JSON body, not `az costmanagement query`\n\n### Safety Requirements\n- Get approval before deleting resources\n- Test changes in non-production first\n- Provide dry-run commands for validation\n- Include rollback procedures\n- Monitor impact after implementation\n\n## SDK Quick References\n\n- **Redis Management**: [.NET](references\u002Fsdk\u002Fazure-resource-manager-redis-dotnet.md)\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26},"Microsoft","1.0.0","main","590aa4fe05d1ec71a02ee9cc76c9a20508b5bcea","skills\u002Fju\u002Fskills\u002Fazure-cost-optimization","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha","https:\u002F\u002Fgithub.com\u002Fjulio211916","Estudiante de ing sistemas y psicologia","2026-05-22 04:43:54",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add julio211916\u002FTlantiCAD-Studio-V0.1-alpha --skill azure-cost-optimization",{"tool":40,"command":41},"bunx","bunx skills add julio211916\u002FTlantiCAD-Studio-V0.1-alpha --skill azure-cost-optimization",{"tool":43,"command":44},"pnpm","pnpm dlx skills add julio211916\u002FTlantiCAD-Studio-V0.1-alpha --skill azure-cost-optimization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fazure-cost-optimization\u002FSKILL.md",true,[48,54,58,62,66,70,74],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fauth-best-practices.md","REFERENCE","参考文档",6207,"https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fazure-cost-optimization\u002Freferences\u002Fauth-best-practices.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fazure-quick-review.md",1600,"https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fazure-cost-optimization\u002Freferences\u002Fazure-quick-review.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fazure-redis.md",2707,"https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fazure-cost-optimization\u002Freferences\u002Fazure-redis.md",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fazure-resource-graph.md",2903,"https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fazure-cost-optimization\u002Freferences\u002Fazure-resource-graph.md",{"path":67,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fsdk\u002Fazure-resource-manager-redis-dotnet.md",1519,"https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fazure-cost-optimization\u002Freferences\u002Fsdk\u002Fazure-resource-manager-redis-dotnet.md",{"path":71,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":72,"sourceHtmlUrl":73},"templates\u002Fredis-detailed-cache-analysis.md",3027,"https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fazure-cost-optimization\u002Ftemplates\u002Fredis-detailed-cache-analysis.md",{"path":75,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":76,"sourceHtmlUrl":77},"templates\u002Fredis-subscription-level-report.md",1828,"https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fazure-cost-optimization\u002Ftemplates\u002Fredis-subscription-level-report.md",[79,86,93,100,107,114],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M735PMP7K29TEC1BC5A3VJ3Z","simpy","Process-based discrete-event simulation framework in Python. Use this skill when building simulations of systems with processes, queues, resources, and time-based events such as manufacturing systems, service operations, network traffic, logistics, or any system where entities interact with shared resources over time.","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fsimpy\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M735NX56AZHYMV3BQ8GYZ7J0","shopify-expert","Builds and debugs Shopify themes (.liquid files, theme.json, sections), develops custom Shopify apps (shopify.app.toml, OAuth, webhooks), and implements Storefront API integrations for headless storefronts. Use when building or customizing Shopify themes, creating Hydrogen or custom React storefronts, developing Shopify apps, implementing checkout UI extensions or Shopify Functions, optimizing performance, or integrating third-party services. Invoke for Liquid templating, Storefront API, app development, checkout customization, Shopify Plus features, App Bridge, Polaris, or Shopify CLI workflows.","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fshopify-expert\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M735N9WTN69TVA2T5VS9W1CA","shap","Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model.","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fshap\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M735N3VQ8R56TXFF16BMF19H","shadcn-ui","Deep expertise on shadcn\u002Fui component library including installation, customization, theming, and accessibility patterns. Use when building UI with shadcn\u002Fui components, integrating Radix UI primitives, configuring Tailwind CSS v4 themes, or implementing dark mode. Covers Next.js App Router, Pages Router, and Vite setups.","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fshadcn-ui\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M735KH64KS6Z58H6BJWX89BV","seoul-subway-arrival","Look up Seoul real-time subway arrival information with the official Seoul Open Data API. Use when the user asks when a train arrives, which trains are approaching a station, or how crowded Seoul subway timing looks right now.","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fseoul-subway-arrival\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":19},"01M735K7KAFBZNACQ66PMDQMQD","seo-optimization","Comprehensive 7-phase SEO optimization workflow covering technical SEO auditing, keyword research strategy, on-page optimization, content SEO and E-E-A-T, structured data implementation, link building, and AI search optimization. Use when auditing search engine visibility, diagnosing ranking issues, implementing schema markup, conducting keyword research, optimizing content for E-E-A-T signals, or adapting for AI-driven search (AI Overviews, SGE).","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fseo-optimization\u002FSKILL.md",[],[]]