← Back to Skills Marketplace
115
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install china-auto-analysis
Description
生成中国汽车市场产销数据的可视化仪表盘,支持产量、批发销量、零售销量及同期对比分析。
README (SKILL.md)
China Auto Market Analysis Skill
制作中国汽车市场产销分析可视化仪表盘。数据来源为 akshare(CPCA乘联会厂商排名接口)。
功能
- YTD(累计至今)数据:支持任意年月的累计数据,如 2026年1-2月
- 单月数据:指定相同起止月份即可
- 三种数据维度:产量 / 批发销量 / 零售销量
- Top15 厂商排行:水平条形图,当年 vs 上年同期对比
- 同比变化分析:绝对值变化(万辆)+ 增速(%)
- 产销平衡对比:产量 vs 批发 vs 零售三维分组条形图
- KPI 概览卡:总量、冠军、增速王、跌幅王
- Dark Mode 专业风格:深色背景、涨跌颜色编码
数据来源
| 接口 | 说明 |
|---|---|
akshare.car_market_man_rank_cpca |
CPCA乘联会·厂商排名(狭义/广义乘用车) |
支持 产量、批发、零售 三种口径,支持单月和累计模式。
快速使用
# 产量 YTD(1-2月累计)
python3 china_auto_dashboard.py --year 2026 --start-month 1 --end-month 2 --type 产量
# 单月批发销量(2月)
python3 china_auto_dashboard.py --year 2026 --start-month 2 --end-month 2 --type 批发销量
# 零售销量(Q1累计)
python3 china_auto_dashboard.py --year 2026 --start-month 1 --end-month 3 --type 零售销量
# 全年累计
python3 china_auto_dashboard.py --year 2025 --start-month 1 --end-month 12 --type 产量
参数说明:
| 参数 | 说明 |
|---|---|
--year |
目标年份(默认 2026) |
--start-month |
起始月份(默认 1) |
--end-month |
结束月份(默认 2) |
--type |
产量 / 批发销量 / 零售销量 |
--scope |
狭义乘用车(默认)/ 广义乘用车 |
--output |
输出图片路径 |
安装依赖
pip install akshare pandas matplotlib numpy
# 中文字体(如需显示中文)
# Linux: apt install fonts-noto-cjk fonts-wqy-microhei
图表结构
┌─────────────────────────────────────────────────────────────┐
│ KPI卡1: 总量(YTD) │ 基准去年 │ 冠军 │ 增速王 │ 跌幅王 │
├────────────────────────────┬────────────────────────────────┤
│ Top N 厂商排行条形图 │ 同比变化(万辆 + %) │
│ 彩色=当年 灰色=去年 │ 红=增长 绿=下降 │
├────────────────────────────┴────────────────────────────────┤
│ 产量 vs 批发 vs 零售 三维对比(底部) │
└─────────────────────────────────────────────────────────────┘
追问示例
- "换成零售销量" → 重新调用,type=零售销量
- "看单月不要YTD" → start-month=2, end-month=2
- "只看前5名" → 修改 top_n 参数(TODO: CLI参数化)
- "换成广义乘用车" → --scope 广义乘用车
- "导出到 Excel" → TODO: 添加 Excel 导出功能
文件结构
china-auto-analysis/
├── SKILL.md ← 本文件
└── china_auto_dashboard.py ← 核心可视化脚本
Usage Guidance
This appears to be a straightforward dashboard script. If you plan to run it: (1) run it in a dedicated virtual environment to isolate dependencies; (2) review/approve the akshare package (pip will download it from PyPI) because akshare will make network requests to fetch CPCA data; (3) you may need to install CJK fonts via your package manager for proper Chinese rendering; (4) inspect the script yourself if you want to be extra cautious (there are no obvious obfuscated network calls or secret reads in the provided code).
Capability Analysis
Type: OpenClaw Skill
Name: china-auto-analysis
Version: 1.0.0
The skill bundle is a legitimate data visualization tool designed to generate dashboards for the Chinese auto market using the 'akshare' library. The Python script (china_auto_dashboard.py) fetches manufacturer rankings, calculates KPIs, and uses matplotlib to create professional charts. There is no evidence of data exfiltration, malicious execution, or prompt injection; the code follows its stated purpose and uses standard data science libraries.
Capability Assessment
Purpose & Capability
Name/description (China auto production/sales visualization) align with the included script and SKILL.md. The script imports akshare and plotting/data libraries (pandas, matplotlib, numpy), which are appropriate and expected for the stated purpose.
Instruction Scope
SKILL.md instructs installation of akshare and plotting libs and running the python script with CLI args. The instructions and the code only reference font files and the akshare CPCA interface; there are no instructions to read unrelated files, access secrets, or send data to external endpoints other than akshare (expected).
Install Mechanism
There is no formal install spec in the registry (instruction-only), and SKILL.md recommends 'pip install akshare pandas matplotlib numpy'. This is typical for Python scripts but means dependencies will be downloaded from PyPI at install time — vet the akshare package source if you require stricter supply-chain controls.
Credentials
The skill declares no required environment variables, credentials, or config paths. The code does not attempt to read environment secrets. Only local font file existence is checked (to render Chinese), which is proportionate to the visual output.
Persistence & Privilege
The skill is not always-enabled and does not request persistent privileges or modify other skills or system-wide agent settings. It is user-invocable and behaves like a typical CLI script.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install china-auto-analysis - After installation, invoke the skill by name or use
/china-auto-analysis - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
首次发布:基于akshare CPCA乘联会数据生成中国汽车厂商产销分析Dashboard,支持产量/批发/零售三种维度,支持YTD和单月模式
Metadata
Frequently Asked Questions
What is 中国汽车产销分析可视化?
生成中国汽车市场产销数据的可视化仪表盘,支持产量、批发销量、零售销量及同期对比分析。 It is an AI Agent Skill for Claude Code / OpenClaw, with 115 downloads so far.
How do I install 中国汽车产销分析可视化?
Run "/install china-auto-analysis" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 中国汽车产销分析可视化 free?
Yes, 中国汽车产销分析可视化 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 中国汽车产销分析可视化 support?
中国汽车产销分析可视化 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 中国汽车产销分析可视化?
It is built and maintained by NLMakes (@xuehengzhang10-hub); the current version is v1.0.0.
More Skills