Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guide to Metabase for open-source research data analytics and dashboards
.claude/skills/brycewang-stanford-metabase-analytics-guide/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-09 | ✗→✓ | ▲ Improved | 164% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 91% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 118% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 91% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 104% | 0% |
Metabase is a powerful open-source business intelligence and analytics tool with over 46K stars on GitHub. It allows researchers and data analysts to explore data, create visualizations, and build dashboards without writing SQL, though it fully supports custom SQL queries for advanced users. Metabase connects to a wide variety of databases and provides a browser-based interface that makes data exploration accessible to team members regardless of their technical background.
For academic research groups and labs, Metabase serves as an excellent self-hosted platform for tracking experimental data, monitoring research progress, and creating shared dashboards for collaborative projects. Its ability to connect directly to PostgreSQL, MySQL, SQLite, and many other databases means it can be pointed at existing research data stores without data migration. Researchers can set up automated reports, scheduled email digests, and shared dashboards that keep the entire team informed.
Metabase's no-code query builder is particularly valuable in interdisciplinary research teams where not all members are comfortable with SQL. Principal investigators, graduate students, and collaborators can all explore the same datasets through an intuitive visual interface while power users retain full SQL access for complex analyses.
bash# Quick start with Docker docker run -d -p 3000:3000 \ --name metabase \ -v metabase-data:/metabase-data \ -e MB_DB_TYPE=postgres \ -e MB_DB_DBNAME=metabase_app \ -e MB_DB_PORT=5432 \ -e MB_DB_USER=$METABASE_DB_USER \ -e MB_DB_PASS=$METABASE_DB_PASS \ -e MB_DB_HOST=db-host \ metabase/metabase # Access at http://localhost:3000
yamlversion: "3.9" services: metabase: image: metabase/metabase:latest container_name: research-metabase ports: - "3000:3000" environment: MB_DB_TYPE: postgres MB_DB_DBNAME: metabase_app MB_DB_PORT: 5432 MB_DB_USER: ${METABASE_DB_USER} MB_DB_PASS: ${METABASE_DB_PASS} MB_DB_HOST: postgres MB_SITE_NAME: "Research Lab Analytics" depends_on: - postgres volumes: - metabase-data:/metabase-data postgres: image: postgres:16 environment: POSTGRES_DB: metabase_app POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} volumes: - pg-data:/var/lib/postgresql/data volumes: metabase-data: pg-data:
Metabase supports connecting to many database types commonly used in research environments.
Navigate to Admin > Databases > Add Database in the Metabase UI. For a typical research PostgreSQL database:
Display name: Lab Experiment Database
Host: research-db.lab.university.edu
Port: 5432
Database name: experiments
Username: (use environment variable $DB_USER)
Password: (use environment variable $DB_PASS)Enable "Auto-run queries" and set "Scan frequency" to daily for research databases that update regularly.
A common research use case is tracking experiment progress and results. Here is an example SQL query for monitoring experiment completion rates:
sql-- Experiment completion overview SELECT e.project_name, COUNT(*) AS total_experiments, COUNT(CASE WHEN e.status = 'completed' THEN 1 END) AS completed, COUNT(CASE WHEN e.status = 'in_progress' THEN 1 END) AS in_progress, COUNT(CASE WHEN e.status = 'failed' THEN 1 END) AS failed, ROUND( COUNT(CASE WHEN e.status = 'completed' THEN 1 END)::NUMERIC / NULLIF(COUNT(*), 0) * 100, 1 ) AS completion_rate FROM experiments e WHERE e.created_at >= CURRENT_DATE - INTERVAL '90 days' GROUP BY e.project_name ORDER BY completion_rate DESC;
sql-- Sample processing metrics SELECT DATE_TRUNC('week', s.processed_at) AS week, s.sample_type, COUNT(*) AS samples_processed, AVG(s.quality_score) AS avg_quality, PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY s.processing_time) AS median_processing_hours FROM samples s WHERE s.processed_at >= CURRENT_DATE - INTERVAL '6 months' GROUP BY DATE_TRUNC('week', s.processed_at), s.sample_type ORDER BY week DESC, sample_type;
sql-- Track manuscript progress across the lab SELECT p.title, p.lead_author, p.status, p.target_journal, p.submission_date, CASE WHEN p.status = 'draft' THEN 1 WHEN p.status = 'internal_review' THEN 2 WHEN p.status = 'submitted' THEN 3 WHEN p.status = 'revision' THEN 4 WHEN p.status = 'accepted' THEN 5 WHEN p.status = 'published' THEN 6 END AS stage_number, CURRENT_DATE - p.last_updated AS days_since_update FROM publications p WHERE p.year >= EXTRACT(YEAR FROM CURRENT_DATE) - 1 ORDER BY stage_number, p.last_updated;
Metabase supports scheduled reports and conditional alerts, which are useful for research operations.
Question: "Failed experiments in last 7 days"
Alert when: Results are above threshold (e.g., > 5 failures)
Check frequency: Daily
Notify: Lab manager email, Slack channelThis allows labs to automatically detect quality issues in experimental workflows.
Metabase supports embedding dashboards into other web applications via iframes or its embedding SDK.
html<!-- Embed a dashboard in a lab portal --> <iframe src="http://metabase.lab.internal/public/dashboard/abc123-def456" frameborder="0" width="100%" height="800" allowtransparency ></iframe>
For authenticated embedding, use signed JWTs to control access:
pythonimport jwt import time embedding_secret = os.environ["METABASE_EMBEDDING_SECRET"] payload = { "resource": {"dashboard": 42}, "params": {"project_id": 7}, "exp": int(time.time()) + 600 # 10-minute expiry } signed = jwt.encode(payload, embedding_secret, algorithm="HS256") embed_url = f"http://metabase.lab.internal/embed/dashboard/{signed}"
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-09 | fail→pass | 5,705 | 4,000 | -30% | 1 | 1 | 0% | 1,056 | 2,788 | +164% | 0 | 0 | — |
case-01 | fail→fail | 11,834 | 19,367 | +64% | 1 | 1 | 0% | 2,364 | 3,492 | +48% | 0 | 0 | — |
case-02 | fail→fail | 12,901 | 10,217 | -21% | 1 | 1 | 0% | 2,470 | 4,078 | +65% | 0 | 0 | — |
case-03 | fail→pass | 8,597 | 5,476 | -36% | 1 | 1 | 0% | 1,677 | 3,195 | +91% | 0 | 0 | — |
case-10 | fail→fail | 10,453 | 12,604 | +21% | 1 | 1 | 0% | 1,717 | 4,195 | +144% | 0 | 0 | — |
case-04 | fail→pass | 7,616 | 6,574 | -14% | 1 | 1 | 0% | 1,576 | 3,431 | +118% | 0 | 0 | — |
case-05 | fail→fail | 13,938 | 11,916 | -15% | 1 | 1 | 0% | 2,382 | 4,119 | +73% | 0 | 0 | — |
case-06 | fail→pass | 10,675 | 10,458 | -2% | 1 | 1 | 0% | 2,150 | 4,100 | +91% | 0 | 0 | — |
case-07 | fail→fail | 12,349 | 16,370 | +33% | 1 | 1 | 0% | 2,340 | 4,765 | +104% | 0 | 0 | — |
case-08 | pass→pass | 12,570 | 15,211 | +21% | 1 | 1 | 0% | 2,292 | 4,959 | +116% | 0 | 0 | — |
case-11 | pass→pass | 10,906 | 14,408 | +32% | 1 | 1 | 0% | 1,946 | 4,492 | +131% | 0 | 0 | — |
case-12 | pass→pass | 16,247 | 16,400 | +1% | 1 | 1 | 0% | 2,422 | 4,726 | +95% | 0 | 0 | — |
case-13 | pass→pass | 16,593 | 21,207 | +28% | 1 | 1 | 0% | 2,813 | 5,984 | +113% | 0 | 0 | — |
case-14 | fail→pass | 16,423 | 18,316 | +12% | 1 | 1 | 0% | 2,405 | 4,916 | +104% | 0 | 0 | — |
case-15 | pass→pass | 9,866 | 8,860 | -10% | 1 | 1 | 0% | 1,719 | 3,596 | +109% | 0 | 0 | — |
case-16 | pass→pass | 12,895 | 13,930 | +8% | 1 | 1 | 0% | 1,969 | 4,093 | +108% | 0 | 0 | — |
case-17 | pass→pass | 2,910 | 2,195 | -25% | 1 | 1 | 0% | 417 | 2,342 | +462% | 0 | 0 | — |
case-18 | fail→pass | 10,535 | 2,754 | -74% | 1 | 1 | 0% | 1,844 | 2,506 | +36% | 0 | 0 | — |
case-19 | pass→pass | 15,555 | 18,738 | +20% | 1 | 1 | 0% | 2,224 | 4,811 | +116% | 0 | 0 | — |
case-20 | fail→pass | 8,292 | 7,524 | -9% | 1 | 1 | 0% | 1,276 | 3,340 | +162% | 0 | 0 | — |
case-21 | fail→pass | 7,446 | 2,352 | -68% | 1 | 1 | 0% | 1,275 | 2,463 | +93% | 0 | 0 | — |
case-22 | fail→pass | 8,431 | 1,947 | -77% | 1 | 1 | 0% | 1,257 | 2,295 | +83% | 0 | 0 | — |
case-23 | pass→pass | 9,974 | 10,774 | +8% | 1 | 1 | 0% | 1,652 | 4,054 | +145% | 0 | 0 | — |
case-24 | pass→pass | 15,452 | 14,311 | -7% | 1 | 1 | 0% | 2,694 | 4,600 | +71% | 0 | 0 | — |
case-25 | fail→fail | 11,445 | 8,183 | -29% | 1 | 1 | 0% | 1,701 | 3,575 | +110% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 25 cases were attempted. The headline lift of +36 percentage points is the difference between those two pass rates over the 25 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.