alphaear-logic-visualizer
npx machina-cli add skill RKiding/Awesome-finance-skills/alphaear-logic-visualizer --openclawAlphaEar Logic Visualizer Skill
Overview
This skill specializes in creating visual representations of logic flows, specifically generating Draw.io XML compatible diagrams. It is useful for visualizing investment theses or signal transmission chains.
Capabilities
1. Generate Draw.io Diagrams
1. Generate Draw.io Diagrams (Agentic Workflow)
YOU (the Agent) are the Visualizer. Use the prompts in references/PROMPTS.md to generate the XML.
Workflow:
- Generate XML: Use the Draw.io XML Generation Prompt from
references/PROMPTS.mdto convert your logical chain into XML. - Save/Render: Use
scripts/visualizer.pymethodrender_drawio_to_html(xml_content, filename)to save the XML into a viewable HTML file for the user.
Example Usage (Conceptual):
- Agent Action: "I will now generate a Draw.io XML for the transmission chain..."
- Tool Call:
visualizer.render_drawio_to_html(xml_content="<mxGraphModel>...", filename="chain_visual.html")
Dependencies
- None (Standard Library for string manipulation).
Source
git clone https://github.com/RKiding/Awesome-finance-skills/blob/main/skills/alphaear-logic-visualizer/SKILL.mdView on GitHub Overview
AlphaEar Logic Visualizer creates Draw.io XML diagrams to represent finance logic flows. It helps visualize investment theses and signal transmission chains, turning complex reasoning into shareable visuals.
How This Skill Works
The agent acts as the Visualizer, using prompts from references/PROMPTS.md to generate Draw.io XML that encodes the logic chain. After XML generation, it renders and saves an HTML view using scripts/visualizer.py method render_drawio_to_html(xml_content, filename), enabling easy sharing.
When to Use It
- Explaining a multi-step investment thesis with clear causal arrows.
- Visualizing how signals propagate from macro indicators to a trade trigger.
- Documenting complex payoff or cash-flow logic in structured finance instruments.
- Collaborating with teammates who benefit from a diagram of finance logic flows.
- Presenting finance logic to stakeholders who prefer visuals over descriptive text.
Quick Start
- Step 1: Use the Draw.io XML Generation Prompt from references/PROMPTS.md to convert your finance logic into Draw.io XML.
- Step 2: Render the XML to HTML with visualizer.render_drawio_to_html(xml_content, filename="chart_visual.html").
- Step 3: Open and share the resulting HTML file with stakeholders.
Best Practices
- Begin with a high-level overview before detailing nodes and edges.
- Use consistent node labels and color-coding to reflect roles (inputs, decisions, outcomes).
- Validate the generated XML with a Draw.io viewer to catch syntax issues.
- Leverage the Draw.io XML Generation Prompt from references/PROMPTS.md for consistency.
- After rendering, name the HTML file descriptively and store alongside the XML for sharing.
Example Use Cases
- Multi-hop investment thesis diagram showing source signals, filters, and trade triggers.
- Signal transmission chain from economic indicator to investment decision.
- Cash-flow waterfall and payoff logic for a structured finance instrument.
- Risk/controls flow diagram in a portfolio model (checks and approvals).
- Financing structure diagram for an M&A deal or project finance.