Skill

finops-toolkit

This skill should be used when the user asks about "FinOps hubs", "FinOps toolkit", "KQL queries", "Kusto", "cost data analysis", "Hub database", "Costs function", "Prices function", "Recommendations function", "FinOps hubs deployment", "Azure Data Explorer", "ADX cluster", or any FinOps hubs operations.

From finops-toolkit
Install
1
Run in your terminal
$
npx claudepluginhub msbrettorg/maenifold --plugin finops-toolkit
Tool Access

This skill uses the workspace's default tool permissions.

Supporting Assets
View in Repository
README.md
references/docs-mslearn/TOC.yml
references/docs-mslearn/best-practices/compute.md
references/docs-mslearn/best-practices/databases.md
references/docs-mslearn/best-practices/general.md
references/docs-mslearn/best-practices/library.md
references/docs-mslearn/best-practices/networking.md
references/docs-mslearn/best-practices/storage.md
references/docs-mslearn/best-practices/web.md
references/docs-mslearn/conduct-iteration.md
references/docs-mslearn/fabric/create-fabric-workspace-finops.md
references/docs-mslearn/fabric/media/create-fabric-workspace-finops/endpoints-page-storage-account.png
references/docs-mslearn/fabric/media/create-fabric-workspace-finops/exports-cost-and-usage-focus.png
references/docs-mslearn/fabric/media/create-fabric-workspace-finops/fabric-create-workspace.png
references/docs-mslearn/fabric/media/create-fabric-workspace-finops/fabric-lakehouse-copy-path-load-table.png
references/docs-mslearn/fabric/media/create-fabric-workspace-finops/fabric-load-table-lakehouse.png
references/docs-mslearn/fabric/media/create-fabric-workspace-finops/fabric-new-lakehouse.png
references/docs-mslearn/fabric/media/create-fabric-workspace-finops/fabric-new-more-options.png
references/docs-mslearn/fabric/media/create-fabric-workspace-finops/fabric-new-shortcut-connection-settings.png
references/docs-mslearn/fabric/media/create-fabric-workspace-finops/fabric-new-shortcut.png
Skill Content

FinOps hubs AI agent instructions

šŸ›”ļø CORE OPERATING RULES

Essential commands

  • Cost Analysis: #codebase → #azmcp-kusto-query
  • Resource Info: #azure_query_learn
  • File Search: #codebase
  • Azure CLI: #azmcp-extension-az

Non-negotiable rules

  1. READ THE REFERENCE DOCS FIRST. Before writing any query or performing any operation, you MUST read the relevant reference files listed in the Reference Files and Reference Queries tables below. These are not optional — they are mandatory prerequisites. Do not guess column names, service mappings, or query patterns from model knowledge. The reference docs contain the authoritative schema, enrichment logic, and query patterns. Skipping them produces wrong results.
  2. VERIFY schema before ANY query (Check Database Guide)
  3. NEVER guess columns or data
  4. SHOW query before execution
  5. STOP if confidence <70%

Think-Execute Framework

THINK → PLAN → VERIFY → EXECUTE → VALIDATE

šŸ”„ EXECUTION FRAMEWORK

graph LR
    A[Request] --> B{Think & Analyze}
    B --> C[Validate Schema]
    C --> D[Select Tool]
    D --> E[Execute]
    E --> F[Format Results]
    F --> G[Deliver Insights]

Example: "Why are costs increasing?"

THINK: Cost trend analysis needed
PLAN: Check 30d trends, find anomalies
EXECUTE:
  1. Query: cost-anomaly-detection.kql
  2. Found: Storage +250% (day 15 spike)
  3. Cause: New backup policy
  4. Impact: +$5,000/month
  5. Fix: Adjust retention → Save $3,000

šŸ› ļø TOOL SELECTION

  • Have KQL? → #azmcp-kusto-query
  • Need query? → #codebase (search catalog)
  • Resource info? → #azure_query_learn
  • Azure ops? → #azmcp-extension-az

šŸ“Š RESPONSE TEMPLATE

Confidence: [High/Medium/Low]
Scope: [Time period, filters]

Quick answer (2-3 sentences)

šŸ’° [Key finding with primary metric]

