text_clean · git:20261114.61d7231 · 2026-11-14 · sha256 9242c0d23952e64e
text_clean git:20261114.61d7231A
Immutable. This exact content never changes and is served at /api/v1/blob/9242c0d23952e64e.
No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_jmupctfcmkyca4nc/9242c0d23952e64e289229db80ca328c751eef0056ccb9655206c93aa125259c.json
Then /plugin install text_clean@markdownregistry-jmupctfcmkyca4nc in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.
--- name: text_clean description: 清洗用户文本——去除多余空白、HTML 标签、控制字符,归一化全角标点,并支持大小写归一化与模式替换。 --- # 文本清洗技能 ## 适用场景 处理爬虫或表单输入中的脏文本:多余空白、嵌入式 HTML、不可见控制字符、混用的大小写与需替换的噪声片段。 ## 用法 1. 去掉 HTML 标签(<[^>]+>)。 2. 折叠连续空白为单空格。 3. 删除控制字符(\x00-\x1f 除换行)。 4. 归一化全角标点(,。!? 保持即可)。 5. 大小写归一化:按需统一为大写或小写(如全部转小写便于后续匹配)。 6. 替换:用正则或字面量替换噪声片段(如去掉多余引号、统一分隔符)。 ## 示例 输入 "<p>Hello WORLD</p>\n" -> 先去标签、折叠空白得 "Hello WORLD",再大小写归一化为 "hello world",并用替换清理多余引号。