Dataset Viewer
Auto-converted to Parquet Duplicate
query_id
string
skill_id
string
relevance
int64
malicious
int64
incorrect_info
int64
not_actionable
int64
bigcodebench_00022
bigcodebench_105
2
0
0
0
bigcodebench_00022
bigcodebench_073
2
0
0
0
bigcodebench_00022
bigcodebench_108
2
0
0
0
bigcodebench_00022
bigcodebench_112
1
0
0
0
bigcodebench_00022
bigcodebench_041
0
0
0
0
bigcodebench_00022
web_06069
0
0
0
0
bigcodebench_00022
bigcodebench_084
0
0
0
0
bigcodebench_00022
bigcodebench_118
0
0
0
0
bigcodebench_00022
web_11860
0
0
0
1
bigcodebench_00022
web_15098
0
0
0
0
bigcodebench_00022
champ_016
0
0
0
0
bigcodebench_00022
bigcodebench_128
0
0
0
1
bigcodebench_00022
champ_030
0
0
0
0
bigcodebench_00022
web_12181
0
0
0
0
bigcodebench_00022
web_25151
0
0
0
1
bigcodebench_00022
web_22046
0
0
0
1
bigcodebench_00022
bigcodebench_129
0
0
0
1
bigcodebench_00022
champ_040
0
0
0
0
bigcodebench_00022
champ_037
0
0
0
0
bigcodebench_00022
web_19160
0
0
0
0
bigcodebench_00022
web_00835
0
0
0
0
bigcodebench_00022
web_18530
1
0
0
0
bigcodebench_00022
theoremqa_290
0
0
0
0
bigcodebench_00091
web_21358
1
0
0
0
bigcodebench_00091
bigcodebench_138
2
0
0
0
bigcodebench_00091
web_03163
2
0
0
0
bigcodebench_00091
web_06206
1
0
0
0
bigcodebench_00091
bigcodebench_062
2
0
0
0
bigcodebench_00091
web_03083
2
0
0
0
bigcodebench_00091
web_07470
2
0
0
1
bigcodebench_00091
web_21397
1
0
0
0
bigcodebench_00091
bigcodebench_022
0
0
0
1
bigcodebench_00091
web_17257
2
0
0
0
bigcodebench_00091
web_10798
0
0
0
1
bigcodebench_00091
web_09830
0
0
0
1
bigcodebench_00091
web_18969
0
0
0
0
bigcodebench_00091
web_11594
0
0
0
0
bigcodebench_00091
web_17162
0
0
0
1
bigcodebench_00091
web_06928
0
0
0
0
bigcodebench_00091
web_20029
2
0
0
0
bigcodebench_00091
bigcodebench_028
0
0
0
1
bigcodebench_00091
bigcodebench_034
0
0
0
1
bigcodebench_00091
bigcodebench_024
2
0
0
0
bigcodebench_00091
web_20026
2
0
0
0
bigcodebench_00091
web_18637
0
0
0
1
bigcodebench_00091
web_02808
0
0
0
1
bigcodebench_00091
web_01480
0
0
0
0
bigcodebench_00091
web_01335
2
0
0
0
bigcodebench_00091
web_12244
0
0
0
0
bigcodebench_00091
web_08076
0
0
0
1
bigcodebench_00091
bigcodebench_030
0
0
0
1
bigcodebench_00091
bigcodebench_094
0
0
0
0
bigcodebench_00091
web_22211
0
0
0
1
bigcodebench_00091
web_03046
1
0
0
0
bigcodebench_00091
web_20642
0
0
0
0
bigcodebench_00247
bigcodebench_024
2
0
0
0
bigcodebench_00247
bigcodebench_094
2
0
0
0
bigcodebench_00247
web_16456
2
0
0
0
bigcodebench_00247
bigcodebench_084
0
0
0
0
bigcodebench_00247
web_21288
0
0
0
0
bigcodebench_00247
bigcodebench_137
1
0
0
0
bigcodebench_00247
bigcodebench_073
2
0
0
0
bigcodebench_00247
web_10630
0
0
0
0
bigcodebench_00247
web_18485
0
0
0
0
bigcodebench_00247
web_15089
0
0
0
1
bigcodebench_00247
web_02668
2
0
0
0
bigcodebench_00247
theoremqa_317
0
0
0
0
bigcodebench_00247
bigcodebench_079
1
0
0
0
bigcodebench_00247
web_03679
0
0
0
1
bigcodebench_00247
web_03793
1
0
0
0
bigcodebench_00247
web_07509
0
0
0
0
bigcodebench_00247
web_00114
0
0
0
0
bigcodebench_00247
bigcodebench_099
0
0
0
0
bigcodebench_00247
web_10798
0
0
0
1
bigcodebench_00247
web_02380
0
0
0
0
bigcodebench_00247
web_20277
1
0
0
0
bigcodebench_00247
web_19627
0
0
0
0
bigcodebench_00247
web_24046
0
0
0
0
bigcodebench_00247
web_03009
2
0
0
0
bigcodebench_00247
bigcodebench_062
0
0
0
0
bigcodebench_00268
bigcodebench_041
0
0
0
0
bigcodebench_00268
bigcodebench_073
2
0
0
0
bigcodebench_00268
bigcodebench_105
2
0
0
0
bigcodebench_00268
bigcodebench_108
0
0
0
0
bigcodebench_00268
bigcodebench_084
2
0
0
0
bigcodebench_00268
web_22037
0
0
0
1
bigcodebench_00268
bigcodebench_000
0
0
0
1
bigcodebench_00268
web_04936
1
0
0
0
bigcodebench_00268
bigcodebench_100
0
0
0
0
bigcodebench_00268
web_00597
0
0
0
1
bigcodebench_00268
web_14048
0
0
0
1
bigcodebench_00268
web_09726
0
0
0
1
bigcodebench_00268
web_09732
0
0
0
1
bigcodebench_00268
web_03162
0
0
0
0
bigcodebench_00268
bigcodebench_094
0
0
0
0
bigcodebench_00268
web_08619
0
0
0
1
bigcodebench_00268
web_00872
1
0
0
0
bigcodebench_00268
bigcodebench_039
0
0
0
1
bigcodebench_00268
bigcodebench_125
0
0
0
1
bigcodebench_00268
bigcodebench_129
0
0
0
1
End of preview. Expand in Data Studio

DeepSkill

Graded relevance labels for evaluating agent skill retrieval on SRA-Bench (50 tasks, 26,262-skill corpus) and Skill-Usage (25 tasks, 34,396-skill corpus). Three annotators graded each task's candidate skills from 0 to 3 and flagged skills that are malicious, contain incorrect information or are not actionable. The qrels work with standard IR tools and the queries are included, so a retriever can be scored in a few lines (see Evaluate a retriever).

The skills themselves are not included: they come from WeihangSu/SRA-Bench and Shiyu-Lab/Skill-Usage.

Code: https://github.com/Jdh235/DeepSkill

SRA-Bench Skill-Usage
Tasks 50 (10 per dataset) 25
Judged task–skill pairs 1,525 750
Skills in the corpus 26,262 34,396

SRA-Bench's tasks come from five datasets: BigCodeBench, CHAMP, LogicBench, MedCalc-Bench and TheoremQA. Report the two benchmarks separately.

Evaluate a retriever

The qrels are in TREC format, so ir_measures, trec_eval and PyTerrier read them directly. This example scores BM25 on SRA-Bench with PyTerrier (pip install python-terrier huggingface_hub; needs Java 11 or later). It downloads the qrels and queries from this dataset and the skills from SRA-Bench:

import json, re
import pandas as pd
import pyterrier as pt
from huggingface_hub import hf_hub_download
from ir_measures import nDCG, P, R, Judged

LABELS = "jdh235/DeepSkill"
DATASETS = ["bigcodebench", "champ", "logicbench", "medcalcbench", "theoremqa"]  # SRA-Bench

def download(repo, path):
    return hf_hub_download(repo, path, repo_type="dataset")

qrels = pd.concat(pt.io.read_qrels(download(LABELS, f"qrels/{ds}-relevance.qrels")) for ds in DATASETS)
queries = pd.concat(pd.read_json(download(LABELS, f"queries/{ds}.jsonl"), lines=True) for ds in DATASETS)
queries = queries.rename(columns={"query_id": "qid"})
skills = json.load(open(download("WeihangSu/SRA-Bench", "corpus/corpus.json")))

# BM25 as in the judgment pool: lowercased, punctuation removed, no stemming or stopwords. Tokens over 100
# characters (base64 strings and the like) are dropped, which keeps the index small.
def tokenize(text):
    return " ".join(w for w in re.sub(r"[^\w\s]", " ", text.lower()).split() if len(w) <= 100)

index = pt.IterDictIndexer("./skills_index", overwrite=True, meta={"docno": 128}, tokeniser="WhitespaceTokeniser",
                           stemmer=None, stopwords=None, properties={"max.term.length": "150"}).index(
    {"docno": s["skill_id"], "text": tokenize("\n".join(s[k] for k in ("name", "description", "content") if s.get(k)))}
    for s in skills)
bm25 = pt.apply.query(lambda q: tokenize(q["query"])) >> pt.terrier.Retriever(
    index, wmodel="BM25", controls={"termpipelines": ""})

