chart-rendering
Skill này làm gì
Skill này chọn đúng loại biểu đồ cho một câu hỏi và vẽ thành ảnh với tiêu đề và nhãn rõ ràng. Skill dành cho người muốn xem kết quả phân tích dưới dạng hình ảnh thay vì một bảng dài.
Khi nào nên dùng
- ✓Khi bạn yêu cầu vẽ biểu đồ hoặc đồ thị từ một bộ số.
- ✓Khi kết quả có nhiều dòng và dễ đọc hơn dưới dạng hình.
- ✓Khi bạn muốn xem một giá trị thay đổi theo thời gian như thế nào.
Liên kết skill
https://github.com/agentscope-ai/agentscope-java/blob/main/agentscope-examples/agents/agentscope-dataagent/src/main/resources/shared/agents/data-agent/skills/chart-rendering/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy vẽ số khách hàng đăng ký hằng tháng trong năm qua thành biểu đồ đường, có tiêu đề rõ ràng và nhãn cho các trục.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Đầu tiên, skill ghép câu hỏi với một loại biểu đồ, chẳng hạn biểu đồ đường để xem thay đổi theo thời gian hoặc biểu đồ cột để so sánh các nhóm. Sau đó, skill viết một đoạn script ngắn để vẽ biểu đồ và lưu cả ảnh lẫn script.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Chart Rendering Skill
Repeatable SOP for turning a result set into a chart that actually communicates the point.
Steps
Match chart type to question. Decide before drawing:
Question shape Chart "How does X change over time?" Line (single series) or multi-line "Composition / share of total" Stacked bar, or 100% stacked area "Comparison across a small set of categories" Bar (horizontal if labels are long) "Relationship between two numeric variables" Scatter "Distribution of a single variable" Histogram or box plot "Cumulative total" Area If none fit, ask the user which view they want — do not default to "any chart will do".
Prepare the data. The query result from the [[sql-analysis]] Skill should already be tidy (one row per data point, one column per dimension). If not, reshape first using pandas (
pivot,melt,groupby). Save the cleaned frame toknowledge/cache/<topic>.csvso it can be re-rendered.Render with matplotlib. Write the script to a file under
scratch/charts/<topic>.pyand execute it viashell_run. Conventions:- Title — one sentence answering the question (not "Untitled chart").
- Axes — label both, include units (
Active users (count),Date (UTC)). - Legend — include only if there is more than one series.
- Colours — use the matplotlib default palette unless the user has a
stated brand colour in
knowledge/style.md. - Output — save as PNG (
bbox_inches='tight',dpi=150) underknowledge/charts/<topic>.png.
Show and explain. In the assistant reply, link the saved image with a markdown image embed (
) and write 2–3 sentences interpreting it — what the chart shows, the one thing the user should take away, and any caveat (incomplete latest data point, outliers excluded, etc.).Keep the script reproducible. The chart file is the artefact; the script under
scratch/charts/<topic>.pyis the source of truth. If the user asks for a tweak ("can we use a log y-axis?"), edit the script and re-run — do not regenerate from scratch.
Anti-patterns
- ❌ Pie charts with > 5 slices.
- ❌ Charting raw counts when proportions are what the user actually asked.
- ❌ A chart whose axes have no labels or unit.
- ❌ Embedding the image without 2 sentences of interpretation.
When to delegate
If the user wants a multi-chart dashboard with narrative around it (e.g. "build
me a weekly product health deck"), spawn the report-writer sub-agent —
this Skill is for individual charts.
Câu hỏi thường gặp
Skill dùng những loại biểu đồ nào?
Tùy câu hỏi, skill có thể dùng biểu đồ đường, biểu đồ cột xếp chồng, biểu đồ cột, biểu đồ phân tán, histogram, biểu đồ hộp và biểu đồ vùng.
Tôi nhận được gì sau khi dùng?
Bạn nhận được một file ảnh và script đã tạo ra ảnh đó.
Nếu không có loại biểu đồ nào phù hợp thì sao?
Skill sẽ hỏi bạn muốn xem theo cách nào thay vì tự đoán.
Chi tiết
Mô tả gốc của tác giả
Visualise the result of an analysis as a chart (line, bar, area, scatter, etc.). Use when the user asks to "plot...", "chart...", "show me the trend of...", "visualise...", or when a numerical result has more than ~10 rows and would be easier to read as a picture. Produces an image file plus the script that generated it.
Độ phổ biến
- Sao GitHub
- 6.2k
- Vị trí xếp hạng
- #14390
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agentscope-java
6.2kGiúp agent của bạn viết mã Java không chặn cho AgentScope, một framework đa agent xây dựng trên Project Reactor.
data-report
6.2kGiúp agent của bạn tóm tắt một bộ dữ liệu thành báo cáo có trung bình, tổng, khoảng giá trị và xu hướng, lưu dưới dạng tệp Markdown.
data-transform
6.2kGiúp agent của bạn chuyển đổi tệp dữ liệu giữa các định dạng như CSV và JSON, để dữ liệu có thể dùng trong công cụ khác.
git-changelog
6.2kGiúp agent của bạn viết changelog hoặc ghi chú phát hành từ lịch sử Git, được nhóm thành tính năng, sửa lỗi và thay đổi khác.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.