mcp-web-search: Skill for OpenCode

.opencode/skills/context7/SKILL.md

context7 is a skill for OpenCode from himanshu231204/mcp-web-search. It costs 68 tokens per session (772 once invoked), scanned A, a copy of context7, MIT.

A documentation lookup tool for current information about software libraries, frameworks, and components. It searches the Context7 service and returns relevant documentation and code examples.

In plain words
What is it for?
Use it when building with libraries such as React, Next.js, FastAPI, or Axios, especially when checking API details or finding an example.
Why use it?
It reduces errors caused by relying on outdated knowledge about an API or library. It helps confirm how a function or feature should be used today.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

This is himanshu231204/mcp-web-search's own configuration. It tells OpenCode how to work on mcp-web-search itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-web-search configures →

Reuse

Borrowing it

Nothing to install: this file belongs to himanshu231204/mcp-web-search. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/himanshu231204/mcp-web-search/main/.opencode/skills/context7/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/himanshu231204/mcp-web-search

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context7

README.md
[![agentmods](https://agentmods.dev/badge/skills/himanshu231204/mcp-web-search/context7/github.svg)](https://agentmods.dev/skills/himanshu231204/mcp-web-search/context7)
Your own site
<a href="https://agentmods.dev/skills/himanshu231204/mcp-web-search/context7"><img src="https://agentmods.dev/badge/skills/himanshu231204/mcp-web-search/context7/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context7

Your own site · 80×15
<a href="https://agentmods.dev/skills/himanshu231204/mcp-web-search/context7"><img src="https://agentmods.dev/badge/skills/himanshu231204/mcp-web-search/context7.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 772 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.00772
Opus 5 $0.00034 $0.00386
Sonnet 5 $0.00014 $0.00154
Haiku 4.5 $0.00007 $0.00077

Measured 11d ago against content hash 03c54428be33, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

context7 scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

This skill enables retrieval of current documentation for software libraries and components by querying the Context7 API via curl. Use it instead of relying on potentially outdated training data.
Origin

This is a copy

100% identical to context7 — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.opencode/skills/context7/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context7

Overview

This skill enables retrieval of current documentation for software libraries and components by querying the Context7 API via curl. Use it instead of relying on potentially outdated training data.

Workflow

Step 1: Search for the Library

To find the Context7 library ID, query the search endpoint:

curl -s "https://context7.com/api/v2/libs/search?libraryName=LIBRARY_NAME&query=TOPIC" | jq '.results[0]'

Parameters:

  • libraryName (required): The library name to search for (e.g., "react", "nextjs", "fastapi", "axios")
  • query (required): A description of the topic for relevance ranking

Response fields:

  • id: Library identifier for the context endpoint (e.g., /websites/react_dev_reference)
  • title: Human-readable library name
  • description: Brief description of the library
  • totalSnippets: Number of documentation snippets available

Step 2: Fetch Documentation

To retrieve documentation, use the library ID from step 1:

curl -s "https://context7.com/api/v2/context?libraryId=LIBRARY_ID&query=TOPIC&type=txt"

Parameters:

  • libraryId (required): The library ID from search results
  • query (required): The specific topic to retrieve documentation for
  • type (optional): Response format - json (default) or txt (plain text, more readable)

Examples

React hooks documentation

# Find React library ID
curl -s "https://context7.com/api/v2/libs/search?libraryName=react&query=hooks" | jq '.results[0].id'
# Returns: "/websites/react_dev_reference"

# Fetch useState documentation
curl -s "https://context7.com/api/v2/context?libraryId=/websites/react_dev_reference&query=useState&type=txt"

Next.js routing documentation

# Find Next.js library ID
curl -s "https://context7.com/api/v2/libs/search?libraryName=nextjs&query=routing" | jq '.results[0].id'

# Fetch app router documentation
curl -s "https://context7.com/api/v2/context?libraryId=/vercel/next.js&query=app+router&type=txt"

Read the full file on GitHub · 85 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 85 lines · 68 tokens per session scan A 03c54428be33

Subscribe to this mod's changes

context7 is a skill published in the GitHub repository himanshu231204/mcp-web-search (2 stars, last pushed 26d ago), licensed MIT. It adds 68 tokens to every session and 772 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to context7, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

tokf-discover

Find missed token savings by scanning AI coding session files for commands that ran without tokf filtering.

mpecan/tokf · 24 tokens

skillnote

Self-hosted skill registry for OpenClaw. Stores procedures your team writes (name, description, body), syncs them to disk before each task, and collects which-helped/which-failed signals from the agent so the registry improves over time.

luna-prompts/skillnote · 54 tokens

dashiai-ppt

A presentation-making add-on that creates an HTML slide deck from preset visual page designs. The result can open offline in a browser and can be exported as a PowerPoint or PDF file.

huangrichao2020/pretty-skills · 62 tokens

xiaohongshu-image-creator

An image-making assistant for Xiaohongshu, a Chinese social platform for lifestyle, product, and educational posts. It creates vertical covers and supporting images matched to the post’s topic, audience, and visual style.

huangrichao2020/pretty-skills · 121 tokens

sansheng-distill

A book and text summarizer that creates one self-contained HTML page with five sections: an overview, chapter notes, the book’s central idea, an action checklist, and questions for judging its reliability. The page includes an embedded Mermaid mind map and works offline without a web server.

huangrichao2020/pretty-skills · 108 tokens

cross-campaign

Discover and reference other camps, projects, and files across camp boundaries. Use when the user mentions another camp or campaign by name, references work done "in another project/camp", or needs to find/copy/compare code across camps.

Obedience-Corp/festival · 52 tokens