AI Agent Hub
Back to skills
SQL Report Generator icon

SQL Report Generator

Data Analysis Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md and install @user_64e5b706/sql-report-generator.

About this skill

Problem

SQL query results and single charts often sit in scripts, notebooks, terminals, and temporary docs. When a result needs to be shared with stakeholders, the analyst still has to assemble KPI notes, detail tables, filters, anomaly checks, and operational recommendations. Manually stitching HTML or Markdown can miss metric definitions and make reports hard to reproduce.

How It Works

SQL Report Generator is aimed at scenarios where SQL results or sql-dataviz charts already exist. It organizes data into reports using components such as Table, Matrix, Slicer, Button Navigator, text boxes, paginated reports, and ReportBuilder. A typical workflow is to prepare a DataFrame or query result, choose table, matrix, or slicer components, then use the report builder to assemble pages and export HTML, JSON, or PDF. It also includes a statistics-only ai_insights.py module that generates structured insights from data using methods such as Z-score, IQR, linear regression, Pearson correlation, Pareto analysis, distribution checks, and seasonality detection, with Markdown, HTML, or JSON output.

Boundaries

With dependencies installed, the full component set and export options are available; without dependencies, it can only provide structure suggestions, template recommendations, and presentation guidance. For real data, insights must come from statistical analysis rather than hand-written conclusions. Before delivering HTML or PDF, check chart rendering, Chinese text rendering, KPI/table consistency, interaction states, and placeholder leakage.

Use Cases

  • Turn SQL query results and KPIs into a printable HTML business review report.
  • Add tables, slicers, and filter notes to existing charts for a channel analysis deliverable.
  • Run statistical checks across metric groups and output structured anomaly, trend, and TOP N insights.
  • Organize financial ratios, cash flow, and income statement data into an exportable fixed-format report.

Best For

  • Data analysis engineers who need to turn SQL query results into business reviews or operational weekly reports.
  • BI analysts who need to combine dashboards, detail tables, and multidimensional slicers into HTML reports.
  • Business analysts who need statistical checks on metrics and structured anomaly, trend, and TOP N recommendations.
  • Data product engineers who need to consolidate finance, HR, or project status data into template-driven reports.