स्किल्स पर वापस
gh-extract
guoqiao द्वारा
Git & GitHub—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग
संक्षिप्त
Extract content from a GitHub url.
विवरण
यह स्किल क्या करती है
Extracts file content from GitHub URLs, including repos, trees, and blobs. Converts GitHub URLs to raw URLs and prints content to stdout or saves to a temp file. Only works with public repositories.
Avoids cloning an entire repo just to read one file from it.
इसे कब इस्तेमाल करें
- Quickly read a file from a GitHub repo without cloning
- Download a specific blob file to inspect locally
- Pull a README from a public repo for summarization
- Grab a script from GitHub to run or review
- Extract a config file from an open-source project
उदाहरण वर्कफ़्लो
इनपुट
User asks: /gh-extract https://github.com/user/repo/blob/main/script.py
एजेंट
- 1
Receives the GitHub blob URL
- 2
Converts it to the equivalent raw.githubusercontent.com URL
- 3
Fetches the file content from the raw URL
- 4
Prints the file content to stdout
आउटपुट
Full text content of script.py printed to the terminal
आवश्यकताएँ
- uv installed on the system
- wget installed on the system
इंस्टॉलेशन
clawhub install guoqiao/gh-extractCLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।