text-cleaner
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "text-cleaner" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-97c30fee9a4220a3e36246163805a1ecd3b2869deed8639fb871d0598a4edc10. Verify the upstream source and version against https://skillhub.cn/skills/user_b06ad2b7/text-cleaner before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Text Data Cleaning Skill: Cleans HTML articles, web content, or raw scraped text collected by an agent by removing noise such as ads/watermarks/navigation, eliminating semantically duplicated paragraphs, normalizing formatting and handling bilingual cases (foreign language translation or mixed Chinese-English annotations). Produces condensed, standardized knowledge text suitable for storage. Example triggers: clean text, purify content, text denoising, remove ads, organize article, data cleaning, knowledge cleaning, text cleanup.
Introduction source: third_party · user_b06ad2b7 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: text-cleaner
description: |
文本数据清洗技能。当 agent 收集了 HTML 文章、网页内容或原始抓取的文本素材时,使用此 skill 对其进行净化处理,
包括:删除广告/水文/导航栏等噪声内容、去除语义重复段落、统一格式结构、处理双语(外文翻译或中英混合标注)。
最终输出精简、标准化的知识文本,便于存入知识库供人或 agent 使用。
触发词:清洗文本、净化内容、文本去噪、去广告、整理文章、数据清洗、knowledge cleaning、text cleanup。
agent_created: truetext-cleaner — 文本数据清洗技能
适用场景
在以下情况下调用本技能:
- 抓取了网页/公众号/HTML 文章,需要剔除噪声、提取核心知识
- 收集的原始素材包含大量广告、推广、自我介绍、重复段落
- 需要将杂乱素材整理成标准格式以存入知识库
- 需要对外文内容生成中文译文,或规范化中英混合文本
清洗流程(按顺序执行)
第一步:内容净化(去噪)
识别并删除以下类型的噪声内容:
- 广告与推广:商品推广、付费推广、品牌植入、"点击购买"、"限时优惠"等
- 平台固定元素:导航栏、页眉页脚、面包屑、侧边栏、"相关推荐"、"猜你喜欢"
- 作者自我介绍:重复出现的作者简介、公众号介绍、订阅引导(如"关注我获取更多...")
- 互动引导语:点赞、转发、评论召唤、打赏引导
- 版权/免责声明(非核心内容时)
- 元数据垃圾:阅读数、点赞数、日期标签等非正文信息
保留:核心知识、观点、方法论、数据、案例、论点论据。
第二步:去重
- 识别语义高度重复的段落(逐字重复或换了说法但表达完全相同的内容)
- 合并重复内容,保留最完整、最清晰的一份
- 删除文章开头/结尾处与正文重复的段落摘要
第三步:格式统一
- 将所有文本整理为连贯的段落结构,确保语句通顺
- 标准化列表(使用统一的
-或1.格式) - 标准化标题层级(使用
##/###的 Markdown 格式) - 删除多余空行(正文段落之间保留单行空行)
- 去除 HTML 标签残留(
<br>、 、<div>等)
第四步:双语处理
根据原文语言情况分两种处理方式:
情况 A:原文为纯外文(英文/日文/等)
- 生成对应中文翻译
- 以如下格式并列呈现:
【原文】
... 原始外文内容 ...
【译文】
... 对应中文翻译 ...
情况 B:原文为中英混合
- 确保中文表述流畅自然
- 关键术语在首次出现时以
英文 (中文)或中文 (英文)形式标注 - 后续出现直接使用中文,不重复标注
输出格式
输出两部分内容:
1. 清洗后的正文
直接输出净化、去重、格式统一后的文本内容(Markdown 格式)。
2. 清洗摘要
在正文之后,用简洁的小节说明处理结果:
---
**清洗摘要**
- 原始字数:约 X 字
- 处理后字数:约 X 字
- 压缩比:约 X%
- 主要删减内容:[广告推广 / 作者介绍 / 重复段落 / 导航元素 / 其他]
- 格式变更:[标题规范化 / 列表统一 / 去除 HTML 残留 / 其他]
- 双语处理:[无 / 外文已翻译 / 中英混合已规范]
注意事项
- 清洗时保持原文语义和观点不变,不增添、不改写、不总结,只净化和规范
- 如遇到"边界模糊"的内容(如略带推广性质的案例),优先保留,不过度删减
- 若原文结构非常混乱(完全无法识别核心内容),在摘要中说明,并尽力提取可用片段
- 处理长文时(>5000 字),分段处理后合并输出
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决网页抓取后文本净化、去噪、去重、格式统一、双语处理等明确痛点
- 适用于知识库建设、内容整理等高频刚需场景,具备高实用价值
Highlights
- 触发词覆盖全面(清洗文本、净化内容、文本去噪、去广告、整理文章、data cleaning 等)
- 边界清晰,无明显歧义或重叠
Areas to improve
-
缺少 When to Use 显式章节名 Reported severity: Minor
适用场景内容实质存在,但未使用标准章节名 "When to Use"
Recommendation: 建议将 "适用场景" 改为 "When to Use" 以符合平台规范
-
文档略长 Reported severity: Minor
主文档内容较为详尽,接近但未超过 500 行限制
Recommendation: 可考虑将部分详细说明移至独立文档或折叠展示以提升可读性
Highlights
- Phase 划分清晰(四步流程),每步有明确操作说明
- 包含输出格式与清洗摘要示例,frontmatter 完整
Highlights
- 流程逻辑完整,涵盖主要异常处理说明(如边界模糊内容优先保留、结构混乱时尽力提取)
- 双语处理规则明确,无不可逆操作风险
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.