From my-skills
Fetches filtered official docs for libraries like React, Next.js, Prisma, FastAPI, Express, Tailwind, MongoDB saving 60-90% tokens. For API implementation, debugging errors, setup, integration, upgrades.
How this skill is triggered — by the user, by Claude, or both
Slash command
/my-skills:fetch-library-docsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Fetches official library documentation with 60-90% token savings.
references/context7-tools.mdreferences/library-ids.mdreferences/patterns.mdscripts/detect-python.shscripts/extract-apidoc.shscripts/extract-code-blocks.shscripts/extract-migration.shscripts/extract-notes.shscripts/extract-patterns.shscripts/extract-prose.shscripts/extract-signatures.shscripts/extract-terminal-blocks.shscripts/extract-troubleshooting.shscripts/fetch-docs.pyscripts/fetch-docs.shscripts/fetch-raw.shscripts/filter-by-type.shscripts/load-api-key.shscripts/mcp-client.pyscripts/setup-api-key.shFetches official library documentation with 60-90% token savings.
INVOKE AUTOMATICALLY when:
| Context | Detection Signal | Content Type |
|---|---|---|
| Implementing | About to write code using library API | examples,api-ref |
| Debugging | Error contains library name (e.g., PrismaClientError) | troubleshooting |
| Installing | Adding new package, npm install, setup task | setup |
| Integrating | Connecting libraries ("use X with Y") | examples,setup |
| Upgrading | Version migration, breaking changes | migration |
| Uncertain | First use of library feature, unsure of pattern | examples |
DO NOT INVOKE when:
Priority: User mention → Error message → File imports → package.json → Ask user
Examples:
PrismaClientKnownRequestError → library = "prisma"import { useState } from 'react' → library = "react"from fastapi import FastAPI → library = "fastapi"Priority: User specifies → Error message → Feature being implemented → "getting started"
| Task | Content Type |
|---|---|
| Implementing code | examples,api-ref |
| Debugging error | troubleshooting,examples |
| Installing/setup | setup |
| Integrating libs | examples,setup |
| Upgrading version | migration |
| Understanding why | concepts |
| Best practices | patterns |
IMPORTANT: Always use the Python entry point (fetch-docs.py) for cross-platform compatibility.
Use python3 on Linux/macOS/WSL, python on Windows:
# 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: Use
pythoninstead ofpython3(e.g.,python scripts/fetch-docs.py ...)
| Library | ID |
|---|---|
| React | /reactjs/react.dev |
| Next.js | /vercel/next.js |
| Prisma | /prisma/docs |
| Tailwind | /tailwindlabs/tailwindcss.com |
| FastAPI | /tiangolo/fastapi |
See references/library-ids.md for complete list.
| Error | Action |
|---|---|
[LIBRARY_NOT_FOUND] | Try spelling variations |
[LIBRARY_MISMATCH] | Use --library-id directly |
[EMPTY_RESULTS] | Broaden topic or use --content-type all |
[RATE_LIMIT_ERROR] | Check API key setup |
Call Budget: Context7 allows 3 calls/question. Use --library-id to save 1 call.
See references/context7-tools.md for full error handling.
npx claudepluginhub rehan-ul-haq/my-skills --plugin my-skillsFetches current library documentation, API references, and code examples via Context7 REST API. Use for any library (React, Next.js, Vue, Django, etc.).
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Fetches current library documentation via Context7 REST API for npm/PyPI packages. Use when the user needs official APIs, code examples, or migration guidance.