chart-rendering
Qué hace
Esta skill elige el tipo de gráfico adecuado para una pregunta y lo dibuja como imagen, con un título claro y etiquetas. Está pensada para personas que quieren una vista visual de un análisis en lugar de una tabla larga.
Cuándo usarla
- ✓Cuando pides un gráfico o una representación de un conjunto de números.
- ✓Cuando un resultado tiene muchas filas y se entiende mejor como imagen.
- ✓Cuando quieres ver cómo cambia un valor con el tiempo.
Link de la 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.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Representa en un gráfico de líneas nuestros registros mensuales del último año, con un título claro y los ejes etiquetados.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill relaciona primero la pregunta con un tipo de gráfico, como líneas para mostrar cambios en el tiempo o barras para comparar categorías. Después escribe un script corto que dibuja el gráfico y guarda juntos la imagen y el script.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
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.
Preguntas frecuentes
¿Qué tipos de gráfico usa?
Puede usar gráficos de líneas, de barras apiladas, de barras, de dispersión, histogramas, diagramas de caja y de área, según la pregunta.
¿Qué recibo a cambio?
Recibes un archivo de imagen y el script que lo generó.
¿Qué pasa si ningún tipo de gráfico encaja?
La skill pregunta qué vista quieres en lugar de adivinarla.
Detalles
Descripción original del autor
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.
Popularidad
- Estrellas en GitHub
- 6,2 mil
- Posición en el ranking
- #14390
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
agentscope-java
6,2 milAyuda a tu agente a escribir código Java no bloqueante para AgentScope, un framework multiagente construido sobre Project Reactor.
data-report
6,2 milAyuda a tu agente a resumir un conjunto de datos en un informe con medias, totales, rangos y tendencias, guardado como archivo Markdown.
data-transform
6,2 milAyuda a tu agente a convertir un archivo de datos entre formatos como CSV y JSON, para que los datos se puedan usar en otras herramientas.
git-changelog
6,2 milAyuda a tu agente a escribir un registro de cambios o notas de versión a partir del historial de Git, agrupado en novedades, correcciones y otros cambios.
Skills parecidas
gitcrawl
394 milPermite que tu agente busque en un archivo guardado de incidencias y pull requests de GitHub, agrupe duplicados y revise su estado actual en GitHub.
slacrawl
394 milPermite que tu agente busque y cuente mensajes en un archivo local de Slack, revise qué tan reciente es y lo actualice cuando haga falta.
goplaces
394 milAyuda a tu agente a buscar lugares, obtener sus detalles y reseñas, y resolver nombres de lugares usando Google Places, con salida JSON para scripts.