context7-efficientlisted
Install: claude install-skill aiskillstore/marketplace
# Context7 Efficient Documentation Fetcher
Fetch library documentation with automatic 77% token reduction via shell pipeline.
## Quick Start
**Always use the token-efficient shell pipeline:**
```bash
# Automatic library resolution + filtering
bash scripts/fetch-docs.sh --library <library-name> --topic <topic>
# Examples:
bash scripts/fetch-docs.sh --library react --topic useState
bash scripts/fetch-docs.sh --library nextjs --topic routing
bash scripts/fetch-docs.sh --library prisma --topic queries
```
**Result:** Returns ~205 tokens instead of ~934 tokens (77% savings).
## Standard Workflow
For any documentation request, follow this workflow:
### 1. Identify Library and Topic
Extract from user query:
- **Library:** React, Next.js, Prisma, Express, etc.
- **Topic:** Specific feature (hooks, routing, queries, etc.)
### 2. Fetch with Shell Pipeline
```bash
bash scripts/fetch-docs.sh --library <library> --topic <topic> --verbose
```
The `--verbose` flag shows token savings statistics.
### 3. Use Filtered Output
The script automatically:
- Fetches full documentation (934 tokens, stays in subprocess)
- Filters to code examples + API signatures + key notes
- Returns only essential content (205 tokens to Claude)
## Parameters
### Basic Usage
```bash
bash scripts/fetch-docs.sh [OPTIONS]
```
**Required (pick one):**
- `--library <name>` - Library name (e.g., "react", "nextjs")
- `--library-id <id>` - Direct Context7 ID (faster, skips resolution)
**Optional:**
- `--t