Analysis (if needed)

[1-2 paragraphs with data table]

Recommendations

  1. Immediate: [Action]
  2. Next: [Action]

šŸ”§ ERROR RECOVERY

# Auto-retry up to 3x with fixes:
- Schema errors → verify & fix columns
- Timeouts → add filters & optimize
- Syntax → auto-correct
- Access → guide permissions

šŸ“ QUALITY CHECKLIST

  • Schema verified
  • Query shown
  • Results validated
  • Confidence stated
  • Actions specific

šŸ†˜ EMERGENCY PROCEDURES

Critical Failure

1. STOP operations
2. DOCUMENT error
3. NOTIFY user
4. PROVIDE workaround

Low Confidence (<70%)

## āš ļø Clarification Needed

I need more information:

- Time period? (default: 30 days)
- Scope? (default: all resources)

[Specify or proceed with defaults]

šŸ“š DETAILED GUIDES

FinOps hubs

FinOps hubs query and deployment skills. Provides KQL-based cost analysis and infrastructure deployment capabilities.

Always read references/finops-hubs.md before attempting any FinOps hubs queries or analysis. Use references/queries/INDEX.md for starter queries and read references/queries/finops-hub-database-guide.md before attempting to create your own queries.

Always read references/finops-hubs-deployment.md before attempting any FinOps hubs infrastructure deployment.

Query Catalog

KQL queries for FinOps hubs analysis:

