Agent skill · AI & Agents

rag

Implements Retrieval-Augmented Generation for AI models to fetch and use external knowledge.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill rag-alphaonedev-openclaw-graph --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Requires: []
Path: skills/ai-llm/rag-alphaonedev-openclaw-graph/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# rag ## Purpose This skill implements Retrieval-Augmented Generation (RAG) for OpenClaw, enabling AI models to query external knowledge bases and integrate results into responses, enhancing accuracy for tasks like question-answering. ## When to Use Use this skill when your AI needs dynamic access to external data, such as querying a vector database for real-time information in NLP tasks, handling knowledge gaps in models, or augmenting responses in chatbots. Avoid it for purely generative tasks without external dependencies. ## Key Capabilities - Fetches documents from vector databases (e.g., Pinecone, FAISS) using similarity search. - Integrates retrieved content into AI prompts for generation. - Supports embedding models for query vectorization (e.g., via Hugging Face transformers). - Handles chunking of large documents and relevance scoring. - Configurable via JSON files for custom sources and thresholds. ## Usage Patterns Always set the API key via environment variable: `export OPENCLAW_API_KEY=$SERVICE_API_KEY`. For CLI, use `openclaw rag` with required flags. In code, import the skill and call methods like `rag.retrieve()`. Pattern: Query -> Retrieve -> Augment -> Generate.

What's inside
Steps it walks through
  1. Purpose
  2. When to Use
  3. Key Capabilities
  4. Usage Patterns
  5. Common Commands/API
  6. Integration Notes
  7. Error Handling
  8. Concrete Usage Examples
  9. Graph Relationships
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the rag skill do?

Implements Retrieval-Augmented Generation for AI models to fetch and use external knowledge.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill rag-alphaonedev-openclaw-graph --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going