cn-join-lines for Openclaw

A lightweight Python utility designed to merge multi-line text blocks into a single line using custom separators.

freedompixels
v1.0.2
Jun 7, 2026
0
916
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install cn-join-lines

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 cn-join-lines 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 cn-join-lines?

The cn-join-lines tool is a developer-focused utility built to streamline text processing pipelines. It efficiently takes multi-line text strings and consolidates them into a continuous single line, giving developers precise control over data formatting. By default, it operates using pure Python standard libraries, removing unnecessary bulk or third-party dependencies from your system environment.

Integrating this tool with Openclaw Skills workflows empowers automated agents to normalize messy text files, sanitize prompt inputs, or prepare clean logs for processing. The utility ensures that multi-line data structures can be safely flattened without breaking formatting constraints, bridging the gap between raw data dumps and clean text strings.

cn-join-lines Use Cases

  • Preparing long, multi-line prompts or blocks of text into a compact, single-line format before sending requests to external models.
  • Sanitizing logs and structured multi-line text records into unified single-line entries for easier parsing.
  • Flattening multi-line data arrays or configuration exports using custom delimiters like commas or semicolons.

How cn-join-lines Works

  1. The utility accepts raw text arguments containing explicit newline indicators like \n through a CLI option.
  2. It optionally parses a user-defined delimiter specified via the --separator argument.
  3. It executes string formatting logic using standard library methods to join the rows.
  4. The processed single-line output is printed directly to the system console for downstream utilization.

cn-join-lines Setup

Prerequisites

  • Python 3.x installed
  • An operational environment configured for Openclaw Skills

Installation & Run

Clone or place the join_lines.py script into your project structure, then execute it directly from your terminal:

# Basic line merging using default settings
python3 scripts/join_lines.py --text "第一行\n第二行\n第三行"

# Advanced line merging utilizing a custom comma separator
python3 scripts/join_lines.py --text "第一行\n第二行" --separator ","

cn-join-lines Data Schema & Taxonomy

The utility requires no databases or external configuration files to maintain execution state. Inputs and outputs are strictly string-based as defined below:

Argument Type Required Description
--text String Yes The raw multi-line string block containing line breaks to be joined.
--separator String No The target character or sequence used to concatenate lines together. Defaults to an empty space.

cn-join-lines Advanced Features

  • Zero external dependencies, leveraging pure Python standard library capabilities for lightning-fast execution within Openclaw Skills runtimes.
  • Dynamic separator modification, supporting standard or custom delimiters such as commas, tabs, dashes, or empty strings.
  • Cross-platform terminal compatibility, making it universally callable across different development environments and AI automation hooks.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*