ResourcePathPurpose
Indexreferences/queries/INDEX.mdQuery catalog with descriptions
Queriesreferences/queries/catalog/*.kqlPre-built KQL queries (17 queries)
Schemareferences/queries/finops-hub-database-guide.mdDatabase schema documentation

Domain Knowledge

DomainPurposeKey Operations
finops-hubsQuery cost data via KQLKusto queries, anomaly detection, forecasting
finops-hubs-deploymentDeploy/manage hubs infrastructureADX clusters, Fabric, exports, Power BI

FinOps Hubs (Cost Analysis)

Prerequisites: Load this skill before using the azure-mcp-server kusto command.

Key Facts:

  • Uses KQL (Kusto), NOT SQL
  • Database: Always use "Hub", never "Ingestion"
  • Functions: Costs(), Prices(), Recommendations(), Transactions()
  • Default: 30-day analysis window
  • Always include tenant parameter for cross-tenant scenarios

Query Execution:

{
  "cluster-uri": "<cluster-uri from .ftk/environments.local.md>",
  "database": "Hub",
  "tenant": "<tenant from .ftk/environments.local.md>",
  "query": "<KQL query>"
}

Configuration: Read environment settings from .ftk/environments.local.md at the project root. Use the default environment unless the user specifies one. See references/settings-format.md for the file format.

For detailed documentation: references/finops-hubs.md

Infrastructure Deployment

Deployment targets:

  • Azure Data Explorer clusters
  • Microsoft Fabric workspaces
  • Cost Management exports
  • Power BI dashboards

Key commands: az deployment, az kusto, az storage

For detailed documentation: references/finops-hubs-deployment.md

Reference Files

Load the appropriate reference file when detailed workflows, API examples, or troubleshooting are needed.

FileDescription
references/finops-hubs.mdDomain knowledge for cost analysis: KQL execution, anomaly detection, savings optimization, and FinOps Framework-aligned reporting. Read before any cost query.
references/finops-hubs-deployment.mdDeployment and configuration of FinOps hub infrastructure: ADX clusters, Fabric, Data Factory, exports, Key Vault, and Power BI dashboards.
references/settings-format.mdFormat specification for .ftk/environments.local.md — named environments with cluster-uri, tenant, subscription, and resource-group.
references/queries/INDEX.mdQuery catalog with scenario-to-query matrix, parameter docs, and usage guidance for all 17 pre-built KQL queries.
references/queries/finops-hub-database-guide.mdHub database schema: Costs(), Prices(), Recommendations(), Transactions() functions, column definitions, enrichment columns, and query best practices. Read before writing custom KQL.
references/workflows/ftk-hubs-connect.mdStep-by-step workflow to discover FinOps hub instances via Resource Graph, connect, and save environment config.
references/workflows/ftk-hubs-healthCheck.mdHealth check workflow: version comparison against stable/dev releases, upgrade guidance, and diagnostic steps.

Reference Queries

QueryDescription
costs-enriched-base.kqlBase query with full enrichment and savings logic for all cost columns. Start here for custom analytics.
monthly-cost-trend.kqlTotal billed and effective cost by month for trend analysis and executive reporting.
monthly-cost-change-percentage.kqlMonth-over-month cost change percentage for both billed and effective costs.
top-services-by-cost.kqlTop N Azure services by cost. Key for cost visibility.
top-resource-types-by-cost.kqlTop N resource types by cost and usage (VMs, storage, etc.).
top-resource-groups-by-cost.kqlTop N resource groups by effective cost.
quarterly-cost-by-resource-group.kqlEffective cost by resource group for quarterly or multi-month reporting.
cost-by-region-trend.kqlEffective cost by Azure region for regional cost driver analysis.
cost-by-financial-hierarchy.kqlCost allocation by billing profile, invoice section, team, product, and app for showback/chargeback.
cost-anomaly-detection.kqlDetect unusual cost spikes or drops using statistical anomaly detection.
cost-forecasting-model.kqlProject future costs for budgeting and planning with configurable forecast horizon.
service-price-benchmarking.kqlCompare list, contracted, effective, negotiated, and commitment prices by service.
commitment-discount-utilization.kqlReservation and savings plan utilization analysis for rate optimization.
savings-summary-report.kqlTotal realized savings and Effective Savings Rate (ESR) KPI.
top-commitment-transactions.kqlTop N reservation or savings plan purchases by cost impact.
top-other-transactions.kqlTop N non-commitment, non-usage transactions (support, marketplace, etc.).
reservation-recommendation-breakdown.kqlMicrosoft reservation recommendations with projected savings and break-even analysis.

Microsoft Learn documentation

Official Microsoft documentation for FinOps and the FinOps toolkit. Source: learn.microsoft.com.

FinOps overview

FileDescription
overview.mdMicrosoft Cloud FinOps overview
implementing-finops-guide.mdGuide to implementing FinOps in Azure
conduct-iteration.mdConducting a FinOps iteration

FinOps Framework

FileDescription
finops-framework.mdFinOps Framework overview
capabilities.mdFinOps capabilities reference

Understand cloud usage and cost

FileDescription
understand-cloud-usage-cost.mdUnderstand pillar overview
ingestion.mdData ingestion
allocation.mdCost allocation
reporting.mdReporting and analytics
anomalies.mdAnomaly management

Quantify business value

FileDescription
quantify-business-value.mdQuantify pillar overview
planning.mdPlanning and estimating
budgeting.mdBudgeting
forecasting.mdForecasting
benchmarking.mdBenchmarking
unit-economics.mdUnit economics

Optimize cloud usage and cost

FileDescription
optimize-cloud-usage-cost.mdOptimize pillar overview
architecting.mdArchitecting for cloud
workloads.mdWorkload optimization
rates.mdRate optimization
licensing.mdLicensing and SaaS
sustainability.mdCloud sustainability

Manage the FinOps practice

FileDescription
manage-finops.mdManage pillar overview
onboarding.mdFinOps onboarding
education.mdFinOps education and enablement
operations.mdFinOps operations
governance.mdFinOps and governance
assessment.mdFinOps assessment
invoicing-chargeback.mdInvoicing and chargeback
tools-services.mdTools and services
intersecting-disciplines.mdIntersecting disciplines

FOCUS

FileDescription
what-is-focus.mdWhat is FOCUS (FinOps Open Cost and Usage Specification)
mapping.mdFOCUS column mapping
metadata.mdFOCUS metadata
convert.mdConverting data to FOCUS
validate.mdValidating FOCUS data
conformance-summary.mdFOCUS conformance summary
conformance-full-report.mdFOCUS conformance full report

Cost optimization best practices

FileDescription
general.mdGeneral cost optimization best practices
compute.mdCompute cost optimization
databases.mdDatabase cost optimization
networking.mdNetworking cost optimization
storage.mdStorage cost optimization
web.mdWeb and app service cost optimization
library.mdBest practices library

FinOps toolkit

FileDescription
finops-toolkit-overview.mdFinOps toolkit overview
changelog.mdToolkit changelog
roadmap.mdToolkit roadmap
open-data.mdOpen data (pricing units, regions, services, resource types)
data-lake-storage-connectivity.mdData lake storage connectivity

FinOps hubs

FileDescription
finops-hubs-overview.mdFinOps hubs overview
deploy.mdDeploy FinOps hubs
upgrade.mdUpgrade FinOps hubs
template.mdHub Bicep template reference
data-model.mdHub database data model. Read for authoritative schema reference.
data-processing.mdData processing pipeline
savings-calculations.mdSavings calculations methodology
compatibility.mdVersion compatibility matrix
configure-scopes.mdConfigure cost export scopes
configure-dashboards.mdConfigure dashboards
configure-remote-hubs.mdConfigure remote hubs
configure-ai.mdConfigure AI copilot for FinOps hubs
private-networking.mdPrivate networking configuration

Alerts

FileDescription
finops-alerts-overview.mdFinOps alerts overview
configure-finops-alerts.mdConfigure FinOps alerts

Bicep registry

FileDescription
modules.mdBicep registry modules
scheduled-actions.mdScheduled actions module

Optimization engine

FileDescription
overview.mdOptimization engine overview
setup-options.mdSetup options
configure-workspaces.mdConfigure workspaces
customize.mdCustomize the optimization engine
reports.mdOptimization reports
suppress-recommendations.mdSuppress recommendations
troubleshooting.mdTroubleshooting
faq.mdFrequently asked questions

Power BI

FileDescription
reports.mdPower BI reports overview
setup.mdPower BI setup
connector.mdFinOps toolkit Power BI connector
template-app.mdPower BI template app
help-me-choose.mdHelp me choose a Power BI report
cost-summary.mdCost summary report
rate-optimization.mdRate optimization report
workload-optimization.mdWorkload optimization report
governance.mdGovernance report
data-ingestion.mdData ingestion report
invoicing.mdInvoicing report

Workbooks

FileDescription
finops-workbooks-overview.mdFinOps workbooks overview
customize-workbooks.mdCustomize workbooks
optimization.mdOptimization workbook
governance.mdGovernance workbook

Fabric

FileDescription
create-fabric-workspace-finops.mdCreate a Fabric workspace for FinOps

PowerShell commands

FileDescription
powershell-commands.mdPowerShell commands overview

Cost Management commands

FileDescription
cost-management-commands.mdCost Management commands overview
get-finopscostexport.mdGet-FinOpsCostExport
new-finopscostexport.mdNew-FinOpsCostExport
start-finopscostexport.mdStart-FinOpsCostExport
remove-finopscostexport.mdRemove-FinOpsCostExport
add-finopsserviceprincipal.mdAdd-FinOpsServicePrincipal

Open data commands

FileDescription
open-data-commands.mdOpen data commands overview
get-finopspricingunit.mdGet-FinOpsPricingUnit
get-finopsregion.mdGet-FinOpsRegion
get-finopsresourcetype.mdGet-FinOpsResourceType
get-finopsservice.mdGet-FinOpsService

FinOps hubs commands

FileDescription
finops-hubs-commands.mdFinOps hubs commands overview
deploy-finopshub.mdDeploy-FinOpsHub
get-finopshub.mdGet-FinOpsHub
initialize-finopshubdeployment.mdInitialize-FinOpsHubDeployment
register-finopshubproviders.mdRegister-FinOpsHubProviders
remove-finopshub.mdRemove-FinOpsHub
remove-finopshubscope.mdRemove-FinOpsHubScope

Toolkit commands

FileDescription
finops-toolkit-commands.mdToolkit commands overview
get-finopstoolkitversion.mdGet-FinOpsToolkitVersion

Help and support

FileDescription
help-options.mdHelp options
support.mdSupport
troubleshooting.mdTroubleshooting
errors.mdError reference
deploy.mdDeployment help
data-dictionary.mdData dictionary
terms.mdTerms and definitions
contributors.mdContributors
Stats
Parent Repo Stars9
Parent Repo Forks1
Last CommitFeb 19, 2026