Generate formatted reports from Bear EHR data. Use when asked to create a report, build a dashboard, generate a summary, produce compliance documentation, or export findings about clients, billing, clinical, CCBHC, or operational data.
Generate structured, professional markdown reports from the Bear EHR database.
mcp__bear-db__execute_query, mcp__bear-db__get_table_info)/home/andres/code/claude/semantic/ (00-15 domain files)/home/andres/code/claude/semantic/reports/ for reference formatget_table_info when unsure/home/andres/code/claude/semantic/reports/<report_name>.mdEvery report must follow this structure:
# Report Title — Bear EHR
> Generated: YYYY-MM-DD
> Data source: Bear staging/production DB (MariaDB)
> Period: [time range or "all time"]
---
## Table of Contents
[numbered list of sections]
---
## 1. Executive Summary
[3-5 bullet points with the most important findings]
## 2-N. Detail Sections
[tables, charts (ASCII if needed), analysis]
## N+1. Gap Analysis & Recommendations (if applicable)
[actionable items with priority]
reports/ccbhc_report.md for reference formatFollow all rules from the bear-query skill:
CASE WHEN, CURDATE(), TIMESTAMPDIFF(), DATE_FORMAT()deleted_at IS NULL*_cents / 100.0 for dollar amountsnames table via person_id, get latest with MAX(id)people (polymorphic identifiable_type = 'User') then namespeople.type = 'Client', companies.type = 'Payor'status columnget_table_info before querying unfamiliar tables**$0** formatting for dollar amountsWhen the user wants PDF output:
md-to-pdf --launch-options '{"args":["--no-sandbox"]}' /home/andres/code/claude/semantic/reports/<filename>.md
$ARGUMENTS