스킬로 돌아가기
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 등 사용하는 코딩 에이전트에 붙여넣으세요.