AgentSkillsCN

chart-architect

创建图表、图形、示意图和数据可视化。支持柱状图、折线图、饼图、散点图等多种类型。适用于用户需要可视化数据、制作图形、绘制图表或生成示意图时使用。

SKILL.md
--- frontmatter
name: chart-architect
description: Create charts, graphs, diagrams and data visualizations. Supports bar charts, line charts, pie charts, scatter plots, and more. Use when user needs to visualize data, create graphs, plot charts, or generate diagrams.
version: 1.0.0
author: Agent Zero Custom
tags: [visualization, charts, graphs, matplotlib, data, plotting]
trigger_patterns:
  - "create chart"
  - "plot graph"
  - "visualize data"
  - "make diagram"
  - "generate chart"
  - "bar chart"
  - "line chart"
  - "pie chart"
allowed_tools:
  - code_execution_tool
  - memory_save
  - response

Chart Architect — Data Visualization

Create beautiful charts and graphs using matplotlib with support for multiple chart types and customizable styling.

Installation

bash
# Install dependencies
pip install -r requirements.txt

# Or use setup script
bash /a0/usr/skills/setup.sh

When to Use

Use this skill when you need to:

  • Visualize data with charts or graphs
  • Create bar charts, line charts, pie charts
  • Generate scatter plots or histograms
  • Export visualizations as images

Supported Chart Types

TypeDescriptionBest For
barVertical/horizontal barsComparing categories
lineConnected data pointsTrends over time
pieCircular sectorsPart-to-whole relationships
scatterX-Y point distributionCorrelation analysis
histogramFrequency distributionData distribution

Usage

Via Python Script

bash
python /a0/usr/skills/chart-architect/scripts/chart_architect.py --type bar --data '[{"label":"A","value":10},{"label":"B","value":20}]' --title "My Chart" --output /a0/tmp/chart.png

Parameters

ParameterTypeDefaultDescription
--typestrrequiredChart type: bar/line/pie/scatter/histogram
--dataJSONrequiredData array or CSV path
--titlestr"Chart"Chart title
--x_labelstroptionalX-axis label
--y_labelstroptionalY-axis label
--outputstrrequiredOutput file path (.png)
--stylestr"default"Matplotlib style

Examples

  1. Bar chart:

    bash
    python /a0/usr/skills/chart-architect/scripts/chart_architect.py --type bar --data '[{"label":"Q1","value":100},{"label":"Q2","value":150}]' --title "Quarterly Sales" --output /a0/tmp/sales.png
    
  2. Line chart with labels:

    bash
    python /a0/usr/skills/chart-architect/scripts/chart_architect.py --type line --data '[{"x":1,"y":10},{"x":2,"y":20},{"x":3,"y":15}]' --title "Growth Trend" --x_label "Month" --y_label "Revenue" --output /a0/tmp/trend.png
    
  3. Pie chart:

    bash
    python /a0/usr/skills/chart-architect/scripts/chart_architect.py --type pie --data '[{"label":"A","value":30},{"label":"B","value":70}]' --title "Market Share" --output /a0/tmp/share.png
    

Requirements

  • matplotlib>=3.7.0
  • pandas>=2.0.0
  • numpy>=1.24.0

Files

code
/a0/usr/skills/chart-architect/
├── scripts/
│   └── chart_architect.py
├── requirements.txt
└── SKILL.md