lyonzin/knowledge-rag

Local RAG MCP server for Claude Code — hybrid search (semantic + BM25), cross-encoder reranking, 13 MCP tools, 20 format parsers. Zero external servers, zero API keys.

262Stars 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…

262 3d ago B 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…

262 3d ago A 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 formatted as path:line or path:section. Trigger whenever the response quotes, paraphrases, or acts on knowledge that came from a searchknowledge or getdocument call. Makes answers auditable and lets the user jump to source in one click.

262 3d ago A 70 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 + listcategories + a couple of exploratory searchknowledge queries. Prevents the agent from operating blind or making wrong assumptions about what the corpus contains.

262 3d ago A 63 tokens original MIT

lyonzin/knowledge-rag

Skill Claude CodeCodex

Periodically measure the retrieval quality of the knowledge base using evaluateretrieval (MRR@5, Recall@5, Precision@5) plus getindexstats for health metrics. Run weekly, after significant reindex activity, or when the user reports declining answer quality. Prevents silent index rot and grounds "should we tune X"…

262 3d ago A 78 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…

262 3d ago A 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"…

262 3d ago A 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…

262 3d ago A 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…

262 3d 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.

262 3d ago A 61 tokens original MIT