🎯

fetch-library-docs

🎯Skill

from panaversity/agentfactory

VibeIndex|
What it does

Retrieves targeted official documentation for external libraries with high token efficiency, optimizing coding workflows across various implementation scenarios.

πŸ“¦

Part of

panaversity/agentfactory(23 items)

fetch-library-docs

Installation

πŸ“‹ No install commands found in docs. Showing default command. Check GitHub for actual instructions.
Quick InstallInstall with npx
npx skills add panaversity/agentfactory --skill fetch-library-docs
1Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

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.

Overview

# Library Documentation Skill

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

---

WHEN TO INVOKE (Auto-Detection)

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:

  • 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

| 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 |

---

EXECUTION

```bash

# With known library ID (faster - saves 1 API call)

bash scripts/fetch-docs.sh --library-id --topic "" --content-type

# With library name (auto-resolves)

bash scripts/fetch-docs.sh --library --topic "" --content-type

```

Quick Library IDs

| 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](references/library-ids.md) for complete list.

---

ERROR HANDLING (Quick Reference)

| 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](references/context7-tools.md) for full error handling.

---

REFERENCES

  • [Library IDs](references/library-ids.md) - Complete library ID list
  • [Usage Patterns](references/patterns.md) - Real-world examples
  • [Context7 Tools](references/context7-tools.md) - API details, error codes, setup

More from this repository10

🎯
content-evaluation-framework🎯Skill

Evaluates educational content systematically using a 6-category weighted rubric, scoring technical accuracy, pedagogical effectiveness, and constitutional compliance.

🎯
summary-generator🎯Skill

Generates concise, Socratic-style lesson summaries by extracting core concepts, mental models, patterns, and AI collaboration insights from educational markdown files.

🎯
skill-validator🎯Skill

Validates skills comprehensively across 9 quality categories, scoring structure, content, interaction, documentation, and technical robustness to provide actionable improvement recommendations.

🎯
docx🎯Skill

Generates, edits, and analyzes Microsoft Word documents (.docx) with advanced capabilities like tracked changes, comments, and text extraction.

🎯
concept-scaffolding🎯Skill

Designs progressive learning sequences by breaking complex concepts into manageable steps, managing cognitive load, and validating understanding across different learning tiers.

🎯
chapter-evaluator🎯Skill

Evaluates educational chapters by analyzing chapters chapters through aable student and teacher perspectives, generating structured ratings,, identifying content gaps, providing and prioritableized...

🎯
pptx🎯Skill

Generates, edits, and analyzes PowerPoint presentations with precise content control and narrative coherence.

🎯
canonical-format-checker🎯Skill

Checks and validates content formats against canonical sources to prevent inconsistent pattern implementations across platform documentation.

🎯
assessment-architect🎯Skill

Generates comprehensive skill assessments by dynamically creating evaluation frameworks, rubrics, and scoring mechanisms for educational and professional contexts.

🎯
content-refiner🎯Skill

Refines content that failed Gate 4 by precisely trimming verbosity, strengthening lesson connections, and ensuring targeted improvements based on specific diagnostic criteria.