install
source · Clone the upstream repo
git clone https://github.com/GeorgeDoors888/GB-Power-Market-JJ
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/GeorgeDoors888/GB-Power-Market-JJ "$T" && mkdir -p ~/.claude/skills && cp -r "$T/openclaw-skills/skills/autogame-17/read-optimizer" ~/.claude/skills/georgedoors888-gb-power-market-jj-read-optimizer && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/GeorgeDoors888/GB-Power-Market-JJ "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/openclaw-skills/skills/autogame-17/read-optimizer" ~/.openclaw/skills/georgedoors888-gb-power-market-jj-read-optimizer && rm -rf "$T"
manifest:
openclaw-skills/skills/autogame-17/read-optimizer/SKILL.mdsource content
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.
node skills/read-optimizer/index.js --file <path> --mode smart --lines 100
Grep Read (Focus)
Reads lines matching a pattern (regex supported).
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).
node skills/read-optimizer/index.js --file <path> --mode diff
Options
: Path to the file.--file <path>
: Operation mode (default: smart).--mode <smart|grep|diff>
: Number of lines for head/tail (default: 50).--lines <number>
: Regex pattern for grep mode.--pattern <string>
: Context lines for grep (default: 2).--context <number>