AI Learning Journal
LeoYeAI/openclaw-master-skills
AI 学习记录与成长追踪工具。用于记录 AI/LLM 学习笔记、使用心得、Prompt 技巧、工具体验等,并提供学习指导和规划。当用户提到以下任何话题时都应使用此 skill:AI 学习记录、学习笔记、AI 使用心得、Prompt 工程学习、模型对比体验、AI 工具使用记录、LLM 学习、RAG 学习、Agent 学习、MCP 学习、AI 微调实践、AI 学习规划、怎么学 AI、AI…
At the start of every new session or when the topic shifts significantly, probe the knowledge base to learn what is indexed.
$ npx skills add lyonzin/knowledge-rag --skill rag-onboard-context -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install lyonzin/knowledge-rag rag-onboard-context --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/foundation/rag-onboard-context .claude/skills/rag-onboard-context && 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-onboard-context" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/foundation/rag-onboard-context into .claude/skills/rag-onboard-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-onboard-context", 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/foundation/rag-onboard-contextType 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-onboard-context -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install lyonzin/knowledge-rag rag-onboard-context --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/foundation/rag-onboard-context .agents/skills/rag-onboard-context && 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-onboard-context" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/foundation/rag-onboard-context into .agents/skills/rag-onboard-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-onboard-context", 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-onboard-context -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install lyonzin/knowledge-rag rag-onboard-context --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/foundation/rag-onboard-context .cursor/skills/rag-onboard-context && 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-onboard-context" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/foundation/rag-onboard-context into .cursor/skills/rag-onboard-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-onboard-context", 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/foundation/rag-onboard-context--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-onboard-context -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install lyonzin/knowledge-rag rag-onboard-context --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/foundation/rag-onboard-context .gemini/skills/rag-onboard-context && 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-onboard-context" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/foundation/rag-onboard-context into .gemini/skills/rag-onboard-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-onboard-context", 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-onboard-contextInstalls 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-onboard-context -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/foundation/rag-onboard-context .github/skills/rag-onboard-context && 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-onboard-context" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/foundation/rag-onboard-context into .github/skills/rag-onboard-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-onboard-context", 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-onboard-context -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-onboard-context --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/foundation/rag-onboard-context .opencode/skills/rag-onboard-context && 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-onboard-context" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/foundation/rag-onboard-context into .opencode/skills/rag-onboard-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-onboard-context", 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-onboard-contextAt the start of every new session or when the topic shifts significantly, probe the knowledge base to learn what is indexed.
RAG Onboard Context is an agent skill from lyonzin/knowledge-rag. 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.
Its SKILL.md is about 1.5k 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 and Knowledge bases. 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.
6 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 no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
RAG Onboard Context loads about 1.5k tokens when it runs. Until then it costs about 84 tokens; SKILL.md has 546 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). 546 words, ~1,538 tokens.
.claude/skills/rag-onboard-context/SKILL.md (or your agent's skills folder).Run this skill:
Do NOT run repeatedly — once per session is usually enough. The query cache applies to searches; it does not cache every inspection tool.
Before diving into task-specific work, the agent gathers a mental map of the corpus:
That mental map informs every subsequent decision: whether to search first, whether to fall back to the web, how to phrase queries.
Get index health:
get_index_stats()Read the nested stats object: total_documents, total_chunks, query_cache.hit_rate, embedding_model, and embedding_dim.
Enumerate categories:
list_categories()Note: which categories exist and how many docs each has. This tells you the corpus's shape.
Probe 1–2 topics the user is likely to touch. If the user's first message mentions a domain, probe it. Otherwise, probe the top 2 largest categories:
search_knowledge(query="<category-typical-term>", max_results=3, snippet_mode=true)Optionally, if you need concrete file names, call:
list_documents(category="<top-category>")This tool has no limit argument and returns the whole category. For a large category, prefer a targeted search_knowledge call with max_results=3.
Store the summary internally — do not necessarily surface it to the user unless they ask. The value is that YOU now know:
mitre attack returned 3 solid hits — MITRE content is well indexed"kubernetes returned nothing — try synonyms or inspect relevant categories before concluding the topic is absent"From here on, rag-check-first handles every subsequent request with this context in mind.
Example 1 — Fresh session, dev context
User: "Hi. I want to add a new REST endpoint."
Agent (internal, before answering):
get_index_stats() → 12,043 chunks / 3,214 docs, cache hit 0%, model bge-small-en-v1.5
list_categories() → categories {development: 1200, security: 800, general: 1169, adrs: 45}
search_knowledge(query="REST endpoint", max_results=3) → 3 hits, top score 0.71
Now I know: this project has ADRs indexed. I should look at those before designing the endpoint.
Reply: "Let me check how the existing endpoints are structured..."
[calls search_knowledge with more specific queries]Example 2 — Fresh session, security context
User: "We have a suspected LSASS dump alert. Can you help triage?"
Agent (internal):
get_index_stats() → 45,000 chunks / 5,800 docs
list_categories() → categories {redteam: 2400, blueteam: 1800, ctf: 1000, mitre: 600}
search_knowledge(query="LSASS credential dump", max_results=5) → 5 hits
Now I know: this is a security-focused RAG. LSASS is well-covered. Full triage is
going to be corpus-driven.
Reply: "Pulling triage steps from the runbooks and MITRE mapping..."Example 3 — Empty / near-empty corpus
Agent (internal):
get_index_stats() → 12 chunks / 3 docs, cache hit 0%
list_categories() → {general: 3}
Signal: this is a fresh install. The corpus is nearly empty. Do NOT
"rag-check-first" aggressively — most queries will miss. Behave more
like a normal (RAG-optional) assistant and gently suggest the user
run `reindex_documents` after adding their docs.
Reply: "I notice your knowledge base only has 3 documents indexed. Before I dive in,
would you like to point me at your docs folder so we can index them first?"stats.query_cache.hit_rate > 0 describes hits during this process lifetime. It does not prove an entry for the next query remains valid; the cache is in memory and has a TTL.{}) — inspect index counts and indexing errors. An empty category map alone does not identify the cause. Search without a category filter while keeping max_results bounded.rag-check-first — the workhorse skill that runs on every subsequent turn, informed by what onboarding revealed.rag-deep-dive — chained after check-first when a topic needs more depth.rag-evaluate-quality — periodic checkup (weekly, not per-session).© 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/foundation/rag-onboard-context of lyonzin/knowledge-rag.
Open the folder on GitHubat commit df9cccb
RAG Onboard Context 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 Onboard Context this skilllyonzin/knowledge-rag | 292 | — | ~1.5k | Automated safety check: Pass | MIT | |
| AI Learning JournalLeoYeAI/openclaw-master-skills | 2.2k | — | ~2.6k | Automated safety check: Pass | MIT | |
| Amazon Bedrockaws/agent-toolkit-for-aws | 2.8k | — | ~8.6k | Automated safety check: Pass | Apache-2.0 | |
| Gnogmickel/gno | 115 | 1 repos | ~1.6k | Automated safety check: Pass | MIT | |
| Gnogmickel/gno | 115 | — | ~11k | Automated safety check: Pass | MIT | |
| MCP Local RAGshinpr/mcp-local-rag | 412 | — | ~4.4k | Automated safety check: Pass | MIT |
LeoYeAI/openclaw-master-skills
AI 学习记录与成长追踪工具。用于记录 AI/LLM 学习笔记、使用心得、Prompt 技巧、工具体验等,并提供学习指导和规划。当用户提到以下任何话题时都应使用此 skill:AI 学习记录、学习笔记、AI 使用心得、Prompt 工程学习、模型对比体验、AI 工具使用记录、LLM 学习、RAG 学习、Agent 学习、MCP 学习、AI 微调实践、AI 学习规划、怎么学 AI、AI…
aws/agent-toolkit-for-aws
Builds generative AI applications on Amazon Bedrock. An agent skill from aws/agent-toolkit-for-aws.
gmickel/gno
Search local documents, files, notes, and knowledge bases. An agent skill from gmickel/gno.
gmickel/gno
Search local documents, files, notes, and knowledge bases. An agent skill from gmickel/gno.
shinpr/mcp-local-rag
Searches, saves, and maintains a local document index through a local RAG MCP server.
nkapila6/mcp-local-rag
Efficiently perform web searches using the mcp-local-rag server with semantic similarity ranking.
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
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.
lyonzin/knowledge-rag
Measure retrieval quality using evaluateretrieval (MRR@5 and Recall@5) and getindexstats.
Works with
Categories
At the start of every new session or when the topic shifts significantly, probe the knowledge base to learn what is indexed. RAG Onboard Context is an agent skill from lyonzin/knowledge-rag. At the start of every new session or when the topic shifts significantly, probe the knowledge base to learn what is indexed.
RAG Onboard Context fits situations like: tasks that involve Retrieval-augmented generation; tasks that involve Knowledge bases.
Run `npx skills add lyonzin/knowledge-rag --skill rag-onboard-context -a claude-code`. Or copy the skill folder (skills/foundation/rag-onboard-context in lyonzin/knowledge-rag) into .claude/skills/rag-onboard-context in your project. Claude Code loads it when a task matches its description.
Run `npx skills add lyonzin/knowledge-rag --skill rag-onboard-context -a codex`. Or copy the skill folder (skills/foundation/rag-onboard-context in lyonzin/knowledge-rag) into .agents/skills/rag-onboard-context 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-onboard-context -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-onboard-context, .gemini/skills/rag-onboard-context, .github/skills/rag-onboard-context and .opencode/skills/rag-onboard-context in your project.
SKILL.md names no scripts, command-line tools or credentials: RAG Onboard Context is instructions for the agent only.
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 Onboard Context 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.5k tokens (SKILL.md is roughly 6.2k 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 Onboard Context: AI Learning Journal (LeoYeAI/openclaw-master-skills, 2.2k stars), Amazon Bedrock (aws/agent-toolkit-for-aws, 2.8k stars), Gno (gmickel/gno, 115 stars) and Gno (gmickel/gno, 115 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.