🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

text-scan

by @indigas

Quickly find and score relevant lines with context in large text files using keyword and phrase matching to minimize reading entire files.

Versionv1.0.0
⚑ When to Use
TriggerAction
- You want to scan multiple files for relevant content before deciding which to read fully
- Marek wants you to extract specific lines from large files
- You're doing research and need to quickly scan through notes, logs, or documents
- The file is very large and reading it entirely would waste tokens/time
πŸ’‘ Examples

# Find the runway in STATE.md
python3 /scripts/text-scan.py /home/marek/.openclaw/workspace/STATE.md --query "runway"

Find today's work hours

python3 /scripts/text-scan.py /home/marek/.openclaw/workspace/STATE.md --query "today work hours"

Find all log entries about a topic

python3 /scripts/text-scan.py /home/marek/.openclaw/workspace/LOG.md --query "weather"

πŸ“‹ Tips & Best Practices

  • Use shorter queries for broader matches, longer phrases for precision
  • The --brief flag is fastest for quick scans
  • --json output is useful for scripting/automation
  • Combine with find to scan multiple files: find . -name "*.md" | xargs ...
  • Score 3+ matches are usually high-confidence β€” worth reading in full
  • View on ClawHub
    TERMINAL
    clawhub install text-scan

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’