कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

read-optimizer

autogame-17 द्वारा

Git & GitHub
544clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Optimizes file reading operations by providing smarter read strategies (head/tail/grep/diff) to reduce token usage.

विवरण

यह स्किल क्या करती है

Provides smarter file reading strategies using head/tail, grep, and git diff to inspect large files without loading their full contents. Reduces token usage and latency when working with logs, large documents, or recently changed files.

Reading only the relevant portion of a file instead of its full contents cuts token consumption and speeds up inspection when files are too large to load whole.

इसे कब इस्तेमाल करें

  • Scanning a large log file for error and exception lines
  • Reviewing only lines changed since the last git commit
  • Extracting config values matching a specific pattern
  • Previewing the start and end of a large data export
  • Narrowing down stack traces in lengthy application output

उदाहरण वर्कफ़्लो

इनपुट

User asks: find all error and exception lines in /var/log/app.log

एजेंट
  1. 1

    Identify the target file path from the user request

  2. 2

    Run grep mode with pattern "error|exception"

  3. 3

    Apply 2-line context around each match

  4. 4

    Return the filtered lines to the user

आउटपुट

A list of lines containing 'error' or 'exception' with surrounding context

इंस्टॉलेशन

clawhub install autogame-17/read-optimizer

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक