Preface¶
Research notes, sales sheets, and interface JSONs are often already complete, but when it comes to handing them to colleagues or leaders, you still need to format another version: title hierarchy, metric cards, table styles, and simple flowcharts. Writing HTML inline styles by hand is time-consuming, and pure Markdown doesn’t support a “report feel.” If you commonly use Typora or Markor for reading, or ultimately export to PDF, you need a finished product that can be opened directly in a local editor, rather than relying on online dashboards.
The following introduces the SkillHub community Skill @user_d82fedf3/data2visualization (current version v0.0.6, categorized under office-efficiency). It constrains the Agent’s output form through a universal SKILL.md, organizing structured or semi-structured inputs into Markdown reports with Mermaid, HTML inline styles, and tables. The target scenarios are Typora / Markor / PDF export.
What Is This¶
Positioning: Convert structured or semi-structured data into high-quality Markdown visualization reports.
Maintainer: Community source (community), coordinates @user_d82fedf3/data2visualization, SkillHub page publisher is user_d82fedf3 (page display author EastSeaO). The SKILL.md in the Skill package lists the author as 王维.
Problem solved: Hand over raw data, analysis goals, and context to the Agent in conversation; the prompt.md and SKILL.md in the Skill specify layout and chapter structure, reducing time spent on repeated reformatting. The tag requires_api_key=false means installation and usage do not depend on additional API keys.
SkillHub public data (based on scraped information): rating 100000, 8172 downloads, 68 installations.
Core Features¶
The following capabilities are all from the SKILL.md, prompt.md, and run.py in the installed Skill package (v0.0.6), and can be cross-checked with the SkillHub introduction.
-
Input format
Supports raw data (tables / text / JSON), optional analysis goals, and current conversation context (SKILL.md“Usage”). -
Agent-side report generation
prompt.mdrequires outputting a business-readable report: the entire text wrapped in a four-backtickmarkdowncode block; includes centered title, introduction card, data analysis card (flex), table, Mermaid diagram, and summary box; styled with light blue HTML + inline CSS for easy copying to Typora / Markor or PDF export. -
Data processing script
run.pyprovides arun(params)entry: attempts JSON, CSV/TSV, or plain text parsing for thedatafield; performs basic analysis such as fields and sample size; generates Mermaid fragments by data type; returns structures such as title, summary, preview rows, visualization string, and conclusion (consistent withschema.jsonfields). -
Local configuration (optional)
The package includesconfig.yamlandschema.json.SKILL.mddocuments that you can customize data source and output path viadata_source,chart_type,x_column,y_column,title,output_file,include_mermaidand other items; and lists Python dependenciespandas,matplotlib,pyyaml(optionalseaborn).SKILL.mdalso describes matplotlib bar/line/scatter charts, base64 embedded images, and other output features—implementation details are based on your local Skill package version, and the Agent path is primarily governed byprompt.mdlayout rules. -
Applicable scenarios (Skill self-description)
Market research, sales data analysis, food industry analysis, competitor comparison, trend forecasting, etc. (seeSKILL.md).
Installation and Activation¶
1. Install SkillHub CLI (when not installed)¶
Official installation instructions can be found at SkillHub Installation and Priority Source Configuration. First check if the CLI is already installed:
command -v skillhub && skillhub --version
If not installed, you can execute the full installation or CLI-only:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install this Skill¶
The coordinates given on the SkillHub page are @user_d82fedf3/data2visualization. The installation command shown in search results is:
skillhub install data2visualization --namespace user_d82fedf3 --dir <skills directory>
Note: You must use --dir to point to the current Agent’s skills directory; otherwise the default installation to ./skills/ may not be recognized. Common path examples (from official installation documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also give the following prompt to an AI that supports Skills, letting it complete the installation according to the official documentation:
Please install `@user_d82fedf3/data2visualization` according to https://skillhub.cn/install/skillhub.md.
After installation, refresh or restart the Agent as required by your client to activate the Skill.
3. Python dependencies (when running local charts per SKILL.md)¶
If you use config.yaml and the script chain per SKILL.md, you need Python 3.8+ and install:
pip install pandas matplotlib pyyaml
Typical Usage¶
Generate report in Agent conversation¶
This is the main use of the Skill: after enabling the Skill, provide data and analysis goals in the conversation. SKILL.md example inputs include CSV/JSON, table text or pasted JSON, as well as goals like “make a monthly sales trend report”; the Agent should output Markdown following the layout and chapter requirements of prompt.md.
Example conversation intent (illustrative, not a fixed API):
Please use the data2visualization skill to generate a Typora-compatible Markdown report based on the following CSV, including metric cards, data tables, and Mermaid flowcharts.
Month,Revenue
2026-01,120
2026-02,135
Analysis goal: Monthly sales trend
The output should satisfy the “Output Format Rules” in SKILL.md: wrapped in four backticks, CSS written inside style, table header background #b3e5fc, summary box gradient, etc.
Using config.yaml example (from SKILL.md)¶
After placing the data file in the Skill directory or a specified path, you can refer to the official example configuration:
data_source: "sales.csv"
chart_type: "bar"
x_column: "Month"
y_column: "Revenue"
title: "Monthly Sales Report"
output_file: "sales_report.md"
include_mermaid: true
SKILL.md states to execute python run.py to generate the report and open it in Typora / Markor. The config.yaml in the package also provides fields such as data_format, include_data_table, table_max_rows, card_metrics, which can be modified as needed.
Programmatic invocation of run.py¶
run.py’s run(params) accepts parameters such as data, goal, chart_type, and returns a dictionary containing fields such as visualization (Mermaid string), preview, analysis, making it easy to parse first in a custom pipeline and then hand over to the Agent for layout.
Applicable Scenarios and Notes¶
Who it’s for
- Office scenarios where you frequently write research notes, weekly reports, data descriptions, and deliverables are Markdown / PDF.
- Already using Typora or Markor, wanting reports with built-in card and table styles instead of opening another BI tool.
- Want to use Skill to unify Agent output layout, reducing the need to repeatedly describe formatting requirements each time.
Limitations and Notes
- Community Skill; versions and documentation are based on SkillHub and the local installed package;
SKILL.mdfrontmatter saysversion: 1.0, platform metadata is v0.0.6, verify features based on the actual installed directory. - Complex statistics or interactive charts are not the primary goal of this Skill; if you need standalone ECharts HTML or similar forms, you should choose other visualization-type Skills.
prompt.mdrequires consulting style, low “AI flavor” expression, and it is still recommended to manually verify data and conclusions after generation.- Client differences not verified in official documentation (such as Skill hot-reload methods for a certain IDE) are not expanded here; refer to each client’s documentation.
Conclusion¶
@user_d82fedf3/data2visualization converges “data + analysis goals” into Typora / Markor-friendly Markdown reports, with the core being Agent-side layout constraints and optional config.yaml / run.py data preprocessing. If you repeatedly create similar visualization documents in your workflow, you can first install to the corresponding skills directory as described above, then try running a small piece of real data to see if the output meets the prompt.md structure.
- SkillHub page: https://www.skillhub.cn/skills/user_d82fedf3/data2visualization
- Coordinate link: https://api.skillhub.cn/user_d82fedf3/data2visualization
- Installation instructions: https://skillhub.cn/install/skillhub.md