Clean Text Formatter for Openclaw

A specialized utility that strips Markdown syntax and normalizes whitespace to transform raw AI-generated content into clean, professional plain text.

zihaowyt5525-max
v1.0.0
Mar 30, 2026
0
800
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install clean-text-formatter

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install clean-text-formatter using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Clean Text Formatter?

The Clean Text Formatter is a high-performance utility within the Openclaw Skills library designed to bridge the gap between AI generation and professional publication. It systematically removes structural Markdown elements like headers, list markers, and blockquotes while meticulously preserving the core content. By targeting the specific artifacts left behind by LLMs, it ensures your text is ready for immediate use in professional documents or web environments.

Beyond simple stripping, this skill handles complex Unicode normalization and punctuation spacing. It fixes common AI formatting errors, such as awkward gaps between numbers and percentage signs or irregular spacing around parentheses. As part of the Openclaw Skills collection, it provides a reliable, regex-driven pipeline for developers and content creators who need clean, predictable text output without the manual overhead of search-and-replace.

Clean Text Formatter Use Cases

  • Cleaning AI-generated drafts for publication in emails, blogs, or reports.
  • Stripping Markdown syntax from content before importing into non-Markdown CMS editors.
  • Standardizing spacing for financial data (e.g., fixing 100 % to 100%).
  • Normalizing punctuation and quotes in translated or multi-language AI outputs.
  • Preparing raw agent responses for clean copy-pasting into spreadsheets or slide decks.

How Clean Text Formatter Works

  1. The skill receives raw text input via paste, file upload (including .md, .docx, or .html), or direct document access.
  2. It performs an initial scan to detect Markdown density and identify structural elements like headers and blockquotes.
  3. The engine executes a structural cleaning pass, removing markers for headers, lists, and horizontal rules while retaining the text content.
  4. It performs an inline formatting pass to convert links to text, strip emphasis markers (bold/italic), and remove footnotes.
  5. A final normalization pass is applied to fix whitespace around numbers, collapse multiple spaces, and correct punctuation spacing.
  6. The processed, clean plain text is returned to the user with an optional .txt file export.

Clean Text Formatter Setup

To integrate this utility within your local environment or Openclaw Skills workflow, ensure you have the necessary runtime environment.

# Ensure Python 3.8+ is installed
python --version

# Clone or download the clean-text-formatter skill
# No external dependencies are required as it uses native regex processing

Clean Text Formatter Data Schema & Taxonomy

The skill processes various input formats and converts them into a standardized text output.

Feature Details
Input Formats .txt, .md, .docx, .html, Plain Text
Preservation LaTeX math expressions ($$...$$ and $...$) are kept intact
Normalizations Double quotes ("), single quotes ('), and dashes (—, – to -)
Output Plain UTF-8 text or .txt file export

Clean Text Formatter Advanced Features

  • Intelligent Unicode normalization that handles full-width punctuation and varied dash types.
  • Advanced regex-based whitespace cleaning that targets currency symbols (¥, USD) and percentage signs.
  • Preservation of thousand-separator commas in numeric strings to maintain data integrity.
  • Automated line trimming to ensure no trailing or leading whitespace remains in the final document.
  • Support for multi-agent workflows where clean text is required as a hand-off between a generator and a publisher.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*