Перейти к содержанию
Skillpedia
Анализ и таблицы6.2k · #14390

chart-rendering

Что он делает

Этот скилл подбирает подходящий тип графика под ваш вопрос и рисует его в виде изображения с понятным заголовком и подписями. Он нужен тем, кто хочет увидеть анализ в картинке, а не в длинной таблице.

Когда использовать

  • ✓Когда вы просите график или диаграмму по набору чисел.
  • ✓Когда результат содержит много строк и его проще прочитать в виде картинки.
  • ✓Когда вы хотите увидеть, как значение меняется со временем.

Ссылка на скилл

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

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: 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 Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Нарисуй график наших ежемесячных регистраций за прошлый год в виде линии, с понятным заголовком и подписанными осями.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Скилл сначала подбирает тип графика под вопрос, например линию для изменения во времени или столбцы для сравнения категорий. Затем он пишет короткий скрипт, который рисует график и сохраняет изображение вместе со скриптом.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с 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.

Частые вопросы

Какие типы графиков он использует?

Он может использовать линейные, накопленные столбчатые, столбчатые, точечные, гистограммы, коробчатые диаграммы и диаграммы с областями в зависимости от вопроса.

Что я получу в ответ?

Вы получите файл изображения и скрипт, которым он был создан.

Что будет, если ни один тип графика не подходит?

Скилл спросит, какой вид вы хотите, вместо того чтобы угадывать.

Подробности

Оригинальное описание автора

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

Популярность

Звёзды на GitHub
6.2k
Место в рейтинге
#14390
Лицензия
Apache-2.0
Обновлён
02.11.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы