| name | docs |
| description | Use when looking up reference documentation for installed tools, languages, libraries, or services, including Zed, Sublime Text, Sublime Merge, Ghostty, GitHub, Rust, rust-analyzer, Qdrant, and Acorn. Covers manpages, web-hosted and GitHub-hosted docs. |
Docs 👩⚕️
How to fetch documentation from different sources.
Manpages
Read local manpages with man. Set MANWIDTH for wider output and pipe through col -bx
to strip backspace overstrike.
MANWIDTH=100 man <page> | col -bx
Web Pages
Prefer WebFetch tool when available, it handles HTML-to-text conversion and follows redirects.
Otherwise fallback to curl. If needed, convert HTML to GitHub-flavored Markdown with pandoc.
curl -sL <url> | pandoc --from html --to gfm --wrap none
GitHub-Hosted Docs
Use gh api to browse files and directories in a remote repository without cloning it locally.
List single directory contents:
gh api repos/<owner>/<repo>/contents/<dir> --jq '.[].path'
Recursively scan the whole file tree:
gh api repos/<owner>/<repo>/git/trees/HEAD?recursive=1 \
--jq '.tree[] | select(.path | test("^docs/.*\\.mdx?$")) | .path'
Read a single file as raw content:
gh api repos/<owner>/<repo>/contents/<file> \
-H 'Accept: application/vnd.github.raw'
Or fetch raw URL directly. Raw URLs avoid base64 decoding and rate-limit weight of API calls.
curl -sL https://raw.githubusercontent.com/<owner>/<repo>/HEAD/<file>
Reference Links
Where to find documentation for specific tools, languages, and services.
Zed
Sublime Text
Sublime Merge
Ghostty
GitHub
Rust
rust-analyzer
Qdrant
Acorn