atlanai/analytics-playbook

★ 135⑂ 1

How to build an analytics agent that gets your business numbers right: metrics from your analysts' SQL, a golden set of real questions, improvement loops

About atlanai/analytics-playbook

atlanai/analytics-playbook is an open-source project on GitHub, mainly written in HTML. How to build an analytics agent that gets your business numbers right: metrics from your analysts' SQL, a golden set of real questions, improvement loops It currently holds 135 stars and 1 forks with 0 open issues, and was last pushed on 2026-10-28 (repository created 2026-10-27).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #56 with 0 new stars today.

GitHub Repository Details

Repository atlanai/analytics-playbook · default branch main · size 335970 KB · watchers 0 · source: GitHub REST API and repository README

README

https://github.com/atlanai/analytics-playbook/blob/HEAD/The FDE Playbook for Analytics Agents. From demo to production.

Read the guide · The method on one map · Watch the videos · What we found

https://github.com/atlanai/analytics-playbook/blob/HEAD/Build https://github.com/atlanai/analytics-playbook/blob/HEAD/Plan https://github.com/atlanai/analytics-playbook/blob/HEAD/Evidence

---

Analytics agents pass the demo and fail on the tenth real question. The wrong answers look right, so nobody notices until a number reaches a board deck.

This playbook shows how to fix that. It covers what the agent has to know, how to build that knowledge and measure it, and who does what, phase by phase, until your team runs the loop on its own. It is written for whoever does the work: your own team, a partner, or a forward-deployed engineer.

Prefer listening? Choose a podcast for your role, 12–21 minutes each. Audio plays while you read; transcripts are available for every episode.

The problem in one query

Ask an agent for fiscal Q3 sales pipeline, at a company whose fiscal year ends 30 June. Any good analyst writes this:

SELECT SUM(o.amount)
FROM opportunity o
JOIN account a ON a.id = o.account_id
WHERE o.close_date BETWEEN DATE '2026-01-01' AND DATE '2026-03-31'  -- fiscal Q3
  AND o.stage NOT IN ('Closed Won', 'Closed Lost')
  AND a.is_internal = FALSE AND a.is_test = FALSE;  -- internal and test accounts are out

It returns $18.4M. Finance reports $11.2M, because at this company the earliest pipeline stages are top-of-funnel noise and never count. That rule is in no table, no column and no description. Nothing in the wrong SQL looks wrong.

A business question like this hides about five such decisions: which stages count, which rows, which quarter, which amount, and how the answer is assembled. Guess each one right 80% of the time and you get all five right once in three tries: 0.8⁵ ≈ 33%. This is a worked example. Bare-schema agents in our runs scored near it. On our warehouse, switching models moved that score far less than adding context did.

What moves accuracy

https://github.com/atlanai/analytics-playbook/blob/HEAD/Same questions, bare schema plus one kind of context: bare schema 31.8%, descriptions and documentation 39.3%, usage patterns 43.9%, AI-generated metrics and queries 83.2%.

We ran the method on our own go-to-market warehouse: 107 real questions our analysts had asked, graded by code. No person wrote the context behind these results: our systems built every metric, past query and term from the query log, the catalog and existing documentation.

The method

https://github.com/atlanai/analytics-playbook/blob/HEAD/Five phases, each ending at a gate: before the clock, build the golden set, generate metrics, hill-climb from traces, release and hand over.

Work one domain at a time: scope, test, generate metrics, resolve conflicts, hill climb, release. Evals come first: the golden set is sealed before any context is built. The agent makes one context call per question, served live over MCP from one store. Two lanes set how exact each answer must be:

Pick your door

| You are… | Recommended reading | Your cards | |---|---|---| | Sponsoring it: CDAO, VP Data or AI, exec sponsor | The method at a glance, Why analytics agents are hard and Evals first. About 20 minutes, or the three-minute overview video | The sponsor's ask · What the sponsor sees at each gate · Is it ready to launch? | | Building it: agent builder, context engineer, analytics engineer | Evals first → The metric is the unit → Serve per question → Phase 0 → Phases 1-4 → Keep it running | What you need before you start · Why did this miss? · How to resolve a conflict | | Running it: delivery lead, partner consultant, internal program lead | The method at a glance → Phase 0 → Phases 1-4 → the ceremonies and stalls in Keep it running | What you need before you start · The eval owner's week · What to do when · Deliver as a partner |

Cards are one-page checklists you can print. Not sure where you stand? Take the self-assessment; it routes you to the chapters you need.

What's inside

| | Chapter | What it answers | |---|---|---| | Why it is hard | Why analytics agents are hard | The five steps and the open one; the tenth question; what the question means (five hidden decisions, the model swap); deciding the same way every time (SQL beats a sentence); knowing you are right (why a fixed test). Each ends with where its fix lives | | How to build one | The method at a glance | What closes the gap (the context ladder), the lifecycle, the eight rules, the gates, the method map, the running example | | | Evals first | One row of the golden set, what makes an eval worth trusting, grading in layers, evals as the agent's CI/CD | | | The metric is the unit | What a metric is, where each kind of knowledge goes, why a metric and not a view, the two lanes | | | Serve per question | The retrieval architecture, why MCP, what the search should match, checking it in the traces | | | Phase 0: before the clock | One domain, access, agent architecture, people and hours | | | Phase 1: build the golden set | Harvesting and grading at least 20 real questions, sealing them, the baseline | | | Phase 2: generate metrics | Generating metrics from past SQL and BI, checking them, resolving conflicts, approving | | | Phase 3: hill-climb from traces | Reading the raw trace, the three kinds of miss, the smallest fix, when to stop | | | Phase 4: release and hand over | The launch gate, how the agent reaches users, and the handover | | | Keep it running | The production loop, drift triggers, domain two, answering why, the ceremonies and gates, what to do when things stall | | Toolkit | Where are you starting? · Cards · Templates · Videos | The readiness self-assessment, 14 printable cards, 21 copy-paste templates and ten narrated videos, about 31 minutes in all | | Research | What we found · How we measured · What others found | Every result with its cost, the misses and why, the benchmark method, and outside research next to ours | | Reference | Failure modes · Glossary · Tooling · Semantic layers compared | A failure index you look up by symptom, the vocabulary, sources, how to contribute, and one model in six semantic-layer syntaxes |

The chapters follow one engagement, a sales domain, from the Phase 0 checklist to the domain-two plan, in boxes marked In practice. It is a composite built to show the method, so its counts are examples, not measurements.

Use it

A Note To Our Readers

We've been working on this problem since we were a data team ourselves. This playbook is our best attempt so far, not the final word. We've tried to show all our work: every result, how we measured it, and where it fell short. We'll keep updating it as we learn more, test new methods and as the AI ecosystem changes. If you build, lead or implement analytics agents, we want to hear what you find. Get in touch.

Contribute

Found something wrong, or have a field result to add? Open an issue or a pull request. The build check runs on every PR. It fails on broken links, unregistered evidence IDs, missing diagrams and banned phrasing.

Contact

Questions about the playbook, a result you want to share, or a correction? Open an issue or a pull request, or email the team at [email protected].

FAQ

Is this tied to a product? Atlan sells a context-layer product built around this method, and Atlan's systems built the benchmark context. Everything here can be built without it.

Will the numbers transfer to my warehouse? The method transfers; your numbers will be your own. Expect the same order: past SQL beats documentation, and metrics add to both.

How long does it take? Five phases for the first domain: Phase 0, often about two weeks, then four build phases, often a week each. A team with access in hand can move faster; the gates are what count. Phase 0 takes longer where vendor or security review applies.

---

Published by Atlan. Maintained by Atlan AI Labs.

License

The book (text, diagrams, cards, templates, evidence and media) is licensed under CC BY 4.0: copy and adapt it with credit. The build code is under the MIT License. Product names are their owners' trademarks. See LICENSE.

GitHub Stars & Activity

135Stars
1Forks
0Open issues
HTMLLanguage

GitHub Popularity

GitHub stars135
Forks1
Open issues0
Primary languageHTML
LicenseNOASSERTION
Stars gained today0
Created2026-10-27
Last pushed2026-10-28

Trending History

Daily boardrank #56 · ▲ 0 stars

Related GitHub Projects

1

anhao / ai-pose-gallery-zh

HTML★ 2,551⑂ 668
→
2

smithjohn78390 / tongjiang-lab

HTML★ 760⑂ 206
→
3

ninetyhe-90 / de-armor

HTML★ 137⑂ 35
→
4

andyhuo520 / digital-human-koubo

TypeScript★ 1,400⑂ 323
→
5

Motionsites-AI / claude-skill

Python★ 1,021⑂ 106
→
6

kargulstudio / calender-app-design

TypeScript★ 795⑂ 96
→
7

yaojingang / GEOInflow

TypeScript★ 707⑂ 227
→
8

blakeandersonw / ai-app-playbook

TypeScript★ 571⑂ 77
→

More Trending Repositories