Text Cleaner Lite for Openclaw

A streamlined utility for normalizing whitespace, removing redundant blank lines, and trimming raw text inputs.

askjda
v1.0.0
Apr 8, 2026
0
566
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install text-cleaner-lite

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 text-cleaner-lite 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 Text Cleaner Lite?

Text Cleaner Lite is a specialized utility designed to improve data quality for developers and AI agents working with unstructured text. As part of the Openclaw Skills library, this tool provides a reliable way to sanitize inputs by collapsing multiple spaces, stripping trailing or leading whitespace, and managing line breaks. It is particularly effective at preparing raw content for downstream LLM processing, where unnecessary whitespace can consume valuable tokens and degrade performance.

Text Cleaner Lite Use Cases

  • Preprocessing web-scraped content to remove inconsistent formatting before analysis.
  • Cleaning up user-submitted text in forms or chat interfaces.
  • Normalizing log files or code documentation for better readability.
  • Preparing high-quality datasets for training or fine-tuning models using Openclaw Skills.

How Text Cleaner Lite Works

  1. The skill receives a raw text string and an optional boolean parameter to control newline behavior.
  2. It applies normalization logic to collapse multiple consecutive spaces into a single space.
  3. Leading and trailing whitespace is trimmed from the start and end of the string.
  4. If configured, duplicate blank lines are removed to compress the vertical footprint of the text.
  5. The cleaned, high-density text is returned as the final output for use in other Openclaw Skills or applications.

Text Cleaner Lite Setup

To get started with this utility from the Openclaw Skills collection, ensure you have the environment configured for script execution. Use the following command to process text files via the CLI:

python main.py --input sample.txt --mode clean

For programmatic use, ensure the raw_text variable is passed into the function call.

Text Cleaner Lite Data Schema & Taxonomy

The skill utilizes a simple but effective input/output schema to ensure compatibility across different workflows.

Field Type Description
raw_text String The input text requiring normalization.
keep_newlines Boolean Optional. If true, preserves existing line breaks while cleaning horizontal space.
cleaned_text String The resulting output after normalization and trimming processes.

Text Cleaner Lite Advanced Features

  • Smart whitespace collapsing that preserves semantic meaning while reducing character count.
  • Optional newline preservation to maintain document structure in processed outputs.
  • L1 Risk Level certification, making it safe for automated production environments.
  • Lightweight architecture optimized for high-speed processing within larger Openclaw Skills pipelines.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*