用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CoderWanFeng/python-office --skill txt2wordcloud命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | txt2wordcloud |
| description | 根据文本文件生成词云图片,支持自定义背景色。当用户提到词云、生成词云、文字云、词频可视化时使用。 |
根据指定的文本文件生成词云图像
根据指定的文本文件内容,生成词云图片。
office/skills/image/txt2wordcloud/
from skills.image import txt2wordcloud
txt2wordcloud(
filename='./text.txt',
color='white',
result_file='wordcloud.png'
)
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
filename | str | 是 | - | 文本文件的路径 |
color | str | 否 | "white" | 词云的背景颜色 |
result_file | str | 否 | "your_wordcloud.png" | 生成的词云图像文件名 |
None
from skills.image import txt2wordcloud
txt2wordcloud(filename='./article.txt', result_file='./my_wordcloud.png')
office.api.image.txt2wordcloud