Install
openclaw skills install @indigas/text-scanQuickly find and score relevant lines with context in large text files using keyword and phrase matching to minimize reading entire files.
openclaw skills install @indigas/text-scanSearch for relevant information in text files without reading the entire file. Returns matching lines with context, scored by relevance. Useful for quickly finding specific information in large files.
The script uses token-based matching with scoring:
# Basic search
python3 <skill_dir>/scripts/text-scan.py <file> --query "<search terms>"
# Brief format (line number + content)
python3 <skill_dir>/scripts/text-scan.py <file> --query "<search terms>" --brief
# JSON output (for programmatic use)
python3 <skill_dir>/scripts/text-scan.py <file> --query "<search terms>" --json
# Custom context window
python3 <skill_dir>/scripts/text-scan.py <file> --query "<search terms>" --before 3 --lines 5
# From stdin
cat <file> | python3 <skill_dir>/scripts/text-scan.py --query "<search terms>"
# Find the runway in STATE.md
python3 <skill_dir>/scripts/text-scan.py /home/marek/.openclaw/workspace/STATE.md --query "runway"
# Find today's work hours
python3 <skill_dir>/scripts/text-scan.py /home/marek/.openclaw/workspace/STATE.md --query "today work hours"
# Find all log entries about a topic
python3 <skill_dir>/scripts/text-scan.py /home/marek/.openclaw/workspace/LOG.md --query "weather"
| Parameter | Description | Default |
|---|---|---|
--query, -q | Search query (keywords) | required |
--lines, -a | Lines after each match | 5 |
--before, -b | Lines before each match | 2 |
--max-results, -n | Maximum results to return | 5 |
--json | JSON output format | false |
--brief | Brief format only | false |
--fuzzy | Enable fuzzy matching | false |
--output, -o | Write results to file | stdout |
This skill integrates with the standard read tool workflow:
text-scan to quickly find relevant lines in a fileread to load the full file context--brief flag is fastest for quick scans--json output is useful for scripting/automationfind to scan multiple files: find . -name "*.md" | xargs ...