agentleFS
MicrosoftKnown publishermicrosoft/finops-toolkit/src/templates/finops-hub-copilot/copilot-instructions.md

finops-toolkit / finops-hub-copilot

Copilot instructions607 starsChanged 3 months agoMITView on GitHub

Example: "Why are costs increasing?" ๐Ÿ’ฐ [Key finding with primary metric] [1-2 paragraphs with data table]

The file

Files
copilot-instructions.md

FinOps hubs AI agent instructions (Condensed)

๐Ÿ›ก๏ธ 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. VERIFY schema before ANY query (Check Database Guide)
  2. NEVER guess columns or data
  3. SHOW query before execution
  4. 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

๐ŸŒ ENVIRONMENTS

Default Hub

- Subscription Id: 00000000-0000-0000-0000-000000000000
- Tenant Id: 00000000-0000-0000-0000-000000000000
- Resource Group: finops-hub-west
- Location: westus
- Cluster URI: https://ftk-finops-hub.westus.kusto.windows.net
- Database: Hub

Product Hub

- Subscription Id: 00000000-0000-0000-0000-000000000000
- Tenant Id: 00000000-0000-0000-0000-000000000000
- Resource Group: finops-hub-east
- Location: eastus
- Cluster URI: https://ftk-finops-hub.eastus.kusto.windows.net
- Database: Hub

๐Ÿ†˜ 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


Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.