Zum Inhalt springen
Skillpedia
Analyse & Tabellen6.2k · #14390

chart-rendering

Was er macht

Dieser Skill wählt für eine Frage den passenden Diagrammtyp und zeichnet ihn als Bild mit klarem Titel und Beschriftungen. Er ist für Menschen gedacht, die eine Auswertung lieber als Bild statt als lange Tabelle sehen wollen.

Wann du ihn nutzt

  • ✓Wenn du ein Diagramm oder einen Plot einer Zahlenreihe verlangst.
  • ✓Wenn ein Ergebnis viele Zeilen hat und sich als Bild leichter lesen lässt.
  • ✓Wenn du sehen willst, wie sich ein Wert über die Zeit verändert.

Link zum 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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: 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 Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Zeichne unsere monatlichen Anmeldungen des letzten Jahres als Liniendiagramm mit klarem Titel und beschrifteten Achsen.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill ordnet die Frage zuerst einem Diagrammtyp zu, etwa Linie für Veränderung über die Zeit oder Balken für den Vergleich von Kategorien. Dann schreibt er ein kurzes Skript, das das Diagramm zeichnet, und speichert Bild und Skript zusammen.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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.

Häufige Fragen

Welche Diagrammtypen nutzt er?

Je nach Frage kann er Linien-, gestapelte Balken-, Balken-, Streu-, Histogramm-, Box-Plot- und Flächendiagramme nutzen.

Was bekomme ich zurück?

Du bekommst eine Bilddatei und das Skript, mit dem sie erstellt wurde.

Was ist, wenn kein Diagrammtyp passt?

Der Skill fragt dich, welche Ansicht du willst, statt zu raten.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
6.2k
Platz im Ranking
#14390
Lizenz
Apache-2.0
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills