Finops Intelligence 标志

Finops Intelligence

社区
ricmmartins
finops-intelligence

Comprehensive FinOps analysis combining cost optimization, waste identification, and chargeback reporting. Use when asked about reducing Azure spend, finding unused resources, cost per team, chargeback, showback, cost anomalies, rightsizing, or monthly cost review.

概览

发布者ricmmartins
代码仓库azure-sre-agent-skills
技能名称finops-intelligence
星标数
70
复刻数
14
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 ricmmartins 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Finops Intelligence AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/ricmmartins/azure-sre-agent-skills/tree/main/skills/04-finops-intelligence
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ricmmartins/azure-sre-agent-skills.git /tmp/azure-sre-agent-skills
mkdir -p .claude/skills
cp -r /tmp/azure-sre-agent-skills/skills/04-finops-intelligence .claude/skills/finops-intelligence
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Finops Intelligence,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Finops Intelligence。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Finops Intelligence 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

FinOps Intelligence

Purpose

Unified cost intelligence skill that identifies savings opportunities, tracks cost trends, and generates chargeback/showback reports by team or project. Answers both "where can we save?" and "who spent what?"

When to use this skill

  • User asks "why did our bill go up?"
  • User asks for cost optimization or savings opportunities
  • User asks "how much did team X spend this month?"
  • User asks for chargeback, showback, or cost allocation report
  • Monthly proactive cost review or FinOps cadence

Pre-check

Confirm with the user:

  • Scope: Which subscriptions to scan (all or specific ones)
  • Time range: For trend analysis (default: last 3 months)
  • Allocation model (for chargeback): Which tag to use for cost splitting?
    • cost-center tag (most common)
    • owner or team tag
    • application or project tag
    • Resource group naming convention (e.g., rg-teamname-*)
  • Exclusions: Dev/test subscriptions, sandbox resource groups

Analysis procedure

Step 1: Cost trend overview

Get the big picture using Azure Cost Management.

bash
# Current month cost by service (last 30 days)
az costmanagement query --type ActualCost --timeframe MonthToDate \
  --scope "subscriptions/<sub-id>" \
  --dataset-aggregation '{"totalCost":{"name":"Cost","function":"Sum"}}' \
  --dataset-grouping name="ServiceName" type="Dimension" \
  -o table
bash
# Previous month for comparison
az costmanagement query --type ActualCost --timeframe TheLastMonth \
  --scope "subscriptions/<sub-id>" \
  --dataset-aggregation '{"totalCost":{"name":"Cost","function":"Sum"}}' \
  --dataset-grouping name="ServiceName" type="Dimension" \
  -o table

If az costmanagement is unavailable, use the REST API:

bash
az rest --method post \
  --url "https://management.azure.com/subscriptions/<sub-id>/providers/Microsoft.CostManagement/query?api-version=2023-11-01" \
  --body '{"type":"ActualCost","timeframe":"MonthToDate","dataset":{"aggregation":{"totalCost":{"name":"Cost","function":"Sum"}},"grouping":[{"type":"Dimension","name":"ServiceName"}]}}'

Summarize:

  • Total spend this month vs. last month (% change)
  • Top 5 services by spend
  • Top 5 resource groups by spend
  • Any spending anomalies (day-over-day spikes > 20%)

Step 2: Orphaned resources (waste)

Find resources consuming cost with no active use.

CheckCommandSavings signal
Unattached managed disksaz disk list --query "[?managedBy==null]"Disk cost per month
Unused public IPsaz network public-ip list --query "[?ipConfiguration==null]"~$3.65/month each
Stopped but allocated VMsaz vm list -d --query "[?powerState=='VM deallocated']"Disk + IP cost still billed
Unused App Service plansaz appservice plan list --query "[?numberOfSites==0]" --resource-group <rg>Full plan cost
Old snapshots (>90 days)az snapshot list --query "[?timeCreated<'$(date -u -d '90 days ago' +%Y-%m-%dT%H:%M:%SZ)']"Storage cost
Unused NAT Gatewaysaz network nat gateway list cross-ref with subnets~$32/month each
Empty resource groupsaz group list then check member countOrganizational waste

Note on date handling: Use shell variable substitution for date comparisons:

  • Linux/macOS: $(date -u -d '90 days ago' +%Y-%m-%dT%H:%M:%SZ)
  • The SRE Agent sandbox runs Linux, so the above syntax is valid.

Step 3: Rightsizing opportunities

Identify over-provisioned resources.

  1. VMs with low CPU (< 5% avg over 14 days): Query Azure Monitor metrics for Percentage CPU across all VMs
  2. VMs with low memory (< 10% avg): Query Log Analytics for memory counters if available
  3. Over-provisioned App Service plans: Check CPU and memory % across the plan — if consistently < 20%, suggest downgrade
  4. Over-provisioned databases: Check DTU/vCore utilization — if < 20%, suggest lower tier

For each, calculate:

  • Current SKU and monthly cost
  • Recommended SKU and monthly cost
  • Estimated monthly savings

Step 4: Reservation & savings plan opportunities

  1. List VMs running 24/7 for > 30 days — candidates for Reserved Instances (up to 72% savings)
  2. List databases running 24/7 — candidates for reserved capacity
  3. Check if Azure Savings Plans could apply to compute spend

Step 5: Storage optimization

  1. Check storage accounts for access tier usage:
    bash
    az storage account list --query "[].{name:name, accessTier:accessTier, kind:kind}" -o table
  2. Identify blobs that haven't been accessed in 90+ days — candidates for Cool/Archive tier
  3. Check for lifecycle management policies — suggest if missing
  4. Check for redundancy over-provisioning (GRS when LRS would suffice for non-critical data)

Step 6: Cost allocation (chargeback/showback)

Group costs by the user's chosen allocation model.

By tag (preferred):

  • Group all resources by the chosen tag value
  • Aggregate costs per tag value
  • Track untagged resources separately as "Unallocated"

By resource group (fallback):

  • Parse resource group names for team/project identifiers
  • Group and aggregate accordingly

Shared costs (identify and handle):

  • Resources used by multiple teams (e.g., shared AKS cluster, shared networking)
  • Flag these separately — suggest allocation keys (even split, usage-based, or headcount-based)

For each team/project:

  • This period vs. previous period: $ change and % change
  • Top cost driver (which service drove the change?)
  • Flag anomalies (> 30% increase without known cause)

Step 7: Efficiency metrics

Calculate per-team efficiency indicators:

  • Cost per resource: Total spend / number of resources
  • Compute waste ratio: Cost of idle/underutilized resources / total compute cost
  • Tag compliance: % of team's resources properly tagged

Accepted exceptions (optional)

If the user provides a list of accepted exceptions, do not flag those items. Instead, note them in the report as Accepted Exception with the reason provided.

Example format the user may provide:

CheckReason
2.1 Unattached managed disksKept for disaster recovery snapshots, reviewed monthly
3.2 Over-provisioned App Service plansPre-scaled for upcoming product launch next week
4.1 Reserved instancesShort-term project, reservations not cost-effective

When exceptions are provided:

  • Skip the flagged checks in scoring
  • List them in a separate "Accepted Exceptions" section at the end of the report
  • Recalculate the overall score excluding excepted checks

Expected output

Report header (mandatory — use this exact format)

FinOps Cost Optimization & Chargeback Report

FieldValue
Subscription(name + ID)
Report DateYYYY-MM-DD
Total Spend (MTD)$X,XXX
Projected Full Month$X,XXX
Month-over-month Change+/-$X (+/-X%)
Waste Identified (recoverable)~$X/month
Resource Groups TrackedN (M with spend)
Tag ComplianceX%
Issues FoundX Critical, Y High, Z Medium

Savings breakdown table

