AI Learning Journal
LeoYeAI/openclaw-master-skills
AI 学习记录与成长追踪工具。用于记录 AI/LLM 学习笔记、使用心得、Prompt 技巧、工具体验等,并提供学习指导和规划。当用户提到以下任何话题时都应使用此 skill:AI 学习记录、学习笔记、AI 使用心得、Prompt 工程学习、模型对比体验、AI 工具使用记录、LLM 学习、RAG 学习、Agent 学习、MCP 学习、AI 微调实践、AI 学习规划、怎么学 AI、AI…
Before answering any technical question, code request, architecture decision, or factual claim, call searchknowledge to check the local corpus.
$ npx skills add lyonzin/knowledge-rag --skill rag-check-first -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install lyonzin/knowledge-rag rag-check-first --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-check-first .claude/skills/rag-check-first && 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-check-first" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/foundation/rag-check-first into .claude/skills/rag-check-first/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-check-first", 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-check-firstType 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-check-first -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install lyonzin/knowledge-rag rag-check-first --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-check-first .agents/skills/rag-check-first && 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-check-first" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/foundation/rag-check-first into .agents/skills/rag-check-first/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-check-first", 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-check-first -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install lyonzin/knowledge-rag rag-check-first --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-check-first .cursor/skills/rag-check-first && 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-check-first" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/foundation/rag-check-first into .cursor/skills/rag-check-first/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-check-first", 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-check-first--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-check-first -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install lyonzin/knowledge-rag rag-check-first --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-check-first .gemini/skills/rag-check-first && 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-check-first" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/foundation/rag-check-first into .gemini/skills/rag-check-first/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-check-first", 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-check-firstInstalls 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-check-first -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-check-first .github/skills/rag-check-first && 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-check-first" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/foundation/rag-check-first into .github/skills/rag-check-first/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-check-first", 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-check-first -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-check-first --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-check-first .opencode/skills/rag-check-first && 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-check-first" agent skill from https://github.com/lyonzin/knowledge-rag/tree/master/skills/foundation/rag-check-first into .opencode/skills/rag-check-first/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-check-first", 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-check-firstBefore answering any technical question, code request, architecture decision, or factual claim, call searchknowledge to check the local corpus.
RAG Check First is an agent skill from lyonzin/knowledge-rag. 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 base.
Its SKILL.md is about 1.4k 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, Architecture decision records 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.
5 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 Check First loads about 1.4k tokens when it runs. Until then it costs about 86 tokens; SKILL.md has 526 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). 526 words, ~1,426 tokens.
.claude/skills/rag-check-first/SKILL.md (or your agent's skills folder).Trigger this skill before answering whenever the user asks:
Trigger keywords / patterns (non-exhaustive):
Do NOT trigger for:
Before drafting a single line of the answer, the agent will call search_knowledge at least once with a query derived from the user's message. The results shape the answer — training-data knowledge is only a fallback when RAG returns nothing relevant.
Extract the search query from the user's message. Prefer 2–5 keywords, not full sentences. Include domain-specific identifiers (class names, error codes, feature names, ADR IDs).
Call search_knowledge:
search_knowledge(query="<extracted keywords>", max_results=5, snippet_mode=true, min_score=0.15)snippet_mode=true keeps token consumption sanemin_score=0.15 cuts obvious noise (adjust higher for terse corpora)Read the top 3 results. Pay attention to search_method (hybrid > semantic / keyword alone), score, and reranker_score.
Decide the answer strategy based on what came back:
| RAG result | What to do |
|---|---|
≥1 result with score > 0.5 matching the intent | Answer primarily from the RAG content, quote relevant snippets, cite the source (path:line) |
| 1–3 results with lower scores (0.2–0.5) | Use as partial context, be explicit that the corpus does not cover this in depth, mix with training-data knowledge |
| 0 results after 2 attempts with varied phrasing | State it: "Local corpus does not have this. Answering from general knowledge — verify before acting." Optionally chain to rag-web-fallback |
If unsure between 2 corpus interpretations, call get_document on the most promising source to fetch full context before answering.
Example 1 — Design question
User: "How do we handle authentication in the payment service?"
Agent (internal):
search_knowledge(query="authentication payment service", max_results=5, min_score=0.15)
→ 3 hits: ADR-0018-auth.md (0.82), payment-service-design.md (0.71), auth-runbook.md (0.55)
Answer: "Per ADR-0018 (path: docs/adr/0018-auth.md), the payment service
uses mTLS between services and OAuth2 for user-facing endpoints..."Example 2 — Implementation request
User: "Add a new endpoint for refund cancellation."
Agent (internal):
search_knowledge(query="refund cancellation endpoint", max_results=5)
→ 2 hits: refund-service.md (0.68), refunds-api-v2.md (0.61)
Then: read the top result, model the new endpoint on the existing pattern,
cite the reference file in the reply.Example 3 — Empty corpus
User: "How do we deploy to Kubernetes?"
Agent (internal):
search_knowledge(query="kubernetes deploy", max_results=5)
→ 0 results
Reply: "Nothing in the local corpus about Kubernetes deployment. Answering
from general practices — please verify against your actual cluster setup
before running: [general k8s deployment steps]"search_knowledge. Single-word queries have poor recall.multilingual embedding profile OR translate the query to English before searching.rag-cite-sources — the natural follow-up: every claim carries a path:line citation.rag-deep-dive — if the top result needs full context, chain into get_document + search_similar.rag-web-fallback — the escape hatch when the corpus is empty.rag-onboard-context — call once at session start, then rag-check-first handles every subsequent request.© 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-check-first of lyonzin/knowledge-rag.
Open the folder on GitHubat commit df9cccb
RAG Check First 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 Check First this skilllyonzin/knowledge-rag | 292 | — | ~1.4k | 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
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.
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
Before answering any technical question, code request, architecture decision, or factual claim, call searchknowledge to check the local corpus. RAG Check First is an agent skill from lyonzin/knowledge-rag. Before answering any technical question, code request, architecture decision, or factual claim, call searchknowledge to check the local corpus.
RAG Check First fits situations like: any query that could be answered with prior work; tasks that involve Retrieval-augmented generation; tasks that involve Architecture decision records.
Run `npx skills add lyonzin/knowledge-rag --skill rag-check-first -a claude-code`. Or copy the skill folder (skills/foundation/rag-check-first in lyonzin/knowledge-rag) into .claude/skills/rag-check-first in your project. Claude Code loads it when a task matches its description.
Run `npx skills add lyonzin/knowledge-rag --skill rag-check-first -a codex`. Or copy the skill folder (skills/foundation/rag-check-first in lyonzin/knowledge-rag) into .agents/skills/rag-check-first 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-check-first -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-check-first, .gemini/skills/rag-check-first, .github/skills/rag-check-first and .opencode/skills/rag-check-first in your project.
SKILL.md names no scripts, command-line tools or credentials: RAG Check First 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 Check First 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.4k tokens (SKILL.md is roughly 5.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 Check First: 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.