Azure-Brain
Copilot instructions4 starsChanged 3 months agoMITView on GitHub
This repository is a multi-brain knowledge base for building cloud data & AI solutions with GitHub Copilot. Five brains live at the root: Agent folder layout differs per brain. Fabric-Brain, Meta-Brain, Foundry-Brain and Apps-Brain are flat (agents/<agent>/). Database-Brain is nested by domain (agents/<NN-domain>/<agent>/). Tooling that walks agents must handle both depths. Entry point. AGENTS.md at the repo root is the routing table and full index of all 42 agents. It is auto-loaded by the GitHub Copilot CLI / Copilot app;…
- Installs packages
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this copilot-instructions.md into the rules it gives an agent
12 rules. About 0 are common, 3 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Read resource_ids.md (in Fabric-Brain) for your workspace and item IDs.
- Distinctive: line 27
Use the routing table in AGENTS.md to pick the agent.
- Very specific: line 28
Read the relevant agents/*/instructions.md for your task (under the appropriate brain), plus the companion files it names in its own load …
- Distinctive: line 30
Follow the agent's rules — they exist because of real failures.
- Very specific: line 43
Read [
resource_ids.md](../Fabric-Brain/resource_ids.md): before any deployment. - Very specific: line 49
No hardcoded path containing your account name ($PSScriptRoot, %USERPROFILE%).
- Very specific: line 57
If Fabric-Brain/resource_ids.md doesn't exist:
- Very specific: line 66
When modifying agent instructions or shared patterns, validate from Meta-Brain/:
- Very specific: line 83
When you add a new brain (e.g.
- Very specific: line 85
Create the folder + README.md + agents/_catalog.yaml
- Very specific: line 86
Add it to the BRAINS list in Meta-Brain/tests/conftest.py (covers all test modules)
- Distinctive: line 87
Update the brain table in README.md, the brain list at the top of this file, and the layout + agent index in AGENTS.md
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions — Azure-Brain
Role
This repository is a multi-brain knowledge base for building cloud data & AI solutions with GitHub Copilot.
Five brains live at the root:
Fabric-Brain/— 24 agents + 14 knowledge files for Microsoft Fabric (Lakehouse, Warehouse, Semantic Model, RTI, Data Agents, Ontology).Apps-Brain/— 3 active of 9 catalogued agents for the application layer that consumes the platform brains: runtime (Fabric App / external portal / Azure hosting), identity, embedding, in-app intelligence, frontend, operations. The cut is "I am building an app" — the runtime is a decision inside this brain. Read its non-goals before adding anything: "app" is a magnet domain.Database-Brain/— 4 active agents (of 22 catalogued) for Azure databases: Azure SQL, PostgreSQL, Cosmos DB, MySQL and cross-engine migration (Oracle → PostgreSQL track is live).Foundry-Brain/— 7 active of 11 catalogued agents for Microsoft Foundry: agent service, tool catalog, knowledge (Foundry IQ), observability, governance (guardrails + evaluations), multi-agent orchestration, and the Fabric bridge (Fabric data agent + Fabric IQ). ReadFoundry-Brain/generation_map.mdfirst — two agent generations ship side by side and the older one retires 2027-03-31.Meta-Brain/— 5 cross-cutting agents + shared infrastructure (testing, PPTX, HTML diagrams, project orchestration, README authoring).
Agent folder layout differs per brain. Fabric-Brain, Meta-Brain, Foundry-Brain and Apps-Brain are flat (
agents/<agent>/). Database-Brain is nested by domain (agents/<NN-domain>/<agent>/). Tooling that walks agents must handle both depths.
How to Use
Entry point.
AGENTS.mdat the repo root is the routing table and full index of all 42 agents. It is auto-loaded by the GitHub Copilot CLI / Copilot app; this file is its VS Code counterpart. Both point at the same agent tree — readAGENTS.mdto route, then read the agent's owninstructions.md.
- Read
resource_ids.md(in Fabric-Brain) for your workspace and item IDs. - Use the routing table in
AGENTS.mdto pick the agent. - Read the relevant
agents/*/instructions.mdfor your task (under the appropriate brain), plus the companion files it names in its own load order. - Follow the agent's rules — they exist because of real failures.
Building a whole solution, not a single task? Start from
Meta-Brain/SCENARIOS.mdinstead — the composed demo model (preset = base + modules + axes): 3 bases, 11 modules, named presets, and a documented custom path when none of them fits. Each step names an agent; you then rejoin the loop above. Track a run withrun_sheet.example.md, and never fork a base to make a variant — add an axis, a module, or a preset.
Key Rules
- Report format is owned by
report-builder-agent/instructions.md. It is authoritative and supersedes any summary here — read it before emitting a Power BI report. - Read
resource_ids.mdbefore any deployment. - Read
known_issues.mdat umbrella root before debugging — most errors are already documented. - Follow
agent_principles.md— config-driven, idempotent, async-first. Applies to every brain. - Write as if already public — see
PUBLIC_SAFETY.md. The company is always Caldova. GUIDs in docs and samples are visibly fake (a0000000-0000-4000-a000-00000000000a); never paste one from a real tenant. No hardcoded path containing your account name ($PSScriptRoot,%USERPROFILE%). Secrets are read at runtime. Real values go in a gitignored file with a committed.exampletwin. Verify withpython Meta-Brain/tools/scan_public_safety.py <repo>. - Never claim a capability is "verified" in agent instructions unless a trace or test output proves it. A false "verified" makes downstream agents retry a path that cannot work.
Setup for New Users
If Fabric-Brain/resource_ids.md doesn't exist:
- Copy
Fabric-Brain/resource_ids.example.md→Fabric-Brain/resource_ids.md - Copy
Fabric-Brain/environment.example.md→Fabric-Brain/environment.md - Fill in your Azure subscription, Fabric workspace, and item IDs
- See
GETTING_STARTED.mdfor the full setup guide
Testing
When modifying agent instructions or shared patterns, validate from Meta-Brain/:
cd Meta-Brain
pip install -r requirements.txt # pytest + PyYAML, first run only
python -m pytest tests/ -v --tb=shortThe same suite, plus python Meta-Brain/tools/scan_public_safety.py ., runs in CI
(.github/workflows/no-client-leak.yml) on every push and pull request.
Tests parametrize over every brain's catalog, agent folders, instructions, internal links (in every .md file), Python syntax, and JSON parsing. BRAINS in tests/conftest.py is the single source of truth for which brains are covered.
Two guards fail on things a reviewer cannot see: instructions.md must stay under 20 KB (the read tool truncates there — fix by moving trailing sections to a companion file, never by trimming), and expiry clocks in Meta-Brain/clocks.yaml fail CI 30 days before a documented retirement date makes the prose wrong.
Adding a New Brain
When you add a new brain (e.g. Databricks-Brain/):
- Create the folder +
README.md+agents/_catalog.yaml - Add it to the
BRAINSlist inMeta-Brain/tests/conftest.py(covers all test modules) - Update the brain table in
README.md, the brain list at the top of this file, and the layout + agent index inAGENTS.md - Re-run umbrella tests
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.

