Communitygithub.com

Varnan-Tech/opendirectory

將資料生成為 PNG 格式的資料視覺化圖表(長條圖、折線圖、面積圖、圓餅圖、甜甜圈圖、散佈圖、雷達圖、矩形樹狀圖),使用 Apache ECharts v6。預設 1080×1080px,內建 5 種風格預設與高亮註解功能。當使用者說「建立圖表」、「可視化資料」、「製作長條圖」、「折線圖」、「圓餅圖」、「資料視覺化」、「圖表化這筆資料」、「繪圖」、「畫圖」或「將這些數字可視化」時觸發。

opendirectory 是什麼?

這個技能能夠將結構化資料(JSON 或 CSV)轉換為多種 Apache ECharts v6 圖表類型,並以 2 倍視網膜解析度的 PNG 圖像輸出。它支援長條圖、折線圖、面積圖、圓餅圖、甜甜圈圖、散佈圖、雷達圖和矩形樹狀圖,並提供 5 種不同的風格預設(clean-slate、midnight-editorial、matt-gray、electric-burst、brutalist),可套用在圖表外觀上。其內部流程基於完善的 SKILL.md 文件,會先解析使用者的意圖與資料,讀取特定於圖表類型的組態規格與樣式主題,然後生成包含 ECharts 程式碼的完整 HTML 檔案。接著,該技能會腳本化啟動 Playwright 驅動的無頭 Chromium 瀏覽器,對渲染完成的圖表進行截圖,並將最終的 PNG 檔案與 HTML 原始碼一同儲存。此工具適用於需要在 Claude Code、Cursor 或 Codex 等程式碼生成代理程式中,快速產出高品質、可直接用於簡報或報告靜態視覺化圖表的開發者。

相容平台✓Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/Varnan-Tech/opendirectory/tree/main/skills/graphic-chart

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

graphic-chart

將資料生成為 PNG 格式的資料視覺化圖表。使用 Apache ECharts v6 在無頭 Chromium(透過 Playwright)中渲染 HTML,並以 2 倍視網膜品質進行螢幕截圖。

CDN:https://cdn.jsdelivr.net/npm/[email protected]/dist/echarts.min.js


關鍵規則(每次生成前請閱讀)

  1. area 類型 → type: 'line' + areaStyle: {} — ECharts 沒有 type: 'area'。
  2. doughnut → type: 'pie' + radius: ['40%', '70%'] — ECharts 沒有 type: 'doughnut'。
  3. 就緒訊號:在 chart.setOption() 之前註冊 chart.on('finished', fn) — ECharts 錯誤 #14101/#17500:如果在 setOption 之後註冊監聽器,它將默默地永遠不會觸發。請務必在 setOption 之前註冊 finished 和 rendered 事件。
  4. 必須顯式設定 xAxis.type: 'category' — ECharts 不會從資料推斷。忘記此項會產生空白圖表。
  5. 類別標籤放在 xAxis.data 中,而不是 data.labels 陣列中。ECharts 結構是扁平的:{ xAxis, yAxis, series, grid, title, legend } — 不要嵌套在 data 或 options 下。
  6. 資料標籤是內建的 — 在任何系列上使用 label: { show: true } 即可。無需外掛。
  7. 透過逐項 itemStyle 高亮特定長條/資料點 — 將 { value: N, itemStyle: { color: '#...' } } 直接放入 data 陣列。請勿使用 Chart.js 風格的 backgroundColor 陣列。
  8. ECharts 初始化使用 <div> 容器,而非 <canvas> — echarts.init(document.getElementById('chart'))。容器 div 需要明確的尺寸。
  9. 在 Option 中設定 animation: false — 停用動畫以實現即時渲染。仍須在 setOption 之前為就緒訊號註冊 finished + rendered 事件。
  10. 絕不在聊天中轉儲 HTML。 儲存到檔案,僅顯示摘要。
  11. 標題說明洞察,而非主題。 使用「營收在 12 個月內成長 3 倍」,而非「每月營收」。
  12. 圓餅圖/甜甜圈圖:使用 body padding: 64px 80px 和 .chart-container { max-height: 860px } — 防止無標題時圖表邊緣貼齊容器邊界。

步驟 1:接收輸入

必填: chart_type、data

可選參數與預設值:

