Skip to content
Automation
Skill

/txt2wordcloud

根据文本文件生成词云图片,支持自定义背景色。当用户提到词云、生成词云、文字云、词频可视化时使用。

BOOST
From plugin
python-office
1.4k74 skills
Install
$ npx -y skills add coderwanfeng/python-office --skill txt2wordcloud --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/txt2wordcloud

Context preview

The summary Claude sees to decide when to auto-load this skill.

根据文本文件生成词云图片,支持自定义背景色。当用户提到词云、生成词云、文字云、词频可视化时使用。

SKILL.md

txt2wordcloud.SKILL.md
name: txt2wordcloud
description: 根据文本文件生成词云图片,支持自定义背景色。当用户提到词云、生成词云、文字云、词频可视化时使用。

txt2wordcloud Skill

> 根据指定的文本文件生成词云图像

功能描述

根据指定的文本文件内容,生成词云图片。

所属分类

`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`

Ships withpython-office

pip install python-office 自动化办公专用库

Get the whole plugin
Stats
1,358
Stars
303
Forks
Maintained
Maintenance
Python
Language
Apache-2.0
License
1mo ago
Last commit
4y ago
Created
1d ago
Added

Repo: coderwanfeng/python-office

Other skills on python-office.