← 返回
未分类

商业版图分析skill

Generate an interactive treemap visualization for any topic. Given a theme, the skill searches for items, scores them via LLM, and produces a standalone dark-themed HTML treemap — similar to karpathy.ai/jobs.
用于分析不同行业的市场占有和商业版图
jackie 帅
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 83
下载
💾 0
安装
1
版本
#latest

概述

Topic Treemap Generator

Generate interactive, dark-themed squarified treemap visualizations for any topic — movies, sports, technologies, companies, anything with a measurable dimension. Given a theme and a scoring axis, the skill:

  1. Collects ~50–200 items via web search
  2. Scores each item using an LLM with a custom rubric
  3. Generates a standalone HTML file with hover tooltips, color gradients, and category grouping

Inspired by karpathy/jobs.

When to use

  • Exploring rankings/top-lists visually (e.g., "top 100 movies by box office")
  • Comparing items by a metric (e.g., "programming languages by GitHub stars")
  • Creating shareable interactive visualizations for reports, blogs, or presentations

Input you provide

When you invoke the skill, specify:

Topic: [what to visualize — e.g., "2024 highest-grossing films", "NBA players 2024"]
Scoring dimension: [what metric to color by — e.g., "popularity", "skill rating", "revenue", "difficulty"]
Category field: [optional — how to group tiles, e.g., "genre", "conference", "league"]

Minimum: just the topic. Everything else has smart defaults.

Output

A single .html file saved to your specified path, e.g. ~/treemap-movies.html. Open it in any browser — no server needed.


How the skill works internally

Step 1 — Data Collection

The skill uses web search to find structured lists for the topic. It collects:

  • name — item title
  • category — optional grouping field
  • value — numeric size (e.g., revenue, stars, rating)
  • description — short text for LLM scoring

Typical sources: Wikipedia lists, GitHub trending, Box Office Mojo, Steam charts, etc.

Step 2 — LLM Scoring

For each collected item, the skill sends the description to the LLM with a scoring rubric you define. The LLM returns:

{"score": 7.5, "rationale": "This film's massive budget and director prestige drove high box office returns."}

The scoring prompt is customizable per topic. Default rubric: normalized 0–10 scale.

Step 3 — HTML Generation

The final HTML contains:

  • Squarified treemap layout (same algorithm as karpathy/jobs)
  • Dark theme (#0a0a0f background)
  • Color gradient — green-to-red or custom, normalized per distribution
  • Hover tooltips — name, score, value, rationale
  • Category grouping — items grouped into parent rectangles by category
  • Responsive — fills container width, 4:3 aspect ratio

Example scoring rubrics

Popularity / Revenue

Rate overall popularity or commercial success on a scale of 0–10.
Consider: sales, views, downloads, box office, market presence.

Skill / Performance

Rate the skill level or performance rating on a scale of 0–10.
Consider: competitive rankings, expert assessments, objective metrics.

Difficulty / Complexity

Rate how difficult this is to master on a scale of 0–10.
Consider: learning curve, prerequisites, complexity of concepts.

Risk / Volatility

Rate the risk level on a scale of 0–10.
Consider: volatility, failure rate, market uncertainty.

Customization

To customize, edit these variables in the skill script:

VariableDescriptionDefault
--------------------------------
NUM_ITEMSHow many items to collect (capped at ~200)100
COLOR_LOWColor for low scores#1a5f2a (dark green)
COLOR_HIGHColor for high scores#c41e3a (crimson)
SCORE_PROMPTThe LLM scoring rubric(see above)

Generated HTML features

  • Squarified treemap — optimal rectangle aspect ratios, no wasted space
  • Category nesting — top-level rectangles grouped by category, items nested inside
  • Color modes — score-based coloring, with contrast-boosted gradient
  • Hover tooltips — score, value, category, LLM rationale
  • Canvas rendering — HiDPI/Retina support via devicePixelRatio
  • Zero dependencies — pure vanilla JS, single HTML file
  • Dark theme#0a0a0f background, white labels, subtle gaps

Files

topic-treemap/
├── SKILL.md           — This file
└── generate.py        — Optional: batch script for repeated generation

Tips

  • Topic specificity matters: "2024 movies" → broad. "2024 highest-grossing films worldwide" → specific and produces better data.
  • Scoring dimension: Choose something with a clear scale. "Goodness" is vague; "revenue" or "skill rating" works better.
  • Category grouping: If your topic has natural groups (genre, league, language), specify them — the treemap groups items hierarchically.
  • Data quality: If web search returns few results, try a more specific topic variant.

版本历史

共 1 个版本

  • v1.0.0 Initial release 当前
    2026-05-03 16:07 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Skill比赛参赛大师

user_268e6861
根据用户提供的比赛主题或方向,自动生成一份高获奖潜力的 AI 参赛 Skill 方案,并以结构化长图文形式输出。适用于 AI 蒸馏大赛、Agent 设计竞赛、Skill 创作比赛等场景。当用户提到"比赛""参赛""大赛""Skill 设计"
★ 0 📥 92

信息源分层检索器skill

user_268e6861
【一句话简介】 任何主题,5分钟建立完整信息体系——从权威学术报告到大众热搜,按传播层级智能搜遍全网优质信源。 【详细描述】 还在为"想了解一个行业,不知道从哪下手"而头疼? 网上信息太多太杂——有权威报告,有深度解读,有科普入门,也有
★ 0 📥 106

餐饮加盟分析skill

user_268e6861
餐饮品牌加盟分析专家。当用户询问"某某品牌加盟怎么样"、"帮我分析某某加盟"、"某某品牌能加盟吗"、"某某加盟靠谱吗"、"某某品牌加盟费用"、"加盟某某品牌需要多少钱"时触发。专门分析中国本土餐饮品牌(茶饮、简餐、快餐、正餐等)的加盟价值,
★ 0 📥 97