Financial report analyzer

From ahang1598/doubao-workbuddy-qwenwork-skills · View interactive version

Financial report analyzer is an AI agent skill from the GitHub repository ahang1598/doubao-workbuddy-qwenwork-skills. 专门用于上市公司财报(如年度报告、季度报告)的深度分析。该技能能够自动提取关键财务指标,计算核心财务比率,生成可视化图表,并结合行业背景生成专业的财务分析报告。

How to use this skill

Skill file

财报分析技能 (Financial Report Analyzer)

本技能旨在帮助 DB-GPT 系统化地分析上市公司财报,通过提取核心数据、计算财务比率、生成可视化图表并结合业务背景,产出高质量的财务分析报告。

核心工作流程

  1. 数据提取与结构化:
  1. 财务比率计算:
  1. 图表生成:
  1. 深度分析:
  1. 渲染报告:

```json

{

"template_path": "financial-report-analyzer/templates/report_template.html",

"data": {

"PROFITABILITY_ANALYSIS": "LLM撰写的盈利能力分析...",

"SOLVENCY_ANALYSIS": "LLM撰写的偿债分析...",

"EFFICIENCY_ANALYSIS": "LLM撰写的营运效率分析...",

"CASHFLOW_ANALYSIS": "LLM撰写的现金流分析...",

"ADVANTAGES_LIST": "<li>优势1</li><li>优势2</li>",

"RISKS_LIST": "<li>风险1</li><li>风险2</li>",

"OVERALL_ASSESSMENT": "LLM撰写的综合评价..."

},

"title": "XX公司 2023年度财报分析报告"

}

```

  1. 完成:

完整流程示例

Step 1: execute_skill_script_file(skill_name="financial-report-analyzer", script_file_name="extract_financials.py", args={"file_path": "/path/to/report.pdf"})
  → 返回 JSON: {"revenue": 10500000000, "net_profit": 1200000000, ...}  (记为 raw_data)

Step 2: execute_skill_script_file(skill_name="financial-report-analyzer", script_file_name="calculate_ratios.py", args=<raw_data>)
  → 返回 30 个模板键值,系统自动记录到 react_state["ratio_data"]

Step 3: execute_skill_script_file(skill_name="financial-report-analyzer", script_file_name="generate_charts.py", args=<raw_data>)
  → 生成图表,系统自动复制到 /images/ 并记录 URL 映射

Step 4: (LLM 自行撰写 7 段深度分析文本)

Step 5: html_interpreter(template_path="financial-report-analyzer/templates/report_template.html", data={仅包含 7 段分析文本}, title="报告标题")
  → 后端自动合并数据指标 + 图表 URL + 分析文本,渲染完整报告

Step 6: terminate(result="简短摘要")

资源使用说明

注意事项

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.