Preface¶
Business teams often have only a simple “indicator-value” table but need to deliver a material that can be opened directly, complete with charts and conclusion descriptions. Hand-writing HTML, integrating Chart.js, and adding several paragraphs of analysis text often takes more time than the actual data calculation. If you want an Agent to produce a single-file report according to a fixed structure, rather than piecing together a template from scratch every time, you can install a Skill designed for “Data Report Writing.” This integrates titles, data, analysis goals, and layout constraints into a single workflow.
What is this¶
Data Report Writing (Coordinate @user_2f63f22a/outputreport) is a community Skill on SkillHub, categorized under data-analysis. The current version is 1.0.0, maintained by the publisher user_2f63f22a. The tags indicate requires_api_key=false, meaning no additional API Key configuration is needed after installation.
The SKILL.md within the Skill package describes capabilities in the form of a DataReportSkill class: based on the input dictionary data and analysis goals, it generates an HTML data report with both text and graphics (embedded with CDN references for Tailwind CSS and Chart.js) and writes it to a local file. Official page and resource entry points:
- SkillHub Display Page: https://www.skillhub.cn/skills/user_2f63f22a/outputreport
- Official Address (Resource Clue): https://api.skillhub.cn/user_2f63f22a/outputreport
Core Functions¶
The following capabilities are derived from the implementation instructions in the installed Skill package’s SKILL.md and do not exceed the scope described in that file.
Report Content and Structure¶
Generates a single-page HTML containing roughly three sections:
- Data Visualization: Draws Chart.js charts based on
analyze_data. - Deep Data Analysis: Automatically generates three-part text (Core Conclusions, Data Insights, Optimization Suggestions).
- Raw Data Details: Lists indicators and values in a table.
The header displays the report title, analysis goal, author, and generation date.
Input Parameters Convention¶
Required during initialization:
| Parameter | Meaning |
|---|---|
report_title |
Report title |
analyze_data |
Data for analysis, in dictionary format, supporting one-dimensional key-value pairs |
analyze_target |
Analysis goal, e.g., quarterly sales review, user growth analysis |
report_style |
Optional, defaults to “Business Formal” |
author |
Optional, defaults to “Data Analyst” |
Report Styles¶
Three built-in style templates (corresponding to Tailwind class combinations):
- Business Formal (Default)
- Clean & Fresh
- Visualization Focus
Unrecognized report_style values will fall back to “Business Formal.”
Chart Type Selection¶
Simple rule-based judgment based on data structure:
- Values are all between 0–100 and the sum is approximately 100 → Pie Chart (Proportion type)
- Key names contain terms like
Jan,Q1,Monday,2024, etc. → Line Chart (Trend type) - Others → Bar Chart (Category comparison)
Output Method¶
Call generate_html_report(save_path) to write the complete HTML to the specified path. The default filename is data_report.html.
Installation and Activation¶
Refer to the SkillHub official installation documentation for installation methods: https://skillhub.cn/install/skillhub.md
1. Verify CLI¶
command -v skillhub && skillhub --version
If not installed, you can install the CLI using the official script (full installation or CLI only, see Section 1 of that documentation).
2. Install this Skill¶
When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized.
skillhub install outputreport --namespace user_2f63f22a --dir <skills directory>
The equivalent syntax from SkillHub search results is: skillhub install outputreport --namespace user_2f63f22a.
3. Skills directories for various clients (Excerpted from official installation documentation)¶
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installing to the corresponding directory, activate it according to the Skill loading method of the client you are using (the official installation documentation notes: if the directory is incorrect or not restarted, the Agent may not read the new Skill). Codex CLI, Claude Code, and Cursor have the same installation command; the difference lies mainly in the --dir path.
Typical Usage¶
The reference implementation in SKILL.md is a Python class. When calling locally under the same contract, the process is to first construct an instance and then generate the HTML file.
from pathlib import Path
# In actual projects, ensure that the DataReportSkill in SKILL.md is importable, or inline equivalent logic according to Agent instructions
skill = DataReportSkill(
report_title="2026 Q3 Regional Sales Review",
analyze_data={"East China": 320, "South China": 280, "North China": 190},
analyze_target="Quarterly Sales Review",
report_style="Clean & Fresh",
author="Data Analysis Group",
)
skill.generate_html_report("q3_sales_report.html")
In Cursor and similar Agent environments, a more common usage is: after installing the Skill, use natural language to describe the title, dictionary data, analysis goal, and style, allowing the Agent to generate the HTML according to the structure in SKILL.md and save it to a specified path. Specific dialogue examples vary by client, so prompt templates not appearing in official materials are not fabricated here.
When opening the generated HTML, the page will load Tailwind and Chart.js from a CDN, so access to the corresponding external links is required.
Applicable Scenarios and Notes¶
Suitable for:
- Existing structured dictionary data (one-dimensional indicator table) where a shareable HTML report is quickly needed.
- Desiring a relatively fixed structure for chart types, layout, and analysis paragraphs to reduce manual front-end boilerplate writing every time.
- Not wanting to apply for a separate third-party API Key for report generation (this Skill is marked as requiring no API Key).
Limitations and Notes:
analyze_datais handled as “single set of key-value pairs” in the reference implementation; complex multi-dimensional tables or multi-series comparisons require self-extension or aggregating data via an Agent before generation.- Analysis text is generated by rule templates based on max values, min values, sums, etc.; deep business interpretation still relies on you supplementing context or manual revision.
- Chart type judgment relies on simple heuristics; special key names or value forms may result in choosing the wrong chart type, so visual inspection after generation is recommended.
- The report relies on CDNs; styles and charts may fail to load when opening the HTML in an offline or intranet environment.
- Statistics displayed on the SkillHub page (as of data capture): Rating 100000, Downloads 3231; this is a community source, please verify the version and updates on the SkillHub page before use.
Conclusion¶
Data Report Writing converges “Title + Dictionary Data + Analysis Goal + Optional Style” into a single-file HTML report workflow. It is suitable for scenarios where you need to quickly deliver visualization explanations without building Chart.js and layouts from scratch every time. Installation and directory configuration should be based on the SkillHub official documentation. For skill details and coordinates, see: https://www.skillhub.cn/skills/user_2f63f22a/outputreport