Xpersona
R

Read Optimizer

CLAWHUB · Unverified

Optimizes file reading by smartly extracting head/tail lines, matching patterns, or showing git diffs to minimize token use and latency. Skill: Read Optimizer Owner: autogame-17 Summary: Optimizes file reading by smartly extracting head/tail lines, matching patterns, or showing git diffs to minimize token use and latency. Tags: latest:1.0.0 Version history: v1.0.0 | 2026-02-17T15:06:12.723Z | user batch sync Archive index: Archive v1.0.0: 4 files, 2535 bytes Files: index.js (3382b), package.json (397b), SKILL.md (1133b), _meta.json (133b) File v1.0.0:

62
Rank
84
Safety
1.6k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.6K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s174qjf2384d46r16zkn04qam183hbm3:read-optimizer
  1. Node.js workspace detected. Install dependencies securely: run `npm ci --ignore-scripts` to prevent post-install lifecycle triggers from running arbitrary code, then selectively audit the dependency tree.
  2. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-autogame-17-read-optimizer/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

2,155 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

# SKILL: Read Optimizer (read-optimizer)

## Description
Optimizes file reading operations by providing smarter read strategies (head/tail/grep/diff) to reduce token usage and latency. Use this when you need to inspect large files efficiently without dumping the entire content.

## Usage

### Smart Read (Head + Tail)
Reads the first N lines and the last N lines of a file. Good for logs or large docs.
```bash
node skills/read-optimizer/index.js --file <path> --mode smart --lines 100
```

### Grep Read (Focus)
Reads lines matching a pattern (regex supported).
```bash
node skills/read-optimizer/index.js --file <path> --mode grep --pattern "error|exception"
```

### Diff Read (Changes)
Reads only the lines changed since the last git commit (if in a git repo).
```bash
node skills/read-optimizer/index.js --file <path> --mode diff
```

## Options
- `--file <path>`: Path to the file.
- `--mode <smart|grep|diff>`: Operation mode (default: smart).
- `--lines <number>`: Number of lines for head/tail (default: 50).
- `--pattern <string>`: Regex pattern for grep mode.
- `--context <number>`: Context lines for grep (default: 2).

_meta.json

{
  "ownerId": "kn7apafdj4thknczrgxdzfd2v1808svf",
  "slug": "read-optimizer",
  "version": "1.0.0",
  "publishedAt": 1771340772723
}

package.json

{
  "name": "read-optimizer",
  "version": "1.0.0",
  "description": "Smart file reading utility (head/tail, grep, diff) to optimize token usage.",
  "main": "index.js",
  "scripts": {
    "test": "node index.js --file SKILL.md --mode smart --lines 10"
  },
  "dependencies": {},
  "keywords": [
    "read",
    "optimize",
    "grep",
    "diff"
  ],
  "author": "OpenClaw",
  "license": "MIT"
}

Sponsored

Ads related to Read Optimizer and adjacent AI workflows.