onescience-resource-fetch

onescience-resource-fetch is a skill for Claude Code from onescience-ai/OneSkills. It costs 818 tokens per session (5,990 once invoked), scanned A, original, MIT.

A resource-download tool for finding and placing datasets or machine-learning model files from ModelScope into a local cache. It returns a local path and reports whether the resource was obtained completely.

In plain words
What is it for?
Use it to prepare datasets or model weights for a task, including tasks where the needed resource must first be inferred from the task description.
Why use it?
It addresses missing training data or model checkpoints without requiring the caller to know the exact repository name or manually manage downloads.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the oneskills plugin — 28 skills shipped together

Good fit Use it to prepare datasets or model weights for a task, including tasks where the needed resource must first be inferred from the task description.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/onescience-ai/oneskills/onescience-resource-fetch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add onescience-ai/OneSkills --skill onescience-resource-fetch
Clone the repo
git clone --depth 1 https://github.com/onescience-ai/OneSkills

Made for: Claude Code.

Or install oneskills, the plugin that ships this one along with the rest of its 28 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for onescience-resource-fetch

README.md
[![agentmods](https://agentmods.dev/badge/skills/onescience-ai/oneskills/onescience-resource-fetch/github.svg)](https://agentmods.dev/skills/onescience-ai/oneskills/onescience-resource-fetch)
Your own site
<a href="https://agentmods.dev/skills/onescience-ai/oneskills/onescience-resource-fetch"><img src="https://agentmods.dev/badge/skills/onescience-ai/oneskills/onescience-resource-fetch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for onescience-resource-fetch

Your own site · 80×15
<a href="https://agentmods.dev/skills/onescience-ai/oneskills/onescience-resource-fetch"><img src="https://agentmods.dev/badge/skills/onescience-ai/oneskills/onescience-resource-fetch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 818 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,990 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00818 $0.05990
Opus 5.5 $0.00327 $0.02396
Sonnet 5.5 $0.00164 $0.01198
Haiku 4.5 $0.00082 $0.00599

Measured 1mo ago against content hash 7a3c84f07689, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

onescience-resource-fetch scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/fetch_resource.py, scripts/modelscope_hub.py, scripts/resource_paths.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. 物化只能通过本技能 `scripts/fetch_resource.py provision` 完成,候选检索只能用同脚本的 `search` 子命令(只读);不得手写 `wget`/`curl`/`git clone` 绕过统一的缓存/锁/完整性校验/体积上限纪律(无论走 ModelScope 三级降级、HuggingFace 还是官网直链),也不得直接把 `modelscope download`/`huggingface-c
skills/onescience-resource-fetch/SKILL.md · 223 lines

How it starts

The opening of the file, as written. The whole thing — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OneScience Resource Fetch

你是 OneSkills 资源层的物化技能(type=resource)。资源层的知识召回由 onescience-primitives 负责,把资源真正取到本地由你负责:输入一个逻辑资源名(数据集名 / 模型名),输出一个可直接使用的本地绝对路径 + 完整性结论,或如实报告取不到及其原因。

渐进披露:正文只保留触发、硬门禁与契约字段;下载细节、契约扩展、校验细则下沉 references/,在标注「必须先读取」的位置必须先读再做。

何时使用

  • 任务所需的数据集或模型权重/checkpoint 在本地、工作区、缓存里都不存在,需从共享目录 / ModelScope / HuggingFace / 官网直链择一取得(按 references/source_selection.md 评估,ModelScope 默认但非唯一最优)。
  • 上游(orchestrator / executor)在 blocked_reason=data_missing、model_checkpoint_missing、resource_acquisition 类缺口上要求补数据准备。
  • 用户直说"把 X 数据集下到本地""取一下 MACE/ERA5 的权重""准备训练数据"。
  • 用户只给了裸资源名(没有组织名、没有 repo_id,甚至语种或大小写与仓库名不完全一致):站内检索 + 打分自动择优后直接物化,不回问"完整仓库名是什么"。
  • 用户只给了任务描述(连数据集/模型名都没提,如"训练一个猫狗图像分类器""复现这篇论文的 DFT 结果"):先做资源规划再检索定位,把选中的仓库与理由一并交回。

何时不要用

  • 缺的是知识(论文、参数惯例、晶格结构)→ onescience-primitives / onescience-online-knowledge。
  • 缺的是软件包或运行环境(pip/conda 库、VASP/LAMMPS)→ onescience-installer。
  • 已有本地路径且只需格式转换 / AI-Ready 标准化 / 切分 → onescience-data-standardizer。
  • 需要发布资源到 ModelScope(上传)→ onescience-modelscope-publish。
  • 用户显式禁止联网或要求只做只读校测 → 用 probe / --probe-only,不得下载。

强制协议

  1. 你接收统一 resource_retrieval_request、返回统一 resource_retrieval_result(intent=provision 时的扩展字段见 references/provision_contract.md,构造请求或返回结果前必须先读该文件)。
  2. 物化只能通过本技能 scripts/fetch_resource.py provision 完成,候选检索只能用同脚本的 search 子命令(只读);不得手写 wget/curl/git clone 绕过统一的缓存/锁/完整性校验/体积上限纪律(无论走 ModelScope 三级降级、HuggingFace 还是官网直链),也不得直接把 modelscope download/huggingface-cli download/curl 命令丢回给用户当结果。
  3. 自动择优必须透明:结果里的 selection(chosen/score/reasons/alternatives/excluded)与 fetch_attempts 原样带回,不得只报一个本地路径而不说选了哪个仓库、为什么选它、还试过哪些。
  4. 写入边界:只允许写 ~/.onescience/** 与调用方显式指定的目录。技能树 skills/** 与仓库知识区一律只读;资源内容交给调用方后由调用方自行读取,本技能不加工数据内容。
  5. 缺即下:段1 显式路径与段2 本地探测未命中即进入下载,不弹确认、不要求用户批准;但绝不允许在下载失败后用占位数据、随机张量、示例文件或缺失文件"凑齐"目录继续下游。
  6. 路径规范:下文 scripts/、references/ 均指实际加载的本技能目录下的路径,不假定技能装在当前工作目录;调用示例中的绝对路径由执行时拼出。
  7. 结果只声明事实:status、method、files/bytes、verification.checks 必须来自脚本真实输出;repo_not_found / authentication_failed 等缺口要原样透传 blocked_reason 与 next_recommendation。

Read the full file on GitHub · 223 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +19 lines · +205 tokens per session 7a3c84f07689
  2. 1mo ago First seen · 204 lines · 613 tokens per session scan A c6487555c8d8

Subscribe to this mod's changes

onescience-resource-fetch is a skill published in the GitHub repository onescience-ai/OneSkills (24 stars, last pushed yesterday), licensed MIT. It adds 818 tokens to every session and 5,990 once invoked, about $0.0033 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-03.

Related

onescience-resource-fetch compared with skills from other repositories

onescience-resource-fetch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
onescience-resource-fetchonescience-ai/OneSkillsSkill24yesterdayMITA818Claude Code
graph-retrievalstudy8677/repobrainSkill1.4k8d agoMITA46Claude Code
knowledge-layerstudy8677/repobrainSkill1.4k8d agoMITA42Claude Code
n8n-agentsczlonkowski/n8n-mcpSkill23kyesterdayMITA156Claude Code, Codex
bioprobenchPKU-YuanGroup/OpenAI4SSkill6792d agoMITA46Claude Code, Codex
recommendation-algorithm-designnirholas/three.wsSkill289todayApache-2.0A88Claude Code, Codex
opik-instrumentcomet-ml/opik-mcpSkill226todayApache-2.0A101Claude Code