Agent SkillsAgent Skills
panaversity

fetch-library-docs

@panaversity/fetch-library-docs
panaversity
0
0 forks
Updated 4/1/2026
View on GitHub

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.

Installation

$npx agent-skills-cli install @panaversity/fetch-library-docs
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Path.claude/skills/fetch-library-docs/SKILL.md
Branchmain
Scoped Name@panaversity/fetch-library-docs

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

npx agent-skills-cli list

Skill Instructions


name: fetch-library-docs description: 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.

Library Documentation Skill

Fetches official library documentation with 60-90% token savings.


WHEN TO INVOKE (Auto-Detection)

INVOKE AUTOMATICALLY when:

ContextDetection SignalContent Type
ImplementingAbout to write code using library APIexamples,api-ref
DebuggingError contains library name (e.g., PrismaClientError)troubleshooting
InstallingAdding new package, npm install, setup tasksetup
IntegratingConnecting libraries ("use X with Y")examples,setup
UpgradingVersion migration, breaking changesmigration
UncertainFirst use of library feature, unsure of patternexamples

DO NOT INVOKE when:

  • Already have sufficient knowledge from training
  • User pasted docs or has them open
  • Task is about local/private code (use codebase search)
  • Comparing libraries (use web search)

DECISION LOGIC

1. Identify Library

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"

2. Identify Topic

Priority: User specifies → Error message → Feature being implemented → "getting started"

3. Select Content Type

TaskContent Type
Implementing codeexamples,api-ref
Debugging errortroubleshooting,examples
Installing/setupsetup
Integrating libsexamples,setup
Upgrading versionmigration
Understanding whyconcepts
Best practicespatterns

EXECUTION

# With known library ID (faster - saves 1 API call)
bash scripts/fetch-docs.sh --library-id <id> --topic "<topic>" --content-type <types>

# With library name (auto-resolves)
bash scripts/fetch-docs.sh --library <name> --topic "<topic>" --content-type <types>

Quick Library IDs

LibraryID
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 HANDLING (Quick Reference)

ErrorAction
[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.


REFERENCES

More by panaversity

View all
fetch-library-docs
40

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.

browsing-with-playwright
40

Browser automation using Playwright MCP. Navigate websites, fill forms, click elements, take screenshots, and extract data. Use for web browsing, form submission, web scraping, or UI testing. NOT for static content (use curl/wget).

skill-validator
40

Validates skills against production-level criteria with 9-category scoring. This skill should be used when reviewing, auditing, or improving skills to ensure quality standards. Evaluates structure, content, user interaction, documentation, domain standards, technical robustness, maintainability, zero-shot implementation, and reusability. Returns actionable validation report with scores and improvement recommendations.

interview
40

This skill conducts discovery conversations to understand user intent and agree on approach before taking action. It should be used when the user explicitly calls /interview, asks for recommendations, needs brainstorming, wants to clarify, or when the request could be misunderstood. Prevents building the wrong thing by uncovering WHY behind WHAT.