參數預設值說明
chart_type—bar / line / area / pie / doughnut / scatter / radar / treemap
data—JSON 陣列或 CSV — 必填
title—說明洞察,≤10 個字
subtitle—一句話的上下文說明行
styleclean-slateclean-slate / midnight-editorial / matt-gray / electric-burst / brutalist
dimensions1080x1080WxH 像素(輸出 PNG 為 2 倍,透過 deviceScaleFactor)
x_label—X 軸標籤文字
y_label—Y 軸標籤文字
source—在頁尾顯示的資料來源
highlight—要強調的資料標籤(例如「Q4」、「Dec」、索引 3)

如果缺少 chart_type 或 data,請準確詢問:

「要建立圖表,我需要:

  1. 圖表類型 — bar / line / area / pie / doughnut / scatter / radar / treemap
  2. 資料 — 以 JSON 陣列或 CSV 格式提供(例如,使用標籤 ['Q1','Q2','Q3','Q4','Q5'] 的 [12, 18, 22, 25, 31])

可選:標題、風格(預設:clean-slate)、尺寸(預設:1080×1080)、高亮某個特定資料點」

如果兩者都存在 → 跳到步驟 2。


步驟 2:內部架構(不對使用者顯示)

1. 正規化圖表類型:

  • area → line + areaStyle: {}(在系列中)
  • doughnut → pie + radius: ['40%', '70%'](在系列中)
  • horizontal bar → bar + 交換 xAxis/yAxis(類別軸在 y 軸)
  • 所有其他類型:按原樣使用

2. 讀取 references/chart-library.md — 載入此圖表類型的完整設定規格。

3. 讀取 references/style-presets.md — 載入所選風格的 CSS 權杖與資料調色盤。

4. 確定設計方向:

決策推斷依據
語氣專業 / 編輯風格 / 大膽 / 技術性 — 配合資料的受眾
資料故事此圖表證明的單一洞察(將成為標題)
高亮策略哪個資料點需要視覺強調以及原因?
背景淺色(clean-slate, matt-gray)或深色(midnight-editorial, electric-burst, brutalist)

5. 解析資料:

  • 簡單陣列 [12, 18, 22] → series.data,標籤另行提供
  • 物件陣列 [{x: 'Jan', y: 12}] → xAxis.data 取自 x 鍵,series.data 取自 y 值
  • CSV:將標題行解析為 xAxis.data,將資料行解析為 series.data
  • 多系列:多個 series 條目,每個條目包含 type、name、data
  • 散佈圖:series.data: [[x1,y1], [x2,y2], ...] 格式

