generate-word-clouds
Generate one or multiple weighted keyword word-cloud PNG images with confirmed brand colors, Top N selection, transparent or colored backgrounds, compact…
Skill by Lucas-Fong
Chalk Labs
Need help deploying generate-word-clouds?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/lucas-fong-generate-word-clouds
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, spreadsheets, design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/generate-word-clouds
What's inside
- Skill name
generate-word-clouds- Description
- Generate one or multiple weighted keyword word-cloud PNG images with confirmed brand colors, Top N selection, transparent or colored backgrounds, compact margins, horizontal text, and selectable shapes. Use when the user asks to create 词云、关键词云、品牌词云 or batch word clouds from Excel, CSV, JSON, tables, or pasted keyword lists; supports up to 10 lists per run.
- License
- MIT
- Instructions
- 87 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (6)
- SKILL.md
- openai.yaml · agents/
- brand_palettes.json · references/
- confirmation.md · references/
- extract_xlsx.py · scripts/
- generate_word_clouds.mjs · scripts/
SKILL.md (first lines)
# 品牌词云生成
将关键词及权重生成紧凑、可复用的 PNG 词云。默认输出横排文字、透明背景、椭圆形和四周 20px 边距。
## 工作流
1. 读取关键词数据并识别每个列表的名称、关键词列和权重列。Excel 优先运行 `scripts/extract_xlsx.py`,不要临时编写转换脚本或用重量级工作簿渲染工具读取。
2. 最多接受 10 个列表;超过时请用户拆分批次。
3. 查询尚未缓存的品牌配色后,一次性确认最终配置:
```text
请确认词云配置:
- 配色:品牌名、候选官方色值及来源 / 用户指定色值
- 关键词数量:Top 50
- 底色:透明
- 形状:椭圆
- 输出列表:列表名称(共 N 个)
```
若用户已明确其中部分配置,只确认尚未明确的项目并展示最终汇总。每个任务最多请求一次配置确认;用户明确说“按默认”“直接生成”或“无需确认”时可直接执行。
4. 配色为品牌名时,先查 `references/brand_palettes.json`。存在已核验记录时直接复用并展示来源;没有记录时才联网查询品牌官网、官方品牌手册或官方媒体资料,只采用官方来源。将新结果写入缓存,记录来源、提取依据、日期和 3–6 个十六进制色值。若官方色值无法可靠取得,说明情况并请用户提供颜色;不得把第三方取色结果声称为官方配色。
5. 按权重降序取 Top N。默认值:
- Top N:50
- 底色:透明
- 形状:椭圆
- 边距:20px
- 文字方向:全部从左到右水平排列
6. Excel 输入先运行快速提取器,再运行生成器:
```bash
python scripts/extract_xlsx.py input.xlsx config.json --top-n 50 \
--palette-file references/brand_palettes.json
node scripts/generate_word_clouds.mjs config.json output-directory
```
提取器同时接受 `{列表名: [色值...]}` 映射或 `brand_palettes.json` 的缓存格式。作为 `html-report` 插件内置 skill 使用时,若依赖缺失,先在插件根目录运行 `node scripts/bootstrap_html_report_deps.mjs`,让 `sharp` 和 `openpyxl` 可用。CSV、JSON 或粘贴数据可直接整理成生成器配置。
7. 用一个批次检查所有输出,不为每张图重复启动检查流程:
- 文件为 PNG,透明底时必须含 Alpha 通道。
- 所有词均为水平文字。
- 实际内容与画布四边均为 20px;非透明底以背景画布边界为准。
- 输出词数等于 `min(Top N, 有效关键词数)`。
- 中文无乱码、文字无重叠、主要关键词层级清楚。
8. 向用户展示预览、下载链接、实际输出词数和品牌配色来源。
## 输入整理
脚本配置格式:
```json
{
"margin": 20,
"lists": [
{
"name": "品牌A",
"topN": 50,
"background": "transparent",
"shape": "ellipse",
"palette": ["#7A1F2B", "#C68A1D", "#E1B84B"],
"words": [
{"text": "关键词", "weight": 100}
]
}
]
}
```
支持的 `shape`:`ellipse`、`circle`、`rectangle`、`diamond`。支持的 `background`:`transparent` 或 `#RRGGBB`。同一关键词重复出现时先合并权重;删除空关键词和非正数权重。
## 排版原则
- 保持全部文字水平,不允许旋转。
- 字号采用对数缩放,避免头部词过度挤压尾部词。
- 优先保证 Top N 全部出现;必要时缩小整体字号后重排。
- 颜色按调色板循环使用,同时避免最大关键词全部使用同一颜色。
- 透明背景只包含词云,不添加标题、来源、边框或装饰。
- 文件名使用安全化后的列表名称加 `_TOP{N}_词云.png`。
## 资源
- `scripts/generate_word_clouds.mjs`:确定性批量词云生成器。
- `scripts/extract_xlsx.py`:快速识别 Excel 工作表、关键词列和权重列并生成配置。
- `references/confirmation.md`:确认话术和品牌配色来源规则。
- `references/brand_palettes.json`:已核验的官方素材配色缓存;命中时避免重复联网取色。From Lucas-Fong/html-report-stable-base, MIT.
More from Lucas-Fong/html-report-stable-base
- 0.563score
echarts-charts
Lucas-Fong
Create interactive Apache ECharts charts and dashboard-ready HTML from Excel, CSV, JSON, tables, or pasted data.
SkillBFreshness: B★ 2Claude Code +9 - 0.563score
html-report-stable-base
Lucas-Fong
Use when supplied content or an existing HTML report needs a stable editable browser shell in either long-screen single-page mode or 16:9 PPT mode, including…
SkillBFreshness: B★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Aug 27, 2026 (2 months ago)
- Last release
- Jul 27, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Lucas-Fong
- 0.563score
echarts-charts
Lucas-Fong
Create interactive Apache ECharts charts and dashboard-ready HTML from Excel, CSV, JSON, tables, or pasted data.
SkillBFreshness: B★ 2Claude Code +9 - 0.563score
html-report-stable-base
Lucas-Fong
Use when supplied content or an existing HTML report needs a stable editable browser shell in either long-screen single-page mode or 16:9 PPT mode, including…
SkillBFreshness: B★ 2Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get generate-word-clouds running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
generate-word-clouds skill. Agent Mart. https://agentmart.dev/skills/lucas-fong-generate-word-clouds (last updated 2026-10-24)