CategoryFindingCurrent Cost/moSavings/moPriorityAction
Orphaned3 unattached disks$45$45HighDelete or snapshot+delete
Rightsizing2 VMs at < 5% CPU$380$190HighResize D4s_v5 → B2ms
Reservations5 VMs running 24/7$1,200$864Medium3yr RI
StorageNo lifecycle policies$200$80MediumAdd cool tier policy
TOTAL RECOVERABLE——~$X,XXX/mo——

Cost allocation table

Team / ProjectThis PeriodLast PeriodChange% ChangeTop Service% of Total
Platform$5,200$4,800+$400+8.3%Compute32%
Product API$3,800$3,100+$700+22.6% ⚠️Databases24%
Unallocated$1,300$800+$500+62.5% 🔴Mixed8%
Total$16,000$14,300+$1,700+11.9%100%

Quick wins (implement today)

Top 3 actions that save the most with the least effort.

Requires planning

Actions that need architecture review or stakeholder approval.

Unallocated cost remediation

List untagged resources with suggested owner and tagging command:

bash
az resource tag --ids <resource-id> --tags team=<team> cost-center=<cc>

Remediation guidance

For each cost finding, include in the output:

  1. The specific az CLI command to remediate (suggest only — do not execute)
  2. Use GetAzCliHelp to validate the command syntax before suggesting
  3. The official Microsoft Learn documentation link

References

Sample output

The following is a redacted example of what the report looks like when run against a subscription.

FinOps Cost Optimization & Chargeback Report

FieldValue
Subscriptioncontoso-prod-001 (a1b2c3d4-e5f6-7890-abcd-ef1234567890)
Report Date2026-07-15
Total Spend (MTD)$12,340
Projected Full Month$16,450
Month-over-month Change+$1,700 (+11.5%)
Waste Identified (recoverable)~$1,179/month
Resource Groups Tracked14 (12 with spend)
Tag Compliance78%
Issues Found2 Critical, 3 High, 4 Medium

Savings breakdown table

CategoryFindingCurrent Cost/moSavings/moPriorityAction
Orphaned3 unattached disks in rg-app-prod$45$45HighDelete or snapshot+delete
Orphaned2 unused public IPs$7$7MediumDelete
Rightsizingvm-batch-01 at 3% CPU avg$380$190HighResize D4s_v5 → B2ms
Rightsizingsql-staging at 8% DTU$250$125MediumDowngrade S3 → S1
Reservations5 VMs running 24/7 for 90+ days$1,200$864Medium3yr RI
TOTAL RECOVERABLE——~$1,179/mo——

Cost allocation table

Team / ProjectThis PeriodLast PeriodChange% ChangeTop Service% of Total
Platform$5,200$4,800+$400+8.3%Compute32%
Product API$3,800$3,100+$700+22.6% ⚠️Databases24%
Data Team$2,700$2,600+$100+3.8%Storage17%
Unallocated$1,300$800+$500+62.5% 🔴Mixed8%
Total$16,450$14,750+$1,700+11.5%100%

Remediation guidance (sample)

bash
# Delete unattached managed disks
az disk delete --name disk-old-backup-01 --resource-group rg-app-prod --yes

# Resize over-provisioned VM
az vm resize --name vm-batch-01 --resource-group rg-batch-prod --size Standard_B2ms

# Tag unallocated resources
az resource tag --ids /subscriptions/.../resourceGroups/rg-shared/providers/Microsoft.Storage/storageAccounts/stcontososhared --tags team=platform cost-center=CC-1234

常见问题

Finops Intelligence AI 技能有什么作用?

Comprehensive FinOps analysis combining cost optimization, waste identification, and chargeback reporting. Use when asked about reducing Azure spend, finding unused resources, cost per team, chargeback, showback, cost anomalies, rightsizing, or monthly cost review.

为什么在 TypingMind 中使用 Finops Intelligence?

因为您只需安装一次,就能搭配任何模型使用。Finops Intelligence 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Finops Intelligence?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/ricmmartins/azure-sre-agent-skills/tree/main/skills/04-finops-intelligence。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Finops Intelligence?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Finops Intelligence 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Finops Intelligence 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Finops Intelligence AI 技能免费吗?

是的。ricmmartins 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