Imported from yuval/dotfiles (
claude/skills/fetch-docs/SKILL.md). Install upstream withnpx skills add yuval/dotfiles --skill fetch-docs. Copyright stays with the author.
Fetch Documentation Skill
When you need to understand a library or API, work through this fallback chain. Stop as soon as you have what you need.
- Read installed source — check
.venv/lib/python3.*/site-packages/for method signatures and types. Fast, but won't have usage examples. - Try llms.txt — fetch
https://docs.libraryname.com/llms.txt(or the main domain). Use the URLs it returns to fetch specific doc pages. - Fetch doc pages directly — from llms.txt URLs or a web search. Also look for
openapi.jsonat the API root. - DeepWiki MCP — query the GitHub repo. If the repo isn't indexed, move on.
- Clone to /tmp —
git clone --depth 1to/tmp/repo-name, read what you need. Checkdocs/,examples/, and root*.mdfiles.
Don't give up after one failed approach. If you already know a docs URL, skip straight to it.