local-rag-mcp
Skill6 starsChanged 4 months agoApache-2.0View on GitHub
Use when querying, ingesting, or maintaining a local RAG MCP corpus for semantic document retrieval with privacy controls.
- Reads credentials
In this repository116 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skills/graphify/references/CLAUDE.mdCLAUDE.md
- agent-config-security-auditSkill
- agent-harness-designSkill
- agent-readable-docsSkill
- agent-runtime-patternsSkill
- agent-session-forensicsSkill
- ai-regression-testingSkill
- ai-slop-cleanerSkill
- api-doc-reviewSkill
- architecture-decision-recordsSkill
- architecture-simplificationSkill
- ask-claudeSkill
- ask-codexSkill
- ask-geminiSkill
- autonomous-delivery-pipelineSkill
- baseline-comparison-reviewSkill
- bigquery-cost-auditSkill
- brainstormingSkill
- browser-automation-safetySkill
- bug-huntSkill
- build-fix-minimal-diffSkill
- canonical-advisor-routingSkill
- change-impact-checkSkill
- changelog-generatorSkill
- ci-failure-readoutSkill
- codebase-migration-batchesSkill
- context-compressionSkill
- context-docsSkill
- context-minimizationSkill
- context-retrieval-loopSkill
- data-qualitySkill
- dataset-split-reviewSkill
- dbt-incremental-strategy-auditSkill
- dbt-preflightSkill
- dbt-strategySkill
- dead-code-removalSkill
- defuddleSkill
- dependency-cleanupSkill
- deploy-pipeline-runbookSkill
- dispatching-parallel-agentsSkill
- doc-consistency-checkSkill
- environment-doctorSkill
- experiment-tracking-reviewSkill
- failure-triageSkill
- filesystem-mcp-guardrailsSkill
- finishing-a-development-branchSkill
- flaky-test-investigationSkill
- gh-address-commentsSkill
- github-ci-failure-triageSkill
- graphifySkill
- handoff-disciplineSkill
- hard-won-skill-extractorSkill
- hook-safety-reviewSkill
- incident-readoutSkill
- incremental-migrationSkill
- json-canvasSkill
- log-driven-diagnosisSkill
- managed-codebase-contextSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use when the task requires semantic search over a local document corpus and an appropriate local RAG MCP server is available.
- Very specific: line 12
Verify a local RAG MCP server is configured (apx mcp list or check MCP settings).
- Distinctive: line 13
Do NOT attempt to install or spin up Docker containers for vector databases without explicit user permission.
- Distinctive: line 27
Start with the user's exact terms.
- Distinctive: line 28
Add one specific disambiguating detail if initial results are too broad.
- Distinctive: line 29
Keep result limits small first (top 5).
- Distinctive: line 44
delete_source: remove an ingested file or source by ID.
- Very specific: line 51
Do NOT ingest sensitive personal data, secrets, or .env files into the local RAG store.
- Distinctive: line 53
Do not ingest whole repositories by default — start with approved docs or scoped folders.
- Distinctive: line 54
Do not treat a semantic match as ground truth without reading the source chunk in context.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Local RAG MCP
When to use
Use when the task requires semantic search over a local document corpus and an appropriate local RAG MCP server is available. Prefer standard grep/glob for simple pattern matching — RAG adds value for conceptual queries and cross-document synthesis.
Requirements / Checks
- Verify a local RAG MCP server is configured (
apx mcp listor check MCP settings). - Do NOT attempt to install or spin up Docker containers for vector databases without explicit user permission.
- Confirm whether the embedding provider is local or remote — if remote (e.g., OpenAI), warn the user before ingesting sensitive content.
Workflow
- Identify need — determine whether the query requires semantic retrieval (conceptual, cross-document) vs. standard grep/glob (exact pattern, single file).
- Check configuration — verify the connection to the local RAG MCP server. If it fails, surface the error rather than falling back silently.
- Inventory corpus — use status or list tools to see what's already indexed before ingesting anything.
- Ingest (only if necessary) — ingest only files explicitly approved for this corpus. Include clear source metadata (file path, ingest timestamp). Exclude:
.envfiles, credential files, SSH keys, and files outside the workspace. - Query strategy:
- Start with the user's exact terms; do not paraphrase into broader concepts.
- Add one specific disambiguating detail if initial results are too broad.
- Keep result limits small first (top 5); expand only if results are insufficient.
- Expand around hits — if a top result lacks surrounding context, fetch neighboring chunks before drawing conclusions.
- Synthesize with citations — in your response, distinguish between retrieved evidence (cite source and chunk) and your own inference.
- Clean up — delete stale or incorrectly ingested sources when requested; do not accumulate unrelated documents.
Tool Interface (illustrative — actual names depend on your server)
The local RAG server typically exposes tools along these lines:
- query: keyword + semantic search with a score/rank and result limit.
- ingest_file: absolute-path document ingestion.
- ingest_data: string/HTML/Markdown ingestion with source and format metadata.
- delete_source: remove an ingested file or source by ID.
- list_sources / status: corpus inventory and database health.
- get_neighbors: expand context around a specific chunk.
Exact tool names and schemas vary by implementation. Read your server's tool list before assuming names.
Safety Constraints
- Do NOT ingest sensitive personal data, secrets, or
.envfiles into the local RAG store. - Warn the user before ingesting content if the embedding model sends data to a remote API.
- Do not ingest whole repositories by default — start with approved docs or scoped folders.
- Do not treat a semantic match as ground truth without reading the source chunk in context.
Validation / Done Criteria
- Relevant context was retrieved and cited.
- Ingestion explicitly excluded sensitive paths.
- Query result synthesis distinguishes retrieved evidence from inference.
References
references/rag-tool-model.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