6. 解析尺寸: `

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Varnan-Tech/opendirectory

Use when the user asks to generate a blog cover image, thumbnail, or article header. Automatically uses modern typography, brand logos, and Google Search grounding to create beautiful 16:9 images with Gemini 3.1 Flash Image Preview.

Varnan-Tech/opendirectory

World-class brand strategist and naming expert. Uses an interrogation-led discovery phase to extract your brand's DNA, then applies scientific naming frameworks (Phonosemantics) and automated multi-TLD domain checking.

Varnan-Tech/opendirectory

Use when the user asks to generate or update a project's CLAUDE or AGENTS context file from a codebase scan. Writes a focused file under 100 lines containing only the non-obvious build commands, conventions, and gotchas Claude Code needs.

Varnan-Tech/opendirectory

Use when the user wants to verify cold emails, enrich a lead list, or autonomously guess email addresses from a CSV using ValidEmail.co or the open-source Reacher engine.

Varnan-Tech/opendirectory

Competitive intelligence orchestrator tracking companies across 8+ platforms (GitHub, Twitter, Reddit, HN, PH, YC Jobs) with heat scores and AI briefings.

Varnan-Tech/opendirectory

Give it your product URL or description. It finds your top 5 competitors, runs three-track PR research across all of them (editorial, podcasts, communities), identifies which channels appear most frequently, looks up the journalist or host for each, and returns a tiered outreach list with story angles and ready-to-send cold pitch drafts tailored to your product. Use when asked to find PR opportunities, discover where competitors got featured, build a media outreach list, find which journalists cover my space, or get pitch templates for press coverage.

Varnan-Tech/opendirectory

Generate high-converting, deep-dive growth case studies in MDX format. Use this skill when asked to write a case study or blog post about a company's growth, tech stack, or product-led strategy. It handles the full pipeline (researching the company via Tavily, generating a 16:9 cover image, quality checking the draft, uploading assets to cloud storage, and pushing directly to the target repository).

Varnan-Tech/opendirectory

Scans your project for outdated npm, pip, Cargo, Go, or Ruby packages. Runs a CVE security audit. Fetches changelogs, summarizes breaking changes with Gemini, and opens one PR per risk group (patch, minor, major). Includes Diagnosis Mode for install conflicts. Use when asked to update dependencies, check for outdated packages, open dependency PRs, scan for package updates, audit for CVEs, or flag breaking changes in upgrades. Trigger when a user says "check for outdated packages", "update my dependencies", "open PRs for dependency updates", "scan for CVEs", or "which packages need upgrading".

Varnan-Tech/opendirectory

Generates and updates README.md and API reference docs by reading your codebase's functions, routes, types, schemas, and architecture. Uses graphify to build a knowledge graph first, then writes accurate docs from it. Use when asked to write docs, generate a README, document an API, update stale docs, create an API reference from code, add an architecture section, or document a project in any language. Trigger when a user says their docs are missing, outdated, or wants to document their codebase without writing it manually.

Varnan-Tech/opendirectory

Evaluates expired domain candidates against a target niche, scores them by topical relevance, historical activity level, and history cleanliness, then outputs a ranked shortlist with explainable reasoning and risk flags.

Varnan-Tech/opendirectory

Brutally honest developer-experience audit for a GitHub repo. Scores 10 DX dimensions (time-to-first-success, README clarity, visual proof, install, quick-start, docs, examples, community, trust, marketing), writes a shareable roast in the requested tone (brutal/honest/kind), produces a prioritized action plan ranked by impact × effort, and sketches an ideal README. Trigger when user says "roast my repo", "audit my README", "dx audit", "developer experience review", "score my GitHub project", "before launch checklist", or "make my repo shareable".

Varnan-Tech/opendirectory

Drafts and designs a complete HTML email newsletter from a topic or content brief. Outputs paste-ready HTML for Loops, Mailchimp, Beehiiv, Resend, or any standard email platform. Includes subject line options and plain-text fallback. Trigger when a user says "write a newsletter", "draft an email newsletter", "create an HTML email", "design an email for my subscribers", or "write a newsletter about [topic]".

Varnan-Tech/opendirectory

Takes a GitHub PR URL or the current branch and writes a plain-English explanation of what it does and why, then posts it as a PR comment. Use when asked to explain a PR, summarize a pull request, write a plain-English description of a PR, add a summary comment to a PR, or understand what a PR changes. Trigger when a user says "explain this PR", "summarize this pull request", "what does this PR do", "add a comment explaining the PR", or shares a GitHub PR URL and asks what it does.

Varnan-Tech/opendirectory

Audit how often LLMs recommend your brand vs competitors and generate a GEO action plan.

Varnan-Tech/opendirectory

Takes a competitor's public GitHub repo URL, fetches their open issues via the GitHub REST API, filters noise locally, clusters issues into 6 demand categories, computes a demand score per issue and per cluster, and outputs a ranked demand gap report with a GTM messaging brief. Use when asked to scan a competitor's GitHub issues, find what their users are begging for, turn GitHub complaints into product positioning, identify competitor feature gaps, or generate messaging from real user demand. Trigger when a user says "scan competitor issues", "what are users asking for on X repo", "find demand gaps in Y", "turn GitHub issues into messaging", or "what should I build based on competitor complaints".

Varnan-Tech/opendirectory

Find recurring confusion in your repo's GitHub Discussions, rank it by urgency, and draft the actual docs fixes and content angles — with verbatim community quotes and source links as evidence.

Varnan-Tech/opendirectory

SEO keyword research workflow for blog generation using Google Trends data. Use when writing blog posts, planning content calendars, or optimizing articles for search engines. Finds breakout keywords, builds content structure, and generates SEO-optimized blog outlines targeting tech and developer audiences.

Varnan-Tech/opendirectory

Generates a professionally designed case study PDF for B2B SaaS sales and marketing. Supports 7 page layouts, 9 style presets, 1-4 page output. Trigger when user says "create a case study", "write a customer story", "make a case study PDF", "design a success story", "turn this customer win into a PDF".

Varnan-Tech/opendirectory

Creates professionally designed B2B SaaS e-books in HTML + CSS, exported as print-ready PDF. 3–10 pages, 9 style presets, 11 page layout types. Trigger when user says "create an ebook", "design a lead magnet", "make a PDF guide", "build a gated content piece", "write a B2B ebook", "design a white paper", "create a nurture asset", or "make a PDF report".

Varnan-Tech/opendirectory

Fetches low-star App Store and Google Play reviews, clusters them into broken-promise patterns, and generates a ranked copy brief with positioning opportunities.

相關技能