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.
npx skills add onescience-ai/OneSkills --skill onescience-resource-fetchgit clone --depth 1 https://github.com/onescience-ai/OneSkillsWrote 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.
[](https://agentmods.dev/skills/onescience-ai/oneskills/onescience-resource-fetch)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 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,不得下载。
强制协议
- 你接收统一
resource_retrieval_request、返回统一resource_retrieval_result(intent=provision时的扩展字段见references/provision_contract.md,构造请求或返回结果前必须先读该文件)。 - 物化只能通过本技能
scripts/fetch_resource.py provision完成,候选检索只能用同脚本的search子命令(只读);不得手写wget/curl/git clone绕过统一的缓存/锁/完整性校验/体积上限纪律(无论走 ModelScope 三级降级、HuggingFace 还是官网直链),也不得直接把modelscope download/huggingface-cli download/curl命令丢回给用户当结果。 - 自动择优必须透明:结果里的
selection(chosen/score/reasons/alternatives/excluded)与fetch_attempts原样带回,不得只报一个本地路径而不说选了哪个仓库、为什么选它、还试过哪些。 - 写入边界:只允许写
~/.onescience/**与调用方显式指定的目录。技能树skills/**与仓库知识区一律只读;资源内容交给调用方后由调用方自行读取,本技能不加工数据内容。 - 缺即下:段1 显式路径与段2 本地探测未命中即进入下载,不弹确认、不要求用户批准;但绝不允许在下载失败后用占位数据、随机张量、示例文件或缺失文件"凑齐"目录继续下游。
- 路径规范:下文
scripts/、references/均指实际加载的本技能目录下的路径,不假定技能装在当前工作目录;调用示例中的绝对路径由执行时拼出。 - 结果只声明事实:
status、method、files/bytes、verification.checks必须来自脚本真实输出;repo_not_found/authentication_failed等缺口要原样透传blocked_reason与next_recommendation。
What ships with it
13 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/general/tools/modelscope-resource-provisioning/metadata.json 1.4 KB
- assets/general/tools/modelscope-resource-provisioning/spec.md 1.7 KB
- assets/general/tools/modelscope-resource-provisioning/usage.md 2.2 KB
- assets/general/tools/modelscope-resource-provisioning/workflow_planning.md 2.1 KB
- references/download_workflow.md 10 KB
- references/provision_contract.md 9.1 KB
- references/repo_id_inference.md 8.7 KB
- references/resource_planning.md 11 KB
- references/source_selection.md 7.9 KB
- references/verification_rules.md 4.2 KB
- scripts/fetch_resource.py 45 KB runs code
- scripts/modelscope_hub.py 40 KB runs code
- scripts/resource_paths.py 14 KB runs code
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.
- 1mo ago Changed · +19 lines · +205 tokens per session 7a3c84f07689
- 1mo ago First seen · 204 lines · 613 tokens per session scan A c6487555c8d8
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.
onescience-resource-fetch compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| onescience-resource-fetchonescience-ai/OneSkills | Skill | 24 | yesterday | MIT | A | 818 | Claude Code |
| graph-retrievalstudy8677/repobrain | Skill | 1.4k | 8d ago | MIT | A | 46 | Claude Code |
| knowledge-layerstudy8677/repobrain | Skill | 1.4k | 8d ago | MIT | A | 42 | Claude Code |
| n8n-agentsczlonkowski/n8n-mcp | Skill | 23k | yesterday | MIT | A | 156 | Claude Code, Codex |
| bioprobenchPKU-YuanGroup/OpenAI4S | Skill | 679 | 2d ago | MIT | A | 46 | Claude Code, Codex |
| recommendation-algorithm-designnirholas/three.ws | Skill | 289 | today | Apache-2.0 | A | 88 | Claude Code, Codex |
| opik-instrumentcomet-ml/opik-mcp | Skill | 226 | today | Apache-2.0 | A | 101 | Claude Code |