You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement the report generation skill at packages/skills/reports/ (currently an empty placeholder: export {}). This skill enables agents to produce formatted deliverables -- PDF reports, PPTX presentations, charts, and data exports.
Two approaches are supported simultaneously:
A) Template-based reports
Agent produces structured JSON matching a predefined template schema. The skill renders it into the requested format.
Implement report_list_templates tool: returns available templates with their JSON schemas
Implement report_generate tool: accepts template name + format + structured data, produces output file
Rendering stack:
PDF: React-PDF (@react-pdf/renderer)
PPTX:pptxgenjs
Charts:chart.js with chartjs-node-canvas (server-side PNG/SVG rendering)
Built-in template: MonthlyReportData with title, period, summary metrics, charts (bar/line/pie), and tables
Template schema validation before rendering (fail fast with clear error messages)
B) Agent-generated code reports
Agent writes Python or JavaScript code that runs inside the sandbox to produce visualizations and reports.
Create /workspace/output/ directory with sandbox user write permissions
skills/reports
orchestrator
sandbox
Motivation
Agents need to produce deliverables beyond text -- PDF reports, presentations, charts, data exports. This is essential for enterprise use cases: monthly performance reports, data analysis summaries, executive presentations, financial exports. The report skill makes agents productive for knowledge work that requires formatted, shareable output.
Affected package(s)
skills/reports, orchestrator, sandbox
Alternatives considered
Code-only approach (no templates) -- less consistent output quality; templates guarantee a professional baseline.
Third-party report generation service -- adds external dependency, latency, and cost; in-sandbox generation is self-contained.
Markdown-only output -- insufficient for enterprise needs; stakeholders expect PDF/PPTX.
Description
Implement the report generation skill at
packages/skills/reports/(currently an empty placeholder:export {}). This skill enables agents to produce formatted deliverables -- PDF reports, PPTX presentations, charts, and data exports.Two approaches are supported simultaneously:
A) Template-based reports
Agent produces structured JSON matching a predefined template schema. The skill renders it into the requested format.
report_list_templatestool: returns available templates with their JSON schemasreport_generatetool: accepts template name + format + structured data, produces output file@react-pdf/renderer)pptxgenjschart.jswithchartjs-node-canvas(server-side PNG/SVG rendering)MonthlyReportDatawith title, period, summary metrics, charts (bar/line/pie), and tablesB) Agent-generated code reports
Agent writes Python or JavaScript code that runs inside the sandbox to produce visualizations and reports.
report_execute_codetool: accepts language, code, optional dependenciespip install/npm install) if specified/workspace/output/*.{png,svg,pdf,pptx,csv,xlsx}for output filesmatplotlib,pandas,numpy,seabornchart.js+chartjs-node-canvas,d3Output format matrix
File delivery
/workspace/output/in sandboxfiles.uploadSandbox Dockerfile updates
Install Python report dependencies:
matplotlib,pandas,numpy,seaborn,reportlab,python-pptx,openpyxlInstall Node report dependencies:
@react-pdf/renderer,pptxgenjs,chart.js,chartjs-node-canvas,exceljs,d3Create
/workspace/output/directory with sandbox user write permissionsskills/reportsorchestratorsandboxMotivation
Agents need to produce deliverables beyond text -- PDF reports, presentations, charts, data exports. This is essential for enterprise use cases: monthly performance reports, data analysis summaries, executive presentations, financial exports. The report skill makes agents productive for knowledge work that requires formatted, shareable output.
Affected package(s)
skills/reports, orchestrator, sandbox
Alternatives considered