PluginBench
Skill
Review
Audit score 70

context7

netresearch/context7-skill

How to install context7

npx skills add https://github.com/netresearch/context7-skill --skill context7
Claude Code
Cursor
Windsurf
Cline
Full instructions (SKILL.md)

Source of truth, from netresearch/context7-skill.


name: context7 description: "Use when looking up library documentation, API references, framework patterns, or code examples for ANY library (React, Next.js, Vue, Django, Laravel, etc.). Fetches current docs via Context7 REST API. Triggers on: how to use library, API docs, framework pattern, import usage, library example." license: "(MIT AND CC-BY-SA-4.0)" compatibility: "Requires curl or fetch, jq." metadata: version: "1.6.0" repository: "https://github.com/netresearch/context7-skill" author: "Netresearch DTT GmbH" allowed-tools:

  • "Bash(curl:*)"
  • "Bash(jq:*)"
  • "Read"

Context7 Documentation Lookup Skill

Fetch current library documentation, API references, and code examples via the Context7 REST API.

When to Use

Use this skill when the user asks about library APIs, framework patterns, or version-specific behavior. Trigger on:

  • Library questions: "How do I use [library]?", "[library] API docs", "[library] patterns"
  • Import statements: import, require, from followed by a library name
  • Framework-specific topics: hooks, routing, middleware, ORM queries, schema definitions

When NOT to Use

Do NOT use this skill for:

  • General programming concepts (closures, recursion, design patterns)
  • Code review or refactoring tasks
  • Debugging business logic
  • Writing scripts from scratch without library-specific questions

Core Workflow

  1. Search for the library ID:

    scripts/context7.sh search "library-name"
    
  2. Pick the best result: Choose the ID with the highest score and most relevant description. Prefer official sources (e.g., /vercel/next.js over community forks).

  3. Fetch documentation with a focused topic:

    scripts/context7.sh docs "<library-id>" "<topic>" "<mode>"
    

Always extract a specific topic from the user's question. For "How does React Suspense work with server components?", use topic suspense server components.

Parameters

ParameterRequiredDescription
library-idYesFrom search results, format /vendor/library
topicNoFocus area extracted from user query (e.g., hooks, routing, validation)
modeNocode (default) for API references; info for conceptual guides

Mode Selection

Use code mode (default) when the user asks for API references, code examples, or implementation patterns.

Use info mode when the user asks for conceptual explanations, architecture guides, or migration tutorials.

Examples

# React hooks API
scripts/context7.sh search "react"
scripts/context7.sh docs "/facebook/react" "hooks" "code"

# Next.js App Router conceptual guide
scripts/context7.sh search "nextjs"
scripts/context7.sh docs "/vercel/next.js" "app router" "info"

# Django ORM queries
scripts/context7.sh search "django"
scripts/context7.sh docs "/django/django" "queryset filter" "code"

# Laravel Eloquent relationships
scripts/context7.sh search "laravel"
scripts/context7.sh docs "/laravel/framework" "eloquent relationships" "code"

Environment Configuration

Set CONTEXT7_API_KEY for higher rate limits (optional):

export CONTEXT7_API_KEY="your-api-key"

Contributing: https://github.com/netresearch/context7-skill

Related skills

More from netresearch/context7-skill and the wider catalog.

ANandroid-testing logo

android-testing

new-silvermoon/awesome-android-agent-skills

Comprehensive testing strategy involving Unit, Integration, Hilt, and Screenshot tests.

600 installsAudited
MUmulti-search logo

multi-search

nex-zmh/agent-websearch-skill

智能多引擎搜索,自动检测网络环境并按优先级切换:DuckDuckGo -> Tavily -> Bing API -> Bing爬虫。支持自动配额管理和网络缓存。Invoke when user needs web search with automatic engine selection and network adaptation.

693 installs
AMamazon-listing-optimization logo

amazon-listing-optimization

nexscope-ai/amazon-skills

Amazon listing builder and optimizer for sellers. Two modes: (A) Create — build keyword-optimized listings from scratch using keyword lists + product characteristics + AI copywriting, (B) Optimize — audit existing listings, find keyword gaps, score across 8 dimensions, and rewrite with missing keywords. Integrates with amazon-keyword-research for keyword input. Works on 12 Amazon marketplaces. No API key required. Use when: (1) creating a new Amazon listing from keywords, (2) auditing an existing listing for SEO and conversion, (3) checking keyword coverage in title/bullets/description, (4) generating listing copy with target keywords and tone, (5) comparing listings against competitors, (6) preparing a listing for launch or relaunch.

630 installs
AMamazon-product-research logo

amazon-product-research

nexscope-ai/amazon-skills

Comprehensive product research and opportunity analysis for Amazon sellers with demand, competition, and profitability scoring.

38k installsAudited
CRcross-border-ecommerce logo

cross-border-ecommerce

nexscope-ai/ecommerce-skills

Strategic advisor for international e-commerce expansion: score markets, compare fulfillment models, navigate tax compliance, and build a phased roadmap.

31k installsAudited
SAsafe-action-advanced logo

safe-action-advanced

next-safe-action/skills

Use when working with bind arguments, metadata schemas, framework errors (redirect/notFound/forbidden/unauthorized), type inference utilities (InferSafeActionFnInput/Result), or server-level action callbacks

910 installsAudited