Loading...
Loading...
Specialized for in-depth analysis of listed companies' financial reports (such as annual reports, quarterly reports). This skill can automatically extract key financial indicators, calculate core financial ratios, generate visual charts, and produce professional financial analysis reports combined with industry background.
npx skill4agent add eosphoros-ai/db-gpt financial-report-analyzerexecute_skill_script_filescripts/extract_financials.pyfile_pathexecute_skill_script_filescripts/calculate_ratios.pyreferences/financial_metrics.mdreact_state["ratio_data"]execute_skill_script_filescripts/generate_charts.pyfinancial_overview.pngprofitability.pngasset_structure.pngreact_state["image_url_map"]references/analysis_framework.mdPROFITABILITY_ANALYSISSOLVENCY_ANALYSISEFFICIENCY_ANALYSISCASHFLOW_ANALYSISADVANTAGES_LIST<li>RISKS_LIST<li>OVERALL_ASSESSMENThtml_interpretertemplate_path{
"template_path": "financial-report-analyzer/templates/report_template.html",
"data": {
"PROFITABILITY_ANALYSIS": "Profitability analysis written by LLM...",
"SOLVENCY_ANALYSIS": "Solvency analysis written by LLM...",
"EFFICIENCY_ANALYSIS": "Operational efficiency analysis written by LLM...",
"CASHFLOW_ANALYSIS": "Cash flow analysis written by LLM...",
"ADVANTAGES_LIST": "<li>Advantage 1</li><li>Advantage 2</li>",
"RISKS_LIST": "<li>Risk 1</li><li>Risk 2</li>",
"OVERALL_ASSESSMENT": "Comprehensive assessment written by LLM..."
},
"title": "XX Company 2023 Annual Financial Report Analysis"
}datadataterminateStep 1: execute_skill_script_file(skill_name="financial-report-analyzer", script_file_name="extract_financials.py", args={"file_path": "/path/to/report.pdf"})
→ Returns JSON: {"revenue": 10500000000, "net_profit": 1200000000, ...} (recorded as raw_data)
Step 2: execute_skill_script_file(skill_name="financial-report-analyzer", script_file_name="calculate_ratios.py", args=<raw_data>)
→ Returns 30 template key-value pairs, which are automatically recorded to react_state["ratio_data"] by the system
Step 3: execute_skill_script_file(skill_name="financial-report-analyzer", script_file_name="generate_charts.py", args=<raw_data>)
→ Generates charts, the system automatically copies them to /images/ and records the URL mapping
Step 4: (LLM writes 7 sections of in-depth analysis text on its own)
Step 5: html_interpreter(template_path="financial-report-analyzer/templates/report_template.html", data={contains only 7 sections of analysis text}, title="Report Title")
→ Backend automatically merges data indicators + chart URLs + analysis text to render the complete report
Step 6: terminate(result="Short summary")execute_skill_script_filescripts/extract_financials.pyfile_pathscripts/calculate_ratios.pyscripts/generate_charts.pyscripts/fill_template.pyratio_datachart_pathsanalysisreferences/financial_metrics.mdreferences/analysis_framework.mdtemplates/report_template.htmltemplates/report_template.mdexecute_skill_script_fileexecute_skill_script_filegenerate_charts.py