hive.chart-creation-foundations
하는 일
이 스킬은 AI가 데이터로 깔끔한 차트와 다이어그램을 만드는 방법을 가르칩니다. 추세나 비교를 한눈에 읽고 싶은 사람들을 위한 것입니다.
사용하는 경우
- ✓데이터가 시간에 따른 추세, 비교 또는 값의 분포를 보여 줄 때.
- ✓흐름, 계층 구조 또는 구조를 다이어그램으로 그리고 싶을 때.
- ✓숫자 하나나 짧은 순위는 차트보다 일반 텍스트로 보여 주는 편이 나은 경우.
스킬 링크
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_preset_skills/chart-creation-foundations/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“지난 1년간의 월별 매출을 차트로 만들어 주세요. 추세를 한눈에 볼 수 있으면 좋겠습니다.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 데이터를 넣어 차트 도구를 한 번 호출합니다. 차트는 채팅에 나타나고, PNG 사본이 다운로드할 수 있는 파일로 저장됩니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Chart creation foundations
These tools render BI/financial-analyst-grade charts and diagrams that show up live in the chat AND save as high-DPI PNGs in the user's queen session dir.
The embedding contract — one rule
To put a chart in chat, call
chart_render. The chat readsresult.specand renders the chart live in the message bubble. The download link isresult.file_url. Do not writeimage markdown by hand — the tool's result drives the UI.
That's it. One tool call, one chart in chat, one file on disk. No two-step "remember to also save it" pattern. The chat's chart-rendering UI is fed by the tool result envelope automatically.
When to chart at all
Chart when the data is visual at heart: trends over time, distributions, comparisons across categories, hierarchies, flows, geo. Skip the chart when:
- The point is one number → just say it. ("Revenue was $4.2M, up 12% YoY.")
- The point is a ranking of 5 things → use a markdown table with bold and emoji indicators.
- The data is so noisy a chart would mislead → describe the takeaway in prose.
A chart costs the user attention. It must repay that cost with a takeaway they couldn't get from prose.
ECharts vs Mermaid — the picking rule
Use ECharts (kind: "echarts") when... |
Use Mermaid (kind: "mermaid") when... |
|---|---|
| You're plotting numbers over categories or time | You're showing structure, not data |
| Bar / line / area / scatter / candlestick / heatmap / treemap / sankey / parallel coordinates / calendar / gauge / pie / sunburst / geo map | Flowchart / sequence / gantt / ERD / state diagram / mindmap / class diagram / C4 architecture |
| The viewer's question is "how much / how many / what's the trend" | The viewer's question is "what calls what / what depends on what / what happens after what" |
If both fit (rare), prefer ECharts — its rasterized output is a proper data chart for slides; Mermaid's diagrams are for technical docs.
The aesthetic baseline (non-negotiable)
These are the rules that turn an Excel-default chart into a Tableau-grade one. Every chart you produce must follow them.
1. Theme & background
chart_renderhas nothemeparameter. The renderer reads the user's UI theme from the desktop env (HIVE_DESKTOP_THEME) so the saved PNG matches what the user is actually looking at. You don't pick; the system does.- Title goes in
option.title.text, NOT in the message body. The chart is self-contained.
2. Palette discipline — DO NOT set color on series
The OpenHive ECharts theme is auto-applied to every chart_render call. It defines:
- An 8-hue categorical palette for multi-series charts (honey orange, slate blue, sage, terracotta, bronze, indigo, olive, rust)
- Cozy spacing (
grid.top: 90,grid.bottom: 56, etc.) - Brand typography (Inter Tight)
- Tasteful axis lines + dashed gridlines
Do not set option.color, option.title.textStyle, option.grid, or option.itemStyle.color on series. The theme covers it. If you do override, you'll fight the brand palette and the chart will look generic.
When you need data-encoded color (NOT category color):
- Sequential (magnitude): use
visualMapwithinRange.color: ['#fff7e0', '#db6f02'](light-to-honey) - Diverging (positive/negative): use
visualMapwithinRange.color: ['#a8453d', '#f5f5f5', '#3d7a4a'](terracotta/neutral/sage) - Semantic up/down (candlestick is auto-themed): for explicit gain/loss bars use
#3d7a4a(gain) and#a8453d(loss), NOT#27ae60/#e74c3c.
3. Typography
The default font (-apple-system, "Inter Tight", system-ui) is already wired in the renderer — don't override unless the user asked. Set option.textStyle.fontSize: 13 for body labels, 16 for axis names, 18 bold for the title.
4. No chartjunk
- No 3D. Ever. 3D pie charts and 3D bar charts are visual lies.
- No drop shadows on bars or lines. The default flat ECharts look is correct.
- No gradient fills unless the gradient encodes data (e.g. heatmap fill).
- No neon colors. Saturation belongs on highlighted bars, not on every series.
- No more than 5 stacked colors in a stacked bar — past that the eye can't separate them.
5. Axis hygiene
- X-axis labels rotate 45° only when they overflow. Otherwise horizontal.
- Y-axis starts at 0 for bar/area charts (truncating misleads). Line charts can start at min - 5%.
- Use
option.yAxis.axisLabel.formatter: '{value} M'to a
자주 묻는 질문
어떤 차트 종류를 고르나요?
카테고리나 시간에 따른 숫자에는 ECharts를, 구조적 다이어그램에는 Mermaid를 사용합니다.
언제 차트를 만들지 않나요?
숫자 하나나 짧은 목록으로 더 잘 전달되거나, 데이터가 너무 불규칙해서 공정하게 보여 줄 수 없을 때는 차트를 만들지 않습니다.
PNG는 어디에 저장되나요?
세션 폴더에 고해상도 PNG가 저장되며, 다운로드 링크가 제공됩니다.
상세 정보
작성자의 원본 설명
Required reading whenever any chart_* tool is available. Teaches the one-tool embedding contract (call chart_render → live chart appears in chat AND a downloadable PNG lands in the queen session dir), the ECharts (data viz) vs Mermaid (structural diagrams) decision, the BI/financial-grade aesthetic baseline (no chartjunk, restrained palette, proper typography, single message per chart), and the canonical spec patterns for the 12 most-common chart types. Skipping this leads to 1990s-Excel charts, missing downloads, and the agent writing markdown image links by hand instead of letting chart_rend
repo: aden-hive/hive
인기도
- GitHub 스타
- 11k
- 순위
- #11810
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
browser-edge-cases
11k에이전트가 LinkedIn, X 같은 까다로운 사이트나 스크립트가 많은 페이지에서 실패하는 브라우저 자동화를 고치도록 돕습니다.
hive.browser-automation
11k에이전트가 hive-browser 도구로 내 Chrome 브라우저를 제어하도록 가르칩니다. 스크린샷과 클릭을 사용합니다.
hive.colony-progress-tracker
11k에이전트가 작업을 맡고 단계와 점검 내용을 공유 데이터베이스에 기록하도록 돕습니다. 작업이 진행되는 동안 추적됩니다.
hive.context-preservation
11k에이전트가 긴 도구 결과에서 핵심 사실을 메모로 저장해, 오래된 세부 내용이 기억에서 지워지기 전에 보존하도록 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.