Text Parser for Openclaw

A specialized utility for extracting structured key-value pairs from plain text files to automate document processing and data mapping.

wu-uk
v0.1.0
Apr 15, 2026
0
681
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install edit-pdf-text-parser

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 edit-pdf-text-parser 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 Parser?

The Text Parser skill is a lightweight yet powerful utility designed to bridge the gap between unstructured human-readable text and structured data formats. It focuses on identifying and isolating key-value pairs from bulleted or plain lists, making it an essential tool for developers building automation pipelines. By incorporating this logic into your workflow, you can leverage Openclaw Skills to transform simple text inputs into reliable data objects that drive complex document generation tasks.

Text Parser Use Cases

  • Automatically extracting customer details from support tickets or emails to populate CRM fields.
  • Parsing user-provided data lists to fill out standardized PDF forms and contracts.
  • Converting unstructured meeting notes into clean JSON-ready data structures.
  • Standardizing bulleted text inputs into a uniform format for database ingestion.

How Text Parser Works

  1. The skill reads the content of a target text file containing structured or semi-structured data.
  2. It iterates through the text line by line, detecting key delimiters such as colons.
  3. A cleaning phase removes common formatting characters like dashes or bullet points from the start of the line.
  4. The text is split into a key and its corresponding value, which are then stripped of extra whitespace.
  5. The resulting key-value pairs are stored in a dictionary or object, ready to be mapped to PDF labels or other outputs.

Text Parser Setup

To utilize the Text Parser logic within your environment, ensure you have a standard Python runtime. This skill is part of the broader Openclaw Skills ecosystem and requires no heavy external dependencies.

# Example: Prepare an input file for the parser
echo "- Name: John Smith" > input.txt
echo "- Email: [email protected]" >> input.txt

# Run your parsing script to process the data
python parser.py

Text Parser Data Schema & Taxonomy

The Text Parser skill organizes data into a flattened key-value structure. Below is the mapping logic used to organize metadata:

Attribute Description Example
Key The identifier used for mapping (e.g., Field Name) Name
Value The actual data content to be extracted John Smith
Delimiter The character separating key and value :
Prefix Optional characters handled by the parser - or *

Text Parser Advanced Features

  • Smart Prefix Handling: Automatically recognizes and strips bullets or dashes from input lines.
  • Multi-Format Compatibility: Processes both bulleted lists and plain key-value text without configuration changes.
  • Direct PDF Integration: Specifically optimized to match extracted keys against labels in PDF form templates.
  • Error Resilience: Designed to ignore lines that do not conform to the key-value structure, preventing script crashes.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*