context7-cli

context7-cli is a skill for Claude Code from SummerSec/SumSec-Skills. It costs 67 tokens per session (664 once invoked), scanned A, a copy of context7-cli, Apache-2.0.

A command-line tool for retrieving current library documentation, managing coding-agent skills, and configuring Context7 connections for coding editors. A coding-agent skill is a set of instructions that teaches an agent how to handle a particular task.

In plain words
What is it for?
Use it to look up library documentation, install or search for skills, suggest skills from project dependencies, list or remove skills, generate skills, or configure Context7 for an editor.
Why use it?
It puts documentation lookup, skill installation and search, and agent setup behind one command-line interface. This helps keep references current and manage the agent's available instructions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; mentions OpenCode.

Part of the dev-tools plugin — 10 skills shipped together

Good fit Use it to look up library documentation, install or search for skills, suggest skills from project dependencies, list or remove skills, generate skills, or configure Context7 for an editor.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/summersec/sumsec-skills/context7-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SummerSec/SumSec-Skills --skill context7-cli
Clone the repo
git clone --depth 1 https://github.com/SummerSec/SumSec-Skills

Made for: Claude Code.

Or install dev-tools, the plugin that ships this one along with the rest of its 10 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/summersec/sumsec-skills/context7-cli/github.svg)](https://agentmods.dev/skills/summersec/sumsec-skills/context7-cli)
Your own site
<a href="https://agentmods.dev/skills/summersec/sumsec-skills/context7-cli"><img src="https://agentmods.dev/badge/skills/summersec/sumsec-skills/context7-cli/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-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/summersec/sumsec-skills/context7-cli"><img src="https://agentmods.dev/badge/skills/summersec/sumsec-skills/context7-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 664 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00067 $0.00664
Opus 5.5 $0.00027 $0.00266
Sonnet 5.5 $0.00013 $0.00133
Haiku 4.5 $0.00007 $0.00066

Measured 1mo ago against content hash d7b70ba126d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context7-cli scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to context7-cli — 20 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.

dev-tools/skills/context7-cli/SKILL.md · 73 lines

How it starts

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

ctx7 CLI

The Context7 CLI does three things: fetches up-to-date library documentation, manages AI coding skills, and sets up Context7 MCP for your editor.

Make sure the CLI is up to date before running commands:

npm install -g ctx7@latest

Or run directly without installing:

npx ctx7@latest <command>

What this skill covers

  • Documentation — Fetch current docs for any library. Use when writing code, verifying API signatures, or when training data may be outdated.
  • Skills management — Install, search, suggest, list, remove, and generate AI coding skills.
  • Setup — Configure Context7 MCP for Claude Code / Cursor / OpenCode.

Quick Reference

# Documentation
ctx7 library <name> <query>           # Step 1: resolve library ID
ctx7 docs <libraryId> <query>         # Step 2: fetch docs

# Skills
ctx7 skills install /owner/repo       # Install from a repo (interactive)
ctx7 skills install /owner/repo name  # Install a specific skill
ctx7 skills search <keywords>         # Search the registry
ctx7 skills suggest                   # Auto-suggest based on project deps
ctx7 skills list                      # List installed skills
ctx7 skills remove <name>             # Uninstall a skill
ctx7 skills generate                  # Generate a custom skill with AI (requires login)

# Setup
ctx7 setup                            # Configure Context7 MCP (interactive)
ctx7 login                            # Log in for higher rate limits + skill generation
ctx7 whoami                           # Check current login status

Authentication

ctx7 login               # Opens browser for OAuth
ctx7 login --no-browser  # Prints URL instead of opening browser
ctx7 logout              # Clear stored tokens
ctx7 whoami              # Show current login status (name + email)

Most commands work without login. Exceptions: skills generate always requires it; ctx7 setup requires it unless --api-key or --oauth is passed. Login also unlocks higher rate limits on docs commands.

Read the full file on GitHub · 73 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. 1mo ago First seen · 73 lines · 67 tokens per session scan A d7b70ba126d9

Subscribe to this mod's changes

context7-cli is a skill published in the GitHub repository SummerSec/SumSec-Skills (8 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 67 tokens to every session and 664 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to context7-cli, differing in 20 lines, and is treated as a copy.

Related

Other skills, from other repositories

audit-playbook

A code-security audit playbook covering source-code review, runtime checks, software dependencies, deployment settings, and AI-agent security risks.

SeaOf0/dsh-redteam-model · 155 tokens

x64dbg-reversing

Perform dynamic reverse engineering and debugging using X64dbg/X32dbg through natural language commands powered by X64dbg MCP. Use this skill whenever the user wants to: debug executables, analyze program behavior at runtime, set breakpoints, inspect memory and registers, trace execution flow, bypass anti-debug…

SeaOf0/dsh-redteam-model · 144 tokens

novel-reviewer

A review and editing workflow for existing novel chapters. It checks story logic, timelines, character states, unresolved clues, world rules, and writing style.

LiPu-jpg/Openwrite · 49 tokens

ida-reversing

Perform reverse engineering and binary analysis in IDA Pro using natural language commands powered by IDA MCP. Use this skill whenever the user wants to: analyze executable files, understand function behavior, decompile code, explore cross-references, search for strings or bytes, patch binary code, document reverse…

SeaOf0/dsh-redteam-model · 130 tokens

workflow-manager

A writing workflow tracker for chapter-based projects. It records whether each chapter is being assembled, drafted, reviewed, confirmed, polished, or archived.

LiPu-jpg/Openwrite · 40 tokens

review-chapter

A six-part review of a manuscript chapter. It compares the chapter with the outline and reports quality, coverage, review status, and problems supported by evidence from the text.

LiPu-jpg/Openwrite · 52 tokens