Loading...
Loading...
Fetches official documentation for external libraries and frameworks (React, Next.js, Prisma, FastAPI, Express, Tailwind, MongoDB, etc.) with 60-90% token savings via content-type filtering. Use this skill when implementing features using library APIs, debugging library-specific errors, troubleshooting configuration issues, installing or setting up frameworks, integrating third-party packages, upgrading between library versions, or looking up correct API patterns and best practices. Triggers automatically during coding work - fetch docs before writing library code to get correct patterns, not after guessing wrong.
npx skill4agent add panaversity/claude-code-skills-lab fetch-library-docs| Context | Detection Signal | Content Type |
|---|---|---|
| Implementing | About to write code using library API | |
| Debugging | Error contains library name (e.g., | |
| Installing | Adding new package, | |
| Integrating | Connecting libraries ("use X with Y") | |
| Upgrading | Version migration, breaking changes | |
| Uncertain | First use of library feature, unsure of pattern | |
Priority: User mention → Error message → File imports → package.json → Ask userPrismaClientKnownRequestErrorimport { useState } from 'react'from fastapi import FastAPIPriority: User specifies → Error message → Feature being implemented → "getting started"| Task | Content Type |
|---|---|
| Implementing code | |
| Debugging error | |
| Installing/setup | |
| Integrating libs | |
| Upgrading version | |
| Understanding why | |
| Best practices | |
fetch-docs.pypython3python# With known library ID (faster - saves 1 API call)
python3 scripts/fetch-docs.py --library-id <id> --topic "<topic>" --content-type <types>
# With library name (auto-resolves)
python3 scripts/fetch-docs.py --library <name> --topic "<topic>" --content-type <types>Windows note: Useinstead ofpython(e.g.,python3)python scripts/fetch-docs.py ...
| Library | ID |
|---|---|
| React | |
| Next.js | |
| Prisma | |
| Tailwind | |
| FastAPI | |
| Error | Action |
|---|---|
| Try spelling variations |
| Use --library-id directly |
| Broaden topic or use |
| Check API key setup |
--library-id