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]
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- microsoft-writing-style-guideSkill
- finops-toolkitSkill
The file
Files
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
- VERIFY schema before ANY query (Check Database Guide)
- NEVER guess columns or data
- SHOW query before execution
- 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
- Immediate: [Action]
- 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: HubProduct 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 workaroundLow Confidence (<70%)
## โ ๏ธ Clarification Needed
I need more information:
- Time period? (default: 30 days)
- Scope? (default: all resources)
[Specify or proceed with defaults]๐ DETAILED GUIDES
- Query examples
- Schema reference
- FinOps Framework
- Microsoft FinOps documentation
- FinOps hubs database data model
- FinOps hubs starter queries
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
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.

