lyonzin/knowledge-rag

Local RAG server for Claude Code, Cursor and other MCP clients: hybrid BM25 + vector search with cross-encoder reranking on by default, 13 MCP tools, 33 file types including code, re-indexing on file changes. One Python process with embedded ChromaDB and FastEmbed ONNX: no Docker, database server or API key; offline after the first model download.

308Stars on the repository
10Mods indexed here, across every type
3d agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

rag-security-first

01

lyonzin/knowledge-rag

Skill Claude CodeCodex

For any security-related task — threat triage, incident response, MITRE ATT&CK mapping, CVE lookup, exploit analysis, defensive control validation, red/blue/purple team work — always consult the local corpus first. Assumes the RAG is loaded with security content (cybersecurity preset, MITRE data, threat reports…

not rated 308 +2 changed 24d ago B SkillSpector: warn 94 tokens original MIT

rag-check-first

02

lyonzin/knowledge-rag

Skill Claude CodeCodex

Before answering any technical question, code request, architecture decision, or factual claim, call searchknowledge to check the local corpus. Trigger on any query that could be answered with prior work, indexed docs, ADRs, runbooks, or team context. Prevents hallucination and forces reliance on the indexed knowledge…

not rated 308 +2 changed 24d ago A SkillSpector: pass 68 tokens original MIT

rag-cite-sources

03

lyonzin/knowledge-rag

Skill Claude CodeCodex

Every technical claim drawn from the local corpus must ship with a source citation — the file path from the result's source field, plus a section, or a line once it was checked in getdocument. Trigger whenever the response quotes, paraphrases, or acts on knowledge that came from a searchknowledge or getdocument call.…

not rated 308 +2 changed 24d ago A SkillSpector: warn 84 tokens original MIT

rag-onboard-context

04

lyonzin/knowledge-rag

Skill Claude CodeCodex

At the start of every new session or when the topic shifts significantly, probe the knowledge base to learn what is indexed. Calls getindexstats (counts, categories, model) plus a couple of exploratory searchknowledge queries. Prevents the agent from operating blind or making wrong assumptions about what the corpus…

not rated 308 +2 changed 24d ago A SkillSpector: pass 67 tokens original MIT

lyonzin/knowledge-rag

Skill Claude CodeCodex

Measure retrieval quality using evaluateretrieval (MRR@5 and Recall@5) and getindexstats. Use after ingestion, a model or configuration change, or a reported search regression. Compare representative questions against a recorded baseline.

not rated 308 +2 changed 16d ago A SkillSpector: pass 52 tokens original MIT

rag-index-decisions

06

lyonzin/knowledge-rag

Skill Claude CodeCodex

After making a non-obvious architectural decision, solving a novel bug, agreeing on a coding standard, or reaching a conclusion worth remembering, index it back into the knowledge base so the next occurrence is one search away. Uses adddocument or addfromurl. Closes the feedback loop that makes a RAG-backed team…

not rated 308 +2 changed 24d ago A SkillSpector: pass 72 tokens original MIT

rag-code-review

07

lyonzin/knowledge-rag

Skill Claude CodeCodex

When performing code review on a PR, diff, snippet, or "look at this change" request, first consult the corpus for related ADRs, coding standards, prior patterns, and similar files. Grounds review comments in the team's actual decisions instead of generic best practices. Trigger on any review-style request — "review"…

not rated 308 +2 changed 24d ago A SkillSpector: pass 83 tokens original MIT

rag-deep-dive

08

lyonzin/knowledge-rag

Skill Claude CodeCodex

Three-step multi-tool workflow — search the corpus, fetch the most relevant document in full, then find similar documents. Use when a single searchknowledge hit is not enough because the user asked a "how does X work end to end" or "explain the pattern" or "give me the full picture" question. Prevents shallow answers…

not rated 308 +2 changed 24d ago A SkillSpector: pass 79 tokens original MIT

rag-troubleshoot

09

lyonzin/knowledge-rag

Skill Claude CodeCodex

When the user reports a bug, error message, stack trace, unexpected behavior, or "why is this broken" question, search the corpus first for prior occurrences, known fixes, or related runbooks. Prevents re-solving problems the team already solved. Trigger on any error signature, exception name, stack trace snippet, or…

not rated 308 +2 changed 24d ago C 78 tokens original MIT

rag-web-fallback

10

lyonzin/knowledge-rag

Skill Claude CodeCodex

Only reach for external web search when the local corpus comes back empty or clearly insufficient. Forces the agent to try knowledge-rag first, then explicitly document why it needed to escalate. Prevents wasted API cost, latency, and (in air-gapped deployments) accidental network calls.

not rated 308 +2 changed 24d ago A SkillSpector: pass 61 tokens original MIT

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: