--- name: dst-report-template description: | Generate HTML research reports with embedded data, charts, and analysis. Use when creating final research deliverables. Supports single comprehensive reports or multiple focused reports. Handles styling, structure, and output to reports/ directory. --- # DST Report Generator Create professional HTML reports from DST research analysis. ## Report Types 1. **Single Comprehensive Report** - All findings in one document 2. **Multiple Focused Reports** - Separate files per analysis area The dst-research-analyst agent decides which type based on scope. ## HTML Report Template ```html {{REPORT_TITLE}}

{{REPORT_TITLE}}

Executive Summary

{{EXECUTIVE_SUMMARY}}
{{CONTENT_SECTIONS}}

Data Sources

{{CHART_SCRIPTS}} ``` ## Section Templates ### Content Section ```html

{{SECTION_TITLE}}

{{SECTION_CONTENT}} {{DATA_TABLE}}

{{CHART_TITLE}}

{{CHART_HTML}}

Key Insights

{{INSIGHTS}}
``` ### Data Table ```html {{TABLE_HEADERS}} {{TABLE_ROWS}}
``` ## Usage Flow When dst-research-analyst invokes you: 1. **Receive analysis results**: - Executive summary - Section content (text analysis) - Data tables (from SQL queries) - Charts (from dst-visualization skill) - Data sources (table IDs and descriptions) 2. **Assemble report**: - Fill main template with metadata - Add executive summary - Insert content sections - Embed charts from dst-visualization - List data sources 3. **Generate filename**: - Pattern: `dst_research_[topic]_[YYYYMMDD_HHMMSS].html` - Example: `dst_research_ev_trends_20250130_143022.html` 4. **Write to disk**: - Path: `/Users/mikkelfreltoftkrogsholm/Projekter/dst_skills/reports/` - Use Write tool - Return absolute path to user ## Multiple Reports If agent decides on multiple reports: 1. Create index report listing all sub-reports 2. Generate focused reports per analysis area 3. Use consistent styling across all reports 4. Include navigation links between reports ### Index Report Template ```html

Research Components

This research is divided into the following focused reports:

``` ## Best Practices - Use descriptive section titles - Include both data tables and visualizations - Highlight key insights in insight boxes - Cite all DST tables used - Add timestamps for data freshness - Use consistent terminology - Make reports print-friendly - Include executive summary for quick overview ## Error Handling If reports/ directory doesn't exist: ```python import os os.makedirs('/Users/mikkelfreltoftkrogsholm/Projekter/dst_skills/reports', exist_ok=True) ``` Remember: You create the HTML structure, dst-visualization provides the chart HTML, agent provides the analysis text.