Agent skill · software engineering · aiskillstore
context7-integration
Use when integrating Context7 (knowledge/context store) for document ingestion, semantic search, or scoped context retrieval. Triggers for: uploading documents, searching knowledge base, filtering by role/tenant, or providing AI with document-grounded context. NOT for: general database queries, file storage without context semantics, or non-document content.
Why this skill is useful
Provides specific methods and patterns for integrating with the Context7 API that the AI wouldn't reliably generate on its own.
What it needs
Requires requests installed locally. Requires context7 account access. About 7k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Context7 Integration Skill Expert integration of Context7 for document ingestion, semantic search, and role-scoped context retrieval in ERP applications. Quick Reference Task Method/Endpoint ------ ----------------- Ingest document context7client.ingestdocument() Batch ingest context7client.ingestbatch() Search context context7client.search() Get document context7client.getdocument() Delete document context7client.deletedocument() Project Structure Context7 Client Core Client Class Context Shaping Utilities API Routes `python backend/app/api/knowledge/routes.py from fastapi import APIRouter, Depends, HTTPException, status from typing import Optional from pydantic import BaseModel from app.services.context7client import ( getcontext7client, DocumentMetadata, Context7Client, ) from app.services.contextshaper import getcontextshaper, ContextShaper from app.auth.jwt import getcurrentuser router = APIRouter(prefix="/knowledge", tags=["knowledge"]) class IngestRequest(BaseModel): """Request to ingest a document.""" content: str title: str description: Optional[str] = None module: str category: Optional[str] = None allowedroles: list[str] = [] schoolid: Optional[str] = None class SearchRequest(BaseModel): """Request to search knowledge base.""" query: str module: Optional[str] = None maxchunks: int = 5 minsimilarity: float = 0.7 class SearchResponse(BaseModel): """Search response with shaped context.""" documents: list[dict] context: str # Shaped for prompt @router.post("/ingest") async def ingestdocument( request: IngestRequest, currentuser = Depends(getcurrentuser), client: Context7Client = Depends(getcontext7client), ) -> dict: """ Ingest a document into the knowledge base. Requires admin or content-manager role. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/context7-integration