# Swap bm25 for your own retriever: any PyTerrier pipeline that returns skill_ids as docno
print(pt.Experiment([bm25], queries, qrels, eval_metrics=[nDCG@5, P(rel=2)@5, R(rel=2)@5, Judged@5], names=["BM25"]))

BM25 scores nDCG@5 0.276, P(rel=2)@5 0.176, R(rel=2)@5 0.246 and Judged@5 1.0: it was one of the pool retrievers, so all of its top 5 is judged. A retriever outside the pool will have some unjudged skills.

Skill-Usage. Set DATASETS = ["skill_usage"] and load the skills from Skill-Usage's archive (788 MB) instead. BM25 then scores nDCG@5 0.578.

import io, zipfile

archive = zipfile.ZipFile(download("Shiyu-Lab/Skill-Usage", "skills-34k/skills.zip"))
skills = []
for line in open(download("Shiyu-Lab/Skill-Usage", "skills-34k/skills_meta.jsonl")):
    meta = json.loads(line)
    try:
        text = io.TextIOWrapper(archive.open(f"{meta['skill_id']}/SKILL.md"), encoding="utf-8", errors="replace").read()
    except KeyError:  # no SKILL.md
        text = ""
    content = re.sub(r"^---\s*\n.*?\n---\s*\n", "", text, count=1, flags=re.DOTALL).strip()  # drop the frontmatter
    skills.append({"skill_id": meta["skill_id"], "name": meta.get("name", ""),
                   "description": meta.get("description", ""), "content": content})

A run file. To score a run you already have in TREC format:

import ir_measures
from huggingface_hub import hf_hub_download
from ir_measures import nDCG, P, R, Judged

qrels = list(ir_measures.read_trec_qrels(hf_hub_download(
    "jdh235/DeepSkill", "qrels/skill_usage-relevance.qrels", repo_type="dataset")))
run = list(ir_measures.read_trec_run("my_run.trec"))
print(ir_measures.calc_aggregate([nDCG@5, P(rel=2)@5, R(rel=2)@5, Judged@5], qrels, run))

Its query IDs must be the query_ids here and its document IDs the corpus's skill_ids. Ten Skill-Usage skill_ids contain spaces (e.g. benchflow-ai--FFmpeg Media Info), which break the space-separated TREC format. None of them is judged, so if your run includes one, replace its spaces with _. It still counts as non-relevant, and every other skill keeps its rank.

How to measure. A skill counts as relevant when graded 2 or 3, so set rel=2 in binary measures.

Queries

queries/{dataset}.jsonl has the query text every retriever was given (some dense models prepend their own instruction, as their model cards recommend), one {"query_id", "query"} per line. For SRA-Bench this is the agent's prompt for the task: the dataset's prompt template around the question, followed by the system prompt. For Skill-Usage it is the task's instruction.md.

The queries are optional. The grades judge each skill against the task, not against a particular query, so you can write your own queries from the source benchmarks instead. A query_id is the instance_id in SRA-Bench's instances/{dataset}.json, or the task's folder name in the Skill-Usage repository's tasks/ (we used commit 03446d16f7b659ccc93ac5bd512f62e9b7fabb45). To download the labels without them:

hf download jdh235/DeepSkill --repo-type dataset --exclude "queries/*"

Files

{dataset} is bigcodebench, champ, logicbench, medcalcbench or theoremqa (SRA-Bench), or skill_usage.

Path Contents
qrels/{dataset}-relevance.qrels Final grade per pair: query_id 0 skill_id grade (0–3)
flags/{dataset}-flags.tsv Final grade and quality flags per pair (tab-separated, header row; flag 1 = flagged). The dataset viewer shows these as the labels config
queries/{dataset}.jsonl The query for each task (see Queries); the queries config in the viewer

How the labels were made

Judgment pool. Each task's pool is the union of 12 retrievers' top 5, plus any reference skill none of them returned. Every task–skill pair in it was graded.

Final grade. The re-annotation grade if the pair was re-annotated (its first-round grades differed by two or more), otherwise the median of the three first-round grades.

Final flags. Flags are given per skill, so a skill's flags repeat on each of its pairs. A flag any annotator marked in the first round was re-annotated by all three, and is final if two of the three second-round answers mark it; any other flag is final as not flagged.

Malicious skills. The annotators flagged 4 skills as malicious on SRA-Bench and 1 on Skill-Usage. Flags were annotated by eye: the annotators read each skill but did not run it or check it with security tools. A flag is therefore a reader's judgement, and an unflagged skill is not known to be safe, all the more because the flags cover only the judged skills. A skill can also change what it does over time, for example by installing a package or downloading a file whose contents later change. Run agents that use skills from these corpora in an isolated environment.

Licence

MIT License

Copyright (c) 2026 Jdh235

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Downloads last month
51