본문으로 건너뛰기
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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: 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 Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“월별 가입자 수를 지난 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
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