Parser for Openclaw

A high-performance utility for parsing and transforming JSON, CSV, XML, and log files into structured data.

ckchzh
v3.0.2
Mar 19, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install 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 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 Parser?

The parser skill provides a robust toolkit for developers to handle multiple data formats through a unified CLI. Designed to bridge the gap between raw data and actionable intelligence, this tool simplifies the process of validating structures, extracting specific fields, and analyzing nested data. As a key part of your Openclaw Skills collection, it automates the tedious aspects of data preparation and cleanup.

By leveraging familiar tools like jq and python3, the skill ensures high accuracy and performance across various operating systems. It is particularly useful for AI agents that need to process external data sources before performing more complex reasoning or coding tasks.

Parser Use Cases

  • Extracting specific configuration keys from deeply nested YAML or JSON files.
  • Transforming legacy CSV data into structured formats for database ingestion.
  • Searching and filtering large log files using pattern-based extraction.
  • Auditing file metadata and encoding statistics for data quality assurance.
  • Splitting unstructured text blobs into clean, delimited segments.

How Parser Works

  1. Select the appropriate command based on the input format (e.g., xml, json, or lines).
  2. Provide the target file or data stream as an input to the script.
  3. The tool utilizes internal logic or external dependencies like python3 to parse the structure.
  4. Apply optional filters, XPath queries, or regex patterns to narrow down the results.
  5. The parsed, structured output is displayed or stored in the local cache for further use.

Parser Setup

To get started with this component of Openclaw Skills, ensure python3 is available in your environment. For optimized JSON parsing, jq is highly recommended.

# Verify dependencies
python3 --version

# Basic usage for CSV extraction
scripts/script.sh csv data.csv

# Advanced JSON parsing with jq integration
scripts/script.sh json config.json

Parser Data Schema & Taxonomy

Component Location / Format Description
Cache Storage ~/.local/share/parser/ Persistent storage for parsed results and intermediate states.
Input Formats JSON, CSV, XML, YAML, Text Supports a wide variety of structured and unstructured file types.
Output Format CLI Output / Stdout Returns clean, parseable text or JSON objects ready for agent processing.

Parser Advanced Features

  • XPath integration for complex XML tree navigation and granular field extraction.
  • Regex-based text extraction for pulling specific data points from unstructured logs and documents.
  • Contextual line filtering that provides grep-like functionality with surrounding context support.
  • Automatic file encoding detection alongside comprehensive line, word, and character statistics.
  • Seamless integration capabilities with other Openclaw Skills to form complex automation pipelines.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*