AutoRAG Setup and Repair
Marker-Inc-Korea/AutoRAG
Installs, configures, and repairs AutoRAG's search model, approved folders, indexes, and datasources, and registers its Lite MCP server.
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.
$ npx skills add lyonzin/knowledge-rag --skill rag-troubleshoot -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install lyonzin/knowledge-rag rag-troubleshoot --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/lyonzin/knowledge-rag.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/workflow/rag-troubleshoot .claude/skills/rag-troubleshoot && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "rag-troubleshoot" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/workflow/rag-troubleshoot into .claude/skills/rag-troubleshoot/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-troubleshoot", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/lyonzin/knowledge-rag/tree/master/skills/workflow/rag-troubleshootType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add lyonzin/knowledge-rag --skill rag-troubleshoot -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install lyonzin/knowledge-rag rag-troubleshoot --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lyonzin/knowledge-rag.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/workflow/rag-troubleshoot .agents/skills/rag-troubleshoot && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "rag-troubleshoot" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/workflow/rag-troubleshoot into .agents/skills/rag-troubleshoot/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-troubleshoot", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add lyonzin/knowledge-rag --skill rag-troubleshoot -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install lyonzin/knowledge-rag rag-troubleshoot --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lyonzin/knowledge-rag.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/workflow/rag-troubleshoot .cursor/skills/rag-troubleshoot && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "rag-troubleshoot" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/workflow/rag-troubleshoot into .cursor/skills/rag-troubleshoot/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-troubleshoot", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/lyonzin/knowledge-rag.git --path skills/workflow/rag-troubleshoot--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add lyonzin/knowledge-rag --skill rag-troubleshoot -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install lyonzin/knowledge-rag rag-troubleshoot --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lyonzin/knowledge-rag.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/workflow/rag-troubleshoot .gemini/skills/rag-troubleshoot && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "rag-troubleshoot" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/workflow/rag-troubleshoot into .gemini/skills/rag-troubleshoot/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-troubleshoot", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install lyonzin/knowledge-rag rag-troubleshootInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add lyonzin/knowledge-rag --skill rag-troubleshoot -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/lyonzin/knowledge-rag.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/workflow/rag-troubleshoot .github/skills/rag-troubleshoot && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "rag-troubleshoot" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/workflow/rag-troubleshoot into .github/skills/rag-troubleshoot/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-troubleshoot", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add lyonzin/knowledge-rag --skill rag-troubleshoot -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install lyonzin/knowledge-rag rag-troubleshoot --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lyonzin/knowledge-rag.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/workflow/rag-troubleshoot .opencode/skills/rag-troubleshoot && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "rag-troubleshoot" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/workflow/rag-troubleshoot into .opencode/skills/rag-troubleshoot/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-troubleshoot", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
rag-troubleshootWhen 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.
RAG Troubleshoot is an agent skill from lyonzin/knowledge-rag. 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 "why does X fail" query.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering, covering Retrieval-augmented generation, Debugging and Runbooks and postmortems. It works with Model Context Protocol. The repository describes itself as: 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. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit df9cccb. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
ERR_INVALID_TOKENFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
RAG Troubleshoot loads about 1.8k tokens when it runs. Until then it costs about 90 tokens; SKILL.md has 476 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from lyonzin/knowledge-rag at commit df9cccb, republished under its MIT licence (© lyonzin). 476 words, ~1,760 tokens.
.claude/skills/rag-troubleshoot/SKILL.md (or your agent's skills folder).Trigger the moment the user reports:
The core insight: many bugs are already solved somewhere in your corpus — runbook, postmortem, incident report, prior fix commit, ADR, chat thread indexed via add_from_url. Search first.
Before proposing a fix, the agent searches for:
Only after those three come back empty does the agent apply general debugging techniques.
Extract error signatures from the user's message:
ValueError, ConnectionError, TimeoutError, etc.)ERR_INVALID_TOKEN, E42_INDEX_MISS, HTTP status)First search — exact error signature:
search_knowledge(query="<exception name> <error keyword>", max_results=5, min_score=0.15)Example: search_knowledge(query="ConnectionError refused chromadb")
Second search — affected component + symptom:
search_knowledge(query="<component name> <what happens>", max_results=5)Example: search_knowledge(query="reindex fails halfway large corpus")
Third search — historical incidents / postmortems:
search_knowledge(query="incident postmortem <component>", max_results=5)Or with a category filter if your corpus categorizes by document type:
search_knowledge(query="<component> failure", category="incidents")Evaluate:
| Result | Action |
|---|---|
| Prior fix exists | Apply it, cite the source, verify it still applies |
| Related runbook exists | Follow the runbook, cite it |
| Related incident, different fix | Read the incident, adapt |
| Nothing found | Do general-purpose debugging, but flag that "this may be a new failure mode" |
After solving, if the fix is non-obvious, chain to rag-index-decisions to add a short note back to the corpus so the next occurrence is one search away.
Example 1 — Prior fix
User: "Getting EmbeddingModelLoadError: sticky failure when starting knowledge-rag. What's happening?"
Agent:
search_knowledge(query="EmbeddingModelLoadError sticky failure") → 3 hits, top 0.91
Reply: "This is documented in [CHANGELOG.md#v381]. The `sticky _load_failed` flag was
added in v3.8.1 as a hotfix — when the ONNX model fails to load, subsequent calls
re-raise immediately instead of looping through HF Hub download attempts. The fix is
in [providers/embeddings/fastembed.py:145]. Root cause is usually one of:
1. HF Hub unreachable at first startup (offline / DNS)
2. Corrupt cached model in models_cache/
3. Disk full during model download
Try: (a) check network to huggingface.co, (b) rm -rf models_cache/ and restart,
(c) df -h. If none apply, this may be a new failure mode."Example 2 — Runbook
User: "Our search results are empty after nuclear rebuild. What now?"
Agent:
search_knowledge(query="empty results nuclear rebuild") → 4 hits
1st hit: docs/reindex-operations.md (0.87)
get_document(filepath="docs/reindex-operations.md")
→ Full runbook including "post-rebuild sanity check" section
Reply: "Per [docs/reindex-operations.md#post-rebuild-sanity-check], after a nuclear
rebuild you should:
1. Confirm `get_index_stats().chunks_count` > 0
2. Run one `search_knowledge('any indexed keyword')` — should return hits
3. If empty, check for stale FTS5 marker (v4.8.2+ specific) — delete
`data/fts5_migration.state` and restart.
The most common cause is exactly the FTS5 stale marker case, added in v4.8.3
[CHANGELOG.md#v483]."Example 3 — Nothing found, general debug
User: "My Rust binding for the MCP server segfaults on second call. Ideas?"
Agent:
search_knowledge(query="rust binding segfault MCP") → 0 hits
search_knowledge(query="rust FFI second call crash") → 0 hits
search_knowledge(query="rust bindings segfault") → 0 hits
Reply: "Nothing in the local corpus about Rust bindings (searched 'rust binding
segfault MCP' + 2 paraphrases, 0 hits). This appears to be a new failure mode.
General-purpose debugging directions:
1. Rebuild with `RUST_BACKTRACE=full` to get the panic location
2. Check FFI lifetime — is a Python object dropped while Rust still holds a ref?
3. Try with `--single-instance` mode to rule out concurrency
4. Reduce to a minimal repro: 1 call, 2 calls, does it always fail on N=2?
Once you find the root cause, worth indexing back — see rag-index-decisions."rag-check-first — the parent skill (troubleshooting is a specialized variant).rag-cite-sources — when you propose a fix, cite the source that documented it.rag-index-decisions — after solving a novel bug, index the postmortem for next time.rag-web-fallback — for truly novel errors, escalate to GitHub / StackOverflow after RAG comes back empty.© lyonzin, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/workflow/rag-troubleshoot of lyonzin/knowledge-rag.
Open the folder on GitHubat commit df9cccb
RAG Troubleshoot next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| RAG Troubleshoot this skilllyonzin/knowledge-rag | 292 | — | ~1.8k | Automated safety check: Pass | MIT | |
| AutoRAG Setup and RepairMarker-Inc-Korea/AutoRAG | 5.1k | — | ~5.6k | Automated safety check: Pass | MIT | |
| Sciverseopendatalab/Sciverse-Agent-Tools | 120 | — | ~3k | Automated safety check: Pass | Custom licence | |
| Pgvector Semantic Searchtimescale/pg-aiguide | 1.9k | — | ~3.8k | Automated safety check: Pass | Apache-2.0 | |
| Postgres Hybrid Text Searchtimescale/pg-aiguide | 1.9k | — | ~3.1k | Automated safety check: Pass | Apache-2.0 | |
| SynalinksSynaLinks/synalinks-skills | 907 | — | ~4.8k | Automated safety check: Pass | Apache-2.0 |
Marker-Inc-Korea/AutoRAG
Installs, configures, and repairs AutoRAG's search model, approved folders, indexes, and datasources, and registers its Lite MCP server.
opendatalab/Sciverse-Agent-Tools
A skill your agent uses when the user needs academic paper retrieval — searching scientific literature by author/year/journal, finding paper chunks for RAG-style citations, or expanding original…
timescale/pg-aiguide
A skill your agent uses for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search.
timescale/pg-aiguide
A skill your agent uses to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF).
SynaLinks/synalinks-skills
A skill your agent uses for anything involving the Synalinks neuro-symbolic LM framework (Keras-inspired): DataModel/Field/Input, JSON operators (+ & | ^ ~), synalinks.ops…
Marker-Inc-Korea/AutoRAG
Diagnoses and repairs a broken AutoRAG install so every configured datasource is both indexed and returns real search hits.
lyonzin/knowledge-rag
Before answering any technical question, code request, architecture decision, or factual claim, call searchknowledge to check the local corpus.
lyonzin/knowledge-rag
Every technical claim drawn from the local corpus must ship with a source citation formatted as path:line or path:section.
lyonzin/knowledge-rag
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.
lyonzin/knowledge-rag
Three-step multi-tool workflow — search the corpus, fetch the most relevant document in full, then find similar documents.
lyonzin/knowledge-rag
Measure retrieval quality using evaluateretrieval (MRR@5 and Recall@5) and getindexstats.
lyonzin/knowledge-rag
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…
Works with
Categories
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. RAG Troubleshoot is an agent skill from lyonzin/knowledge-rag. 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.
RAG Troubleshoot fits situations like: unexpected behavior; why is this broken question; search the corpus first for prior occurrences; related runbooks.
Run `npx skills add lyonzin/knowledge-rag --skill rag-troubleshoot -a claude-code`. Or copy the skill folder (skills/workflow/rag-troubleshoot in lyonzin/knowledge-rag) into .claude/skills/rag-troubleshoot in your project. Claude Code loads it when a task matches its description.
Run `npx skills add lyonzin/knowledge-rag --skill rag-troubleshoot -a codex`. Or copy the skill folder (skills/workflow/rag-troubleshoot in lyonzin/knowledge-rag) into .agents/skills/rag-troubleshoot in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lyonzin/knowledge-rag --skill rag-troubleshoot -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rag-troubleshoot, .gemini/skills/rag-troubleshoot, .github/skills/rag-troubleshoot and .opencode/skills/rag-troubleshoot in your project.
Going by SKILL.md and its folder, RAG Troubleshoot needs credentials named ERR_INVALID_TOKEN. Our summary lists: Python 3; A credential in ERR_INVALID_TOKEN.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
RAG Troubleshoot is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with RAG Troubleshoot: AutoRAG Setup and Repair (Marker-Inc-Korea/AutoRAG, 5.1k stars), Sciverse (opendatalab/Sciverse-Agent-Tools, 120 stars), Pgvector Semantic Search (timescale/pg-aiguide, 1.9k stars) and Postgres Hybrid Text Search (timescale/pg-aiguide, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
lyonzin (a GitHub user) maintains it in lyonzin/knowledge-rag, which has 292 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 9, 2026.
Source: lyonzin/knowledge-rag on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.