← 返回 Skills 市场
zihaowyt5525-max

Clean Text Formatter

作者 zihaowyt5525-max · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
131
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install clean-text-formatter
功能描述
Removes Markdown formatting and excess whitespace from text to produce clean, publication-ready plain text with normalized punctuation and spacing.
使用说明 (SKILL.md)

Clean Text Formatter

Name

clean-text-formatter

Description

Removes Markdown formatting characters and excessive whitespace from AI-generated text. Produces clean, publication-ready plain text.

Capabilities

1. Markdown Stripping

Strips the following while preserving content:

  • Headers: #, ##, ### (removes markers, keeps text)
  • Bold/italic markers: **, __, *, _ (removes markers, keeps text)
  • Links: [text](url) → keeps text
  • Images: ![alt](url) → keeps alt
  • Blockquotes: > lines (removed)
  • Code blocks: backticks removed, code content preserved
  • List markers: -, *, 1. (removed, list content preserved)
  • Horizontal rules: ---, *** (removed)
  • Footnotes: [^1] (removed)

2. Whitespace Cleaning Around Numbers

Fixes common AI spacing issues:

  • 100 %100%
  • ¥ 100¥100
  • USD 50USD 50 (currency symbols kept with numbers)
  • Numbers with leading/trailing spaces trimmed
  • Thousand separators , preserved: 1,000,000

3. Punctuation Spacing

  • Removes spaces before punctuation:
  • Removes spaces inside parentheses: ( 文本 )(文本)
  • Normalizes multiple spaces to single space
  • Trim leading/trailing whitespace from each line

4. Unicode Normalization

  • Normalizes quotes: "text""text", 'text''text'
  • Normalizes dashes: -

Triggers

  • User pastes text and asks to "clean" or "remove Markdown"
  • User shares AI-generated content and asks to "format for publication"
  • Any content containing visible Markdown syntax

Workflow

  1. Receive raw text input (paste, file upload, or document content)
  2. Detect content type and Markdown density
  3. Apply cleaning rules in order: a. Structural (headers, lists, blockquotes) b. Inline formatting (links, images, emphasis) c. Whitespace normalization d. Punctuation spacing fix
  4. Return clean text + optional export

Input

  • Plain text paste
  • .txt, .md, .docx, .html files
  • Direct document content

Output

  • Clean plain text (ready to copy/paste)
  • Optional: .txt file export

Limitations

  • Does not preserve Markdown intended for re-use (strips permanently)
  • Complex nested formatting may require manual review
  • LaTeX math expressions: $$...$$ and $...$ are preserved

Dependencies

  • Python 3.8+ (for regex processing)
  • No external packages required
安全使用建议
This skill appears coherent and low-risk: it only describes how to remove Markdown and normalize spacing/punctuation and requests no credentials. Things to consider before installing: (1) If you plan to feed sensitive documents (especially .docx/.html), check how your platform handles file uploads — the skill's instructions don't state where processing occurs, so uploaded content could be exposed to the agent runtime or any external service the runtime uses. (2) The SKILL.md claims support for .docx/.html but does not list any parsing libraries; expect the agent or platform to handle file extraction or for the skill to request the user paste plain text. (3) Stripping is permanent — if you need Markdown preserved for reuse, do not use this skill. If these points are acceptable, the skill is internally consistent with its stated purpose.
功能分析
Type: OpenClaw Skill Name: clean-text-formatter Version: 1.0.0 The skill bundle describes a text processing utility for stripping Markdown formatting and normalizing whitespace. The instructions in SKILL.md are strictly functional, aligned with the stated purpose, and contain no evidence of malicious intent, data exfiltration, or prompt injection attacks.
能力评估
Purpose & Capability
Name and description (strip Markdown, normalize spacing/punctuation) match the runtime instructions and declared dependencies. The listed dependency (Python 3.8+) is reasonable for regex-based text processing.
Instruction Scope
SKILL.md stays focused on text cleaning and lists accepted inputs (.txt, .md, .docx, .html). Minor gap: it does not describe how .docx/.html parsing would be performed (no external parser packages are declared), so an implementation would need either platform-provided file handling or additional libraries.
Install Mechanism
No install spec and no code files — the skill is instruction-only, which minimizes disk/write risk.
Credentials
No environment variables, credentials, or config paths are requested; requested access is proportional to the stated task.
Persistence & Privilege
always:false and no attempts to modify other skills or system config. Autonomous invocation is allowed by platform default but not combined with elevated privileges here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clean-text-formatter
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clean-text-formatter 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Clean Text Formatter. - Removes Markdown formatting (headers, emphasis, links, images, blockquotes, code, lists, horizontal rules, footnotes) while preserving text content. - Cleans up whitespace around numbers, punctuation, and parentheses for publication-ready output. - Normalizes Unicode characters such as quotes and dashes. - Accepts text via paste, file upload (`.txt`, `.md`, `.docx`, `.html`), or document content. - Returns clean plain text ready for copy/paste or export as `.txt`. - Designed for AI-generated content; does not preserve Markdown for reuse.
元数据
Slug clean-text-formatter
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Clean Text Formatter 是什么?

Removes Markdown formatting and excess whitespace from text to produce clean, publication-ready plain text with normalized punctuation and spacing. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 131 次。

如何安装 Clean Text Formatter?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clean-text-formatter」即可一键安装,无需额外配置。

Clean Text Formatter 是免费的吗?

是的,Clean Text Formatter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Clean Text Formatter 支持哪些平台?

Clean Text Formatter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Clean Text Formatter?

由 zihaowyt5525-max(@zihaowyt5525-max)开发并维护,当前版本 v1.0.0。

💬 留言讨论