Langsung ke konten
Skillpedia
Analisis & spreadsheet6.2k Β· #14390

chart-rendering

Fungsinya

Skill ini memilih jenis grafik yang tepat untuk sebuah pertanyaan, lalu menggambarnya sebagai gambar dengan judul dan label yang jelas. Skill ini untuk orang yang ingin melihat hasil analisis dalam bentuk visual, bukan tabel panjang.

Kapan dipakai

  • βœ“Saat Anda meminta grafik atau plot dari sekumpulan angka.
  • βœ“Saat sebuah hasil memiliki banyak baris dan lebih mudah dibaca dalam bentuk gambar.
  • βœ“Saat Anda ingin melihat bagaimana sebuah nilai berubah dari waktu ke waktu.

Link 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.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: 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.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œTampilkan jumlah pendaftaran bulanan kami selama setahun terakhir dalam grafik garis, dengan judul yang jelas dan sumbu yang diberi label.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Pertama, skill mencocokkan pertanyaan dengan jenis grafik, misalnya garis untuk perubahan dari waktu ke waktu atau batang untuk membandingkan kategori. Lalu skill menulis skrip pendek yang menggambar grafik dan menyimpan gambar bersama skripnya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Chart Rendering Skill

Repeatable SOP for turning a result set into a chart that actually communicates the point.

Steps

  1. 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".

  2. 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 to knowledge/cache/<topic>.csv so it can be re-rendered.

  3. Render with matplotlib. Write the script to a file under scratch/charts/<topic>.py and execute it via shell_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) under knowledge/charts/<topic>.png.
  4. Show and explain. In the assistant reply, link the saved image with a markdown image embed (![title](knowledge/charts/<topic>.png)) 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.).

  5. Keep the script reproducible. The chart file is the artefact; the script under scratch/charts/<topic>.py is 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.

Pertanyaan umum

Jenis grafik apa yang digunakan?

Skill dapat memakai grafik garis, batang bertumpuk, batang, sebaran, histogram, kotak, dan area, sesuai dengan pertanyaannya.

Apa yang saya dapatkan?

Anda mendapatkan file gambar dan skrip yang membuatnya.

Bagaimana jika tidak ada jenis grafik yang cocok?

Skill akan menanyakan tampilan mana yang Anda inginkan, bukan menebak.

Detail

Deskripsi asli dari pembuat

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.

repo: agentscope-ai/agentscope-java

Popularitas

Bintang GitHub
6.2k
Peringkat
#14390
Lisensi
Apache-2.0
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa