Repository layout
Ask reads approved queries and guidance from a bitboard/ directory at the root of your connected GitHub repository.
You do not need to create this directory before connecting the repository. If it does not exist, the first pull request that adds a verified query or guidance file creates only the required path and files:
- a query creates
bitboard/queries/<name>.yamlandbitboard/queries/<name>.sql; or - guidance creates
bitboard/guidance/<name>.md.
Git does not store empty directories, so BitBoard does not add unused folders.
bitboard/ queries/ revenue/ monthly_revenue.yaml monthly_revenue.sql guidance/ fiscal-calendar.mdNested folders are optional and appear in Ask’s Workspace browser.
Query files
Section titled “Query files”Every query has two files with the same name in the same folder:
<name>.yamlcontains metadata and parameters.<name>.sqlcontains one read-only query.
For example, monthly_revenue.yaml:
id: monthly_revenuename: Monthly revenuedescription: Recognized revenue through the selected date.params: - name: as_of type: date description: Include revenue through this date. example: "2026-07-31"version: 1verified_by: Priya Ramanverified_at: 2026-08-01And monthly_revenue.sql:
SELECT DATE_TRUNC('month', recognized_at) AS month, SUM(amount) AS revenueFROM revenueWHERE recognized_at <= $as_ofGROUP BY 1ORDER BY 1Query rules
Section titled “Query rules”idandnameare required.- Every query ID must be unique across the repository.
params, when present, is a list of named parameters.- Every
$placeholderin the SQL must match a declared parameter. - Every declared parameter must be used by the SQL.
- SQL must contain one read-only statement beginning with
SELECTorWITH. - The SQL file must be valid UTF-8 text.
Guidance files
Section titled “Guidance files”Guidance files are non-empty UTF-8 Markdown under bitboard/guidance/.
# Fiscal calendar
Weeks begin on Monday. Fiscal months close at 23:59 UTC on the final day.Use recognized revenue unless a question explicitly asks for bookings.Use guidance for definitions, caveats, naming conventions, and business rules. Do not put credentials or secrets in guidance.
Verification and sync
Section titled “Verification and sync”When a bitboard/ directory exists, BitBoard verifies it before making its content available to Ask. Verification checks the layout, query pairs, metadata, read-only SQL, parameter matching, and non-empty guidance.
Repository content is authoritative:
- adding or changing a valid file updates Ask on the next sync;
- removing a file revokes it from active use while preserving its history; and
- re-adding the file restores it on a later sync.
Changes proposed from BitBoard open as pull requests. After your team merges a pull request, sync the repository to make the approved content available.