Tencent

R3 Skill — AI skill for Claude Code

AI community

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.


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:


2. Architecture

                    query
                      │
                      ▼
        ┌─────────────────────────────┐
        │  Stage 1 · R3-Embedding      │   bi-encoder, cosine