Install
openclaw skills install mindchartCreate exquisite infographics from user-uploaded files or given text. Used when user requests to create an infographic.
openclaw skills install mindchartInfographics transform data, information, and knowledge into perceptible visual language. They combine visual design with data visualization, using intuitive symbols to compress complex information, helping audiences quickly understand and remember key points.
Before starting the task, you need to understand the AntV Infographic syntax specification, including template list, data structure, theme, etc.
Strictly follow the generation workflow without any deviation
AntV Infographic syntax is a custom DSL for describing infographic rendering configuration. It uses indentation to express structure, suitable for AI to directly generate and stream output. Core information includes:
title, desc, and main data fields.palette, fonts, stylization, etc.infographic <template-name>.infographic prefix.data / theme blocks, with uniform two-space indentation within blocks.key space value; object arrays use - as item prefix.icon uses icon keywords, e.g., star fill, mingcute/server-line.value should preferably use pure numeric values; numeric units should preferably be expressed in label or desc.palette recommends using inline simple array syntax, e.g., palette #4f46e5 #06b6d4 #10b981.palette are bare values, no quotes, no commas.data should contain only one main data field matching the template, avoid mixing lists, sequences, compares, values, root, nodes simultaneously.Main data field selection rules:
list-* → listssequence-* → sequences, optional order asc|descsequence-interaction-* → sequences + relations
sequences represents swimlane listlabelchildren of each swimlane represents node listchildren must be written as an object entry and contain labelid, icon, step, desc, valuestep is used to indicate time hierarchy; same step is at the same heightcompare-* → compares
compare-binary-* / compare-hierarchy-left-right-*
compares must have exactly two root nodes, representing the two parties being comparedchildrenchildrenchildren must be written as an object entry and contain labelchildrencompare-swot
compares can directly contain multiple root nodeschildrencompare-quadrant-*
compares directly contains 4 quadrant root nodeshierarchy-structure → itemshierarchy-* → single root, recursively nested through childrenrelation-* → nodes + relations
chart-* → values
chart-line-plain-text / chart-bar-plain-text / chart-column-simple all use single ordered valueslabel for category, uses value for numeric valuevaluesitems as fallbackTheme rules:
theme is used for custom themes, e.g., palette, base, stylizetheme.base.text.font-family to specify font, e.g., 851tegakizatsutheme.stylize to select built-in styles and pass parameters
rough: hand-drawn effectpattern: pattern filllinear-gradient / radial-gradient: gradient stylesequence-*sequence-interaction-*list-row-* / list-column-* / list-grid-*compare-binary-*
children for each party respectivelycompare-swotcompare-quadrant-*hierarchy-tree-*chart-line-plain-textchart-bar-plain-text / chart-column-simplerelation-*chart-wordcloudhierarchy-mindmap-*Only output one plain code block, without any explanatory text:
infographic list-row-horizontal-icon-arrow
data
title Title
desc Description
lists
- label Item
value 12.5
desc Description
icon document text
theme
palette #3b82f6 #8b5cf6 #f97316
Deeply think and understand user requirements, select one appropriate template according to the Template Selection Guidelines above.
Template directory: mindchart/templates/
Generate infographic syntax file according to template syntax and the Specifications above.
{title}.mddesc field is less than 17 tokensBefore outputting, check the following:
infographic <template-name>?palette using bare color values without quotes and commas?sequence-interaction-* all written as children -> - label ...?compare-binary-* / compare-hierarchy-left-right-* have only two root nodes, with content on both sides placed under their respective children?children explicitly contain label?chart-line-plain-text use single ordered values?node mindchart/scripts/ifgc2svg {title}.md {title}.svg
node mindchart/scripts/svg2png {title}.svg {title}.png