R3 Skill — AI skill for Claude Code
A query-conditional benchmark (R3-Skill) and a two-stage retriever (R3-Embedding + R3-Reranker).
How to install R3 Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Tencent/R3-Skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What R3 Skill does
A query-conditional benchmark (R3-Skill) and a two-stage retriever (R3-Embedding + R3-Reranker).
Alternatives in AI
- 09 Query Engine — Prompt 09: Get the QueryEngine (Core LLM Loop) Functional 2.3k ★
- Wiki Query — Query the LLM Wiki and synthesize an answer 2.3k ★
- Codeseek — Rust-powered code intelligence CLI for AI coding agents 764 ★
README
Skill Is Not Document
A query-conditional benchmark (**R3-Skill**) and a two-stage retriever (**R3-Embedding + R3-Reranker**) for LLM agent skill routing.
- 📄 Paper: Skill Is Not Document: A Query-Conditional Benchmark and Two-Stage Retriever for LLM Agent Skill Routing
- 🧩 This repository contains the code, docs, R3-Skill data, and a toy example. Model weights are
hosted on Hugging Face — R3-Embedding-0.6B /
R3-Rerank-0.6B — and should be placed under
models/for reproduction.
1. Layout
├── infer.py two-stage retrieval (embedding recall → reranker rerank)
├── reproduce.py reproduce the paper's R3-Skill test numbers
├── example_skills.jsonl toy skill library for a quick test
├── requirements.txt
├── README.md / CONTRIBUTING.md / CODE_OF_CONDUCT.md / LICENSE
├── models/ not tracked by Git; place downloaded model weights here
│ ├── r3-embedding/ bi-encoder (fine-tuned from Qwen3-Embedding-0.6B)
│ └── r3-reranker/ cross-encoder (fine-tuned from Qwen3-Reranker-0.6B)
└── data/ R3-Skill benchmark data
├── test.jsonl 5,696 test queries
└── skills_test.jsonl 2,050 test-pool skills
Skill identifiers are released as opaque ids (`skill-00000`, …); each id maps consistently across the query and skill-pool files. Train and test skill pools are disjoint.
The skill pool and query set draw on the following public resources:
- https://huggingface.co/datasets/ThakiCloud/SKILLRET
- https://huggingface.co/datasets/pipizhao/SkillRouter-Eval-Core
- https://gitcode.com/zhoukc42/AiSkill
- https://github.com/jnMetaCode/agency-agents-zh
2. Architecture
query
│
▼
┌─────────────────────────────┐
│ Stage 1 · R3-Embedding │ bi-encoder, cosine
Related Skills
Brick SR1
brick is a smart AI Models router, based on complexity & capabilities extraction from the query to the models
Evermind AI Agent Memory
Evermind: cross-session memory recovery for AI agents. Your agent never cold-starts again - always-loaded iden
New Tool
Scaffold a single-purpose interactive PolicyEngine tool (calculator or widget) — Next.js 14 + Tailwind 4 + ui-
Embedded
Set up Prismatic embedding — marketplace, workflow builder, or custom UI — in your web application
Ayontclaudian
ayontclaudian — Obsidian plugin embedding Claude Code, Codex, Antigravity & Kimi coding-agent CLIs with a unif
Claude Lottie Skill
Claude Code skill for searching LottieFiles and embedding brand-coherent Lottie animations
Related Agents
RAG Retriever
PROACTIVELY use this agent for dynamic external knowledge access during response generation. Specializes in do
Graph Retriever
Intelligent, iterative retrieval over the derived graph query layer. Given a maintainer's information need, co
RAG Pipeline Reviewer
Review RAG pipeline changes for contract compliance — embedding provider priority, Qdrant point-id format, con