agentleFS
stablebaselinestablebaseline/claude-code/skills/sb-dashboard/SKILL.md

sb-dashboard

Skill1 starsChanged 40 days agoApache-2.0View on GitHub

Build and refine live dashboards on a Stable Baseline database table: suggested visuals, pages of cards, charts and tables, a picture of each page to check, and a PDF download. Use when user wants a dashboard, KPIs or charts over database rows, or run sb-dashboard.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If you don't know IDs yet: read .sb/config.json (cache.databases), or find the database with listDatabases and read its tables with …

    line 10
  2. Very specific:

    Read the table: getDatabase with databaseId and table.

    line 13
  3. Very specific:

    Look at every page you changed: getDashboardImage with databaseId, dashboard and page.

    line 18
  4. Very specific:

    Every save's answer says how to undo it: saveDatabaseDashboard with restore (the version id from that answer) and dashboard puts it back.

    line 23
  5. Very specific:

    Look before you report: call getDashboardImage after every save, for each page you changed.

    line 29
  6. Distinctive:

    Never invent numbers or labels.

    line 30
  7. Very specific:

    Ask before deleting a dashboard (deleteDatabase with dashboard.

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Stable Baseline: Dashboards

Build dashboards over Stable Baseline database tables using MCP tools. A dashboard is live: its numbers update as the rows change. For a chart inside a document, use the sb-create-diagram skill instead.

If you don't know IDs yet: read .sb/config.json (cache.databases), or find the database with listDatabases and read its tables with getDatabase.

Steps:

  1. Read the table: getDatabase with databaseId and table. Note the field names and types. getDatabase also lists the database's dashboards: change an existing one rather than making a near-copy.
  2. Get suggestions: getDatabase with table and profile: true (and suggest, up to 12) returns facts about each field and ready visuals, each with a candidate ref.
  3. Plan the pages with the user: the questions each page answers, and the visuals for them. A good page leads with cards and KPIs, then trends and breakdowns, then a table for the detail. Keep each page to one purpose.
  4. For a visual the suggestions do not cover: listDashboardVisualTypes (optionally one group), then getDashboardVisualGuide with the type for its wells, its settings and a worked example. Copy the example's spec and change it.
  5. Save: saveDatabaseDashboard with databaseId, name and pages. Each page has a name and visuals; each visual is a candidate ref used as it is, or a spec, with an optional title and size (small, medium, large or full). layout: "tidy" lays a page out again in the order its visuals are listed. On a big change, call with check: true first: it checks everything and saves nothing. A dashboard only the user sees takes personal: true.
  6. Look at every page you changed: getDashboardImage with databaseId, dashboard and page. Check the numbers are plausible, no visual is empty, titles fit, and the page reads in order. The answer names any visual with nothing to show.
  7. Adjust and look again: saveDatabaseDashboard with dashboard and the version you read. A visual with an id is changed, or taken out with remove; one without an id is added. Repeat until the page looks right.
  8. Report the dashboard's name and its link. If the user wants a file, getDashboardImage with format: "pdf" (and pages: "all" for every page) answers a download link.

Undo and reading:

  • Every save's answer says how to undo it: saveDatabaseDashboard with restore (the version id from that answer) and dashboard puts it back.
  • To read an existing dashboard first: getDatabase with dashboard, and visual for one visual's numbers.

Limits: a dashboard holds at most 20 pages (fewer on smaller plans) and 30 visuals (8 on Free), 24 on one page. One call takes 20 pages, so build a bigger dashboard over several calls.

Hard rules:

  • Look before you report: call getDashboardImage after every save, for each page you changed.
  • Never invent numbers or labels. Visuals work their numbers out from the rows; titles say what is shown.
  • A shared dashboard is seen by everyone who can open the database. Use personal: true when the user wants one just for themselves.
  • Ask before deleting a dashboard (deleteDatabase with dashboard; it waits in the trash for 30 days) or replacing a page someone built by hand.

Reference:

  • getDatabaseGuide with topic dashboards, listDashboardVisualTypes, getDashboardVisualGuide
  • Tables, fields and rows: the sb-database skill.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.