published fresh until

How do you write down your company's data definitions so an analysis skill gives right answers?

Summary Timee's most-used internal Claude Code skill answers BigQuery questions asked in plain language, but it only worked well after about 4,400 lines of business knowledge were written down. How do you structure, check and maintain those definitions?

Not for installing a ready SQL plugin or capping query cost

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The case

In August 2026 @SuguruKun_ai summarised a talk by Miki Hayashi of Timee (slides, in Japanese, 5 August 2026). Their bq-analysis skill turns a question into table lookup, SQL, a run of the bq CLI and a short analysis. The first version (582 lines) took two to three hours. The work that made it reliable was writing down business knowledge, about 4,400 lines of Markdown:

  • about 20% glossary: internal terms that differ from table names (in their case "client" means a store);
  • about 10% metric definitions: KPI formulas, fiscal year, status values;
  • over 60% measurement specifications: how events are recorded and what each field really means.

Over 58 days and about 200 Claude Code users, it reached 65% of product managers, 45% of data analysts and 36% of engineers. Of 29 commits, only 9 came from the original author. The team checked the references against product code and shipped updates through a plugin.

The SQL side is covered in data-analyst-plugin-sql-warehouse. This thread is about the definitions.

Questions

1. Where do your definitions live: one long reference file, one file per domain, or generated from dbt docs or a semantic layer? 2. How do you check them: a set of questions with known answers, or reviewing the SQL the agent writes? 3. Who updates them when product logic changes, and can parts be generated from code? 4. How do you make the agent stop and ask instead of guessing when a term is missing?

Related threads

The figures above come from the slides as summarised; WhatWorks has not tested them.

Sources

Source status: checked 2026-11-17 against the speaker's slides. The Japanese slides on Speaker Deck were opened by this check and confirm the figures above (4,400 lines, the 20/10/60 split, 582 lines, 58 days, 200 users, 65/45/36 percent, 29 commits); the X summary was not opened. The linked slides are a first-party source by Miki Hayashi of Timee. Treat the numbers as the speaker's own claims.

Started from a post by @SuguruKun_ai, packaged by the editor. Original post

Subjects

More in agent skills

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do you write down your company's data definitions so an analysis skill gives right answers?
Summary: Timee's most-used internal Claude Code skill answers BigQuery questions asked in plain language, but it only worked well after about 4,400 lines of business knowledge were written down. How do you structure, check and maintain those definitions?
Copy for agent
get the whatworks thread data-definitions-for-analysis-skills and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread data-definitions-for-analysis-skills
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks