xiaohongshu
xiaohongshu
infographic-creation
Create beautiful infographics based on the given text content. Use this when users request creating infographics.
Full skill instructions
An infographic (Infographic) transforms data, information, and knowledge into perceivable visual language. It combines visual design with data visualization, using intuitive symbols to compress complex information and help audiences quickly understand and remember key points.
Infographic = Information Structure + Visual Expression
This is a task that utilizes AntV Infographic to create visual infographics.
Before you start the task, you need to understand the AntV Infographic Syntax specification, including template lists, data structures, themes, and more.
AntV Infographic Syntax is a mermaid-like DSL for describing infographic rendering configuration. It uses indentation to describe information, has strong robustness, and makes it easy to render infographics through AI streaming output. It mainly contains the following information:
e.g.:
infographic list-row-horizontal-icon-arrow
data
title Title
desc Description
items
- label Label
value 12.5
desc Explanation
icon mdi/rocket-launch
theme
palette #3b82f6 #8b5cf6 #f97316
infographic , and the template is selected from the list below (the Available Templates section).mdi/chart-line)data should contain title/desc/items (which can be omitted according to semantics)data.items should contain label(string)/value(number)/desc(string)/icon(string)/children(object), where children represents the hierarchical structurecompare-), construct exactly two root nodes and place every comparison item under them as children to keep the hierarchy cleartheme field is for customizing the theme of the infographic, including palette, font, etc.e.g. dark theme with custom palette:
infographic list-row-simple-horizontal-arrow
theme dark
palette
- #61DDAA
- #F6BD16
- #F08BB4
data
items
- label Step 1
desc Start
- label Step 2
desc In Progress
- label Step 3
desc Complete
theme.base.text.font-family to specify fonts, such as the handwriting style '851tegakizatsu'theme.stylize to select built-in styles and pass parametersCommon stylization types include:
rough: Apply hand-drawn style to make graphics look like they were drawn by hand.pattern: Apply pattern fill to add repeated pattern effects to graphics.linear-gradient / radial-gradient: Apply linear or radial gradient effects to graphics.e.g: Hand-drawn style (rough):
infographic list-row-simple-horizontal-arrow
theme
stylize rough
base
text
font-family 851tegakizatsu
data
items
- label Step 1
desc Start
- label Step 2
desc In Progress
- label Step 3
desc Complete
Typescript definition for data field:
interface Data {
title?: string;
desc?: string;
items: ItemDatum[];
[key: string]: any;
}
interface ItemDatum {
icon?: string;
label?: string;
desc?: string;
value?: number;
illus?: string;
children?: ItemDatum[];
[key: string]: any;
}
Icons (from Iconify):
/, e.g., mdi/rocket-launchmdi/* - Material Design Icons (most commonly used)fa/* - Font Awesomebi/* - Bootstrap Iconsheroicons/* - Heroiconsmdi/code-tags, mdi/database, mdi/api, mdi/cloudmdi/chart-line, mdi/briefcase, mdi/currency-usdmdi/check-circle, mdi/arrow-right, mdi/cogmdi/account, mdi/account-group, mdi/shield-accountIllustrations (from unDraw):
codingcoding, programmer, server, cloud-syncbusiness-plan, team-work, analyticsabstract, building-blocks, connectionUsage Tips:
sequence-* and list-* templates → use iconillusTemplate Selection Guidelines:
sequence-* seriessequence-timeline-*sequence-stairs-*sequence-roadmap-vertical-*sequence-zigzag-*sequence-circular-simplesequence-color-snake-steps-*sequence-pyramid-simplelist-row-* series or list-column-* seriescompare-binary-* seriescompare-swothierarchy-tree-*chart-* seriesquadrant-* serieslist-grid-* seriesrelation-circle-*chart-wordcloudDraw an information graph of the Internet technology evolution
infographic list-row-horizontal-icon-arrow
data
title Internet Technology Evolution
desc From Web 1.0 to AI era, key milestones
items
- time 1991
label Web 1.0
desc Tim Berners-Lee published the first website, opening the Internet era
icon mdi/web
- time 2004
label Web 2.0
desc Social media and user-generated content become mainstream
icon mdi/account-multiple
- time 2007
label Mobile
desc iPhone released, smartphone changes the world
icon mdi/cellphone
- time 2015
label Cloud Native
desc Containerization and microservices architecture are widely used
icon mdi/cloud
- time 2020
label Low Code
desc Visual development lowers the technology threshold
icon mdi/application-brackets
- time 2023
label AI Large Model
desc ChatGPT ignites the generative AI revolution
icon mdi/brain
infographic sequence-horizontal-zigzag-simple-illus
data
title Product Development Phases
desc Key stages in our development process
items
- label Research
desc Understanding user needs
illus user-research
- label Design
desc Creating user experience
illus design-thinking
- label Development
desc Building the product
illus coding
- label Launch
desc Going to market
illus launch-day
Before creating the infographic, it is important to understand the user's requirements and the information they want to present. This will help in defining the template and the data structure.
If the user provides a clear and concise description of the information they want to present, break down the information into a clear and concise structure.
Otherwise, ask the user for clarification (e.g., "Please provide a clear and concise description of the information you want to present.", "Which template would you prefer to use?")
{syntax}.CRITICAL NOTE: Must respect the language of the user's input content. e.g. if the user's input content is in Chinese, the text content in infographic syntax must be in Chinese.
Once you have the final AntV Infographic Syntax, you can generate the complete infographic HTML file by following these steps:
{title} - Infographichttps://unpkg.com/@antv/infographic@latest/dist/infographic.min.jscontainer where the infographic will renderwidth: '100%' and height: '100%'{title} with the actual title{syntax} with the actual AntV Infographic Syntaxconst svgDataUrl = await infographic.toDataURL({ type: 'svg' });The Html template you can follow:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{title} - Infographic</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100vw;
height: 100vh;
overflow: hidden;
}
#container {
width: 100%;
height: 100%;
}
.export-btn {
position: fixed;
top: 20px;
right: 20px;
padding: 10px 20px;
background: #3b82f6;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
z-index: 1000;
}
.export-btn:hover {
background: #2563eb;
}
</style>
</head>
<body>
<button class="export-btn" onclick="exportSVG()">Export SVG</button>
<div id="container"></div>
<script src="https://unpkg.com/@antv/infographic@latest/dist/infographic.min.js"></script>
<script>
// Resource loader for icons and illustrations
const resourceLoader = {
icons: new Set(),
illustrations: new Set(),
loadIcon(name) {
this.icons.add(name);
return `https://api.iconify.design/${name}.svg`;
},
loadIllustration(name) {
this.illustrations.add(name);
return `https://unpkg.com/[email protected]/static/illustrations/${name}.svg`;
}
};
const infographic = new Infographic({
container: 'container',
width: '100%',
height: '100%',
data: `{syntax}`
});
async function exportSVG() {
const svgDataUrl = await infographic.toDataURL({ type: 'svg' });
const link = document.createElement('a');
link.href = svgDataUrl;
link.download = '{title}.svg';
link.click();
}
</script>
</body>
</html>
Write the HTML file named -infographic.html using the Write tool
Display to the user:
Note: The HTML file must include:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience