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:
Inspired by karpathy/jobs.
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.
A single .html file saved to your specified path, e.g. ~/treemap-movies.html. Open it in any browser — no server needed.
The skill uses web search to find structured lists for the topic. It collects:
Typical sources: Wikipedia lists, GitHub trending, Box Office Mojo, Steam charts, etc.
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.
The final HTML contains:
#0a0a0f background)Rate overall popularity or commercial success on a scale of 0–10.
Consider: sales, views, downloads, box office, market presence.
Rate the skill level or performance rating on a scale of 0–10.
Consider: competitive rankings, expert assessments, objective metrics.
Rate how difficult this is to master on a scale of 0–10.
Consider: learning curve, prerequisites, complexity of concepts.
Rate the risk level on a scale of 0–10.
Consider: volatility, failure rate, market uncertainty.
To customize, edit these variables in the skill script:
| Variable | Description | Default |
|---|---|---|
| ---------- | ------------- | --------- |
NUM_ITEMS | How many items to collect (capped at ~200) | 100 |
COLOR_LOW | Color for low scores | #1a5f2a (dark green) |
COLOR_HIGH | Color for high scores | #c41e3a (crimson) |
SCORE_PROMPT | The LLM scoring rubric | (see above) |
devicePixelRatio#0a0a0f background, white labels, subtle gapstopic-treemap/
├── SKILL.md — This file
└── generate.py — Optional: batch script for repeated generation
共 1 个版本