mcpField
U
use-ctx7

use-ctx7

github.com/discountryDevelopment247 installsUpdated 12w ago
Repository

About use-ctx7

A skill for querying indexed library documentation with the ctx7 CLI. It requires resolving a library ID before fetching docs, supports specific queries, and offers JSON output.

Key features

  1. 01Resolves library IDs before querying docs
  2. 02Selects libraries by relevance and coverage
  3. 03Supports version-specific library IDs
  4. 04Offers JSON and pipe-friendly output
  5. 05Shows examples of specific queries

Use cases

  1. 01Find API documentation for a library
  2. 02Retrieve docs for a specific version
  3. 03Look up examples for implementing a feature
  4. 04Pass documentation output into CLI workflows

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/discountry/ritmex-skills --skill use-ctx7

After installing, type/use-ctx7in Claude Code to confirm it loaded.

Details

From the project README

Query indexed library documentation via the ctx7 CLI. Always follow the two-step process below.

1.Resolve Library ID

ctx7 library <name> "<specific question>"

The query ranks results by relevance — be descriptive, not single-keyword.

Pick the best match by: closest name, highest snippet count, strongest reputation.

FieldDescription
Library IDIdentifier for Step 2 (format: /org/project)
Code SnippetsNumber of indexed examples — higher = better coverage
Source ReputationAuthority: High, Medium, Low, Unknown
Benchmark ScoreQuality score 0–100
VersionsVersion-specific IDs (format: /org/project/version)

For a specific version, use the version ID from results (e.g. /vercel/next.js/v14.3.0-canary.87).

2.Fetch Documentation

ctx7 docs <library-id> "<specific question>"

Library IDs always start with /. Using a bare name like react will fail.

Write specific queries describing what you want to accomplish — "How to set up authentication with JWT in Express.js" >> "auth".

Output formats
# Structured JSON
ctx7 docs /facebook/react "How to use hooks for state management" --json

# Pipe-friendly (no spinners/colors outside TTY)
ctx7 docs /vercel/next.js "middleware for route protection" | head -50

Examples

# Next.js app router
ctx7 library nextjs "How to set up app router with middleware"
ctx7 docs /vercel/next.js "How to set up app router with middleware"

# Scripting: resolve ID then fetch
ctx7 library react "hooks" --json | jq '.[0].id'

Checklist

  • Always run ctx7 library first to get the correct ID
  • Use the full /org/project ID — never a bare name
  • Write descriptive queries, not single keywords
  • Pick version-specific ID when the user needs docs for a particular version

Comments

Markdown supported