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 xi-zhao/OpenQuantum --skill ocean-optimizationgit clone --depth 1 https://github.com/xi-zhao/OpenQuantumWrote 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/xi-zhao/openquantum/ocean-optimization)<a href="https://agentmods.dev/skills/xi-zhao/openquantum/ocean-optimization"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/ocean-optimization/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/xi-zhao/openquantum/ocean-optimization"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/ocean-optimization.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.00041 | $0.00821 |
| Opus 5.5 | $0.00016 | $0.00328 |
| Sonnet 5.5 | $0.00008 | $0.00164 |
| Haiku 4.5 | $0.00004 | $0.00082 |
Grade A, and why
ocean-optimization scanned grade A with 0 findings 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 4d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Ocean QUBO 与 Ising 本地采样
原生 SDK 路径
本能力同时支持 D-Wave Ocean SDK 的原生公开 API。用户需要 BQM、CQM、离散模型、变量、约束、sampler 与 SampleSet 时,由 Agent 在固定依赖环境中编写和运行任务代码,不限于下文便捷 Tool 的预设模型。
使用 node scripts/sdk-access.mjs inspect ocean-optimization 定位环境,按完整 SDK 工作流执行。模块导航:dimod、dwave.samplers、dwave.system、dwave.cloud、dwave.optimization;导航不是 API 白名单。
完整 Ocean 元包已进入依赖锁;本地模型、采样器与云客户端共享原生 API。连接 Leap、提交收费或 QPU 作业仍需用户授权与凭据。
下文关于模型、门集、输入与预算的限制描述便捷 Tool 的合同;原生 SDK 另受上游版本、可选依赖、宿主资源与用户授权约束。已禁用或被拒绝的动作不能借代码路径绕过。执行状态和科研验收分别报告。
Agent 经 Harness 调用 ocean_local 提供的 sample_ocean_model。本 Skill 负责模型选择和结果解释,Tool 在独立 Python 环境执行真实上游 SDK。
输入 linear[i]、quadratic=[{i,j,bias}] 与 offset;双变量项禁止重复或 i=j。能量为 offset + sum(linear[i]*v_i) + sum(bias*v_i*v_j)。
vartype=BINARY 使用 0/1,SPIN 使用 -1/+1;两者按 s=2*x-1 转换。输出 binaryModel 和 spinModel 均包含完整 offset,不可在比较能量时丢弃常数项。
method=exact 使用 dimod.ExactSolver,穷举 2^N 配置。method=simulated_annealing 使用 dwave.samplers.SimulatedAnnealingSampler;调用方选择 numReads、numSweeps 和 32 位有符号非负 seed。这些参数仅影响模拟退火,结果按样本聚合;numOccurrences 总和等于 numReads。
两种方法均是本地经典 CPU 计算。模拟退火找到的 minimumEnergyFound 不是最优性证书,exhaustive=false 时不得宣称全局最优。本接入没有 Leap、云混合求解器或量子退火硬件。
计算规模由调用方选择,后端数值表示限制仍适用。资源限制用 execution 设置,与模型参数分开。先运行 node scripts/setup-paper-tools.mjs ocean-optimization 显式准备固定依赖;计算调用不安装依赖或联网,数值库可能写本地缓存。
固定上游版本:dimod 0.12.22 + dwave-samplers 1.8.0;来源与许可见上游仓库(Apache-2.0)。本地数值和协议检查属于开发证据;当前 L1,scientificValidation=not_evaluated,成功执行不等于最终科学 Acceptance。
What ships with it
6 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.
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.
- 4d ago Changed · +13 lines dac956f97e87
- 19d ago First seen · 21 lines · 41 tokens per session scan A 7b58bb416af4
ocean-optimization is a skill published in the GitHub repository xi-zhao/OpenQuantum (75 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 821 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-28.
Other skills, from other repositories
code-review
Reviews a supplied code path or diff for correctness, security, maintainability, and style without executing or modifying it.
memory-search-mcp
Long-term memory and context retrieval for AI agents. Semantic search across conversation history with care-weighted relevance.
animate
Build an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a…
gc-minimal-zine-poster-v0-3
Generate or analyze poetic paper-texture minimal zine posters with large negative space, a small editorial collage or focal element, experimental typography, and one clear color accent. Use when the user gives a theme, sentence, article, mood, object, photo, content brief, reference images, or an image folder and…
ask-sonner
Guide to Sonner, the React toast library — install and wire up the Toaster, pick the right toast() call, promise and loading toasts, updating, dismissing and persisting toasts, styling, theming and icons, positioning and multiple toasters. Use when working with Sonner or troubleshooting it — toasts that don't appear…
kill-ai-slop
Find and remove AI slop — the generic, machine-default visual and copy tics of vibe-coded products — from a web project. Use when the user asks to "kill AI slop", "de-slop", "remove the AI look", "make this not look AI-generated", or clean up a landing page / UI / docs that feels templated. Detects and fixes the…