A股逻辑可视化工具

使用这一技能将财务或投资逻辑转化为可视化图表,比如供应链图、因果图谱、风险收益分析图,以及兼容 Draw.io 界面的 mxGraph XML/HTML 格式图表。当用户要求可视化、绘制、绘制图表或解释复杂的财务逻辑时,即可触发此功能。除非要求的输出结果就是图表形式,否则不要将其用于查找原始数据、搜索新闻、筛选股票或跟踪信号。

Install

openclaw skills install @zoeluli7459-dev/alphaear-logic-visualizer

AlphaEar Logic Visualizer

Create Draw.io-compatible finance logic diagrams from structured or semi-structured investment reasoning.

Inputs

  • Required: title or topic plus the logic chain to visualize.
  • Preferred node shape: each node has name, type or impact, logic, and optional evidence.
  • Ask a follow-up if the causal direction or main deliverable is unclear.

Workflow

  1. Extract nodes, causal edges, and impact polarity from the user's thesis.
  2. Classify nodes as positive, negative, or neutral.
  3. Use references/PROMPTS.md or scripts/visualizer_prompt.py to generate plain mxGraph XML.
  4. Validate that the XML starts with <mxGraphModel> and ends with </mxGraphModel>.
  5. Render to HTML with VisualizerTools.render_drawio_to_html(xml_content, filename) from scripts/visualizer.py when the user needs a file artifact.
  6. Return the rendered HTML path and a concise explanation of the diagram structure.

Output Contract

  • Deliver Draw.io XML or an HTML file that embeds the diagram.
  • Use left-to-right layout for transmission chains and top-to-bottom layout for hierarchies.
  • Use green for positive, red for negative, and grey for neutral impacts.
  • Avoid overlapping nodes and make edge labels short.

Failure Handling

  • If the thesis lacks enough structure, first produce a node/edge outline and ask for confirmation.
  • If rendering fails, still return validated XML and explain how to open it in Draw.io.
  • Do not invent unsupported financial relationships; mark uncertain links as assumptions.

Validation

  • Run or review tests/test_visualizer.py after changing scripts.
  • Use evals/evals.json for routing and output-contract checks.