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 HorizonRobotics/OE-Skills --skill j6-plugin-exportgit clone --depth 1 https://github.com/HorizonRobotics/OE-SkillsWrote 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/horizonrobotics/oe-skills/j6-plugin-export)<a href="https://agentmods.dev/skills/horizonrobotics/oe-skills/j6-plugin-export"><img src="https://agentmods.dev/badge/skills/horizonrobotics/oe-skills/j6-plugin-export/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/horizonrobotics/oe-skills/j6-plugin-export"><img src="https://agentmods.dev/badge/skills/horizonrobotics/oe-skills/j6-plugin-export.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.00055 | $0.03102 |
| Opus 5.5 | $0.00022 | $0.01241 |
| Sonnet 5.5 | $0.00011 | $0.00620 |
| Haiku 4.5 | $0.00006 | $0.00310 |
Grade A, and why
j6-plugin-export 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 286 lines — stays where its author put it; the contents beside it link to each section on GitHub.
为 Horizon QAT 模型创建独立 HBIR 导出脚本(hbdk4.export)
目标
在使用 horizon_plugin_pytorch 的 QAT 工具链完成校准/训练后,创建一个独立的导出脚本,将 QAT 模型导出为 HBIR IR 模块,用于后续编译部署。
本 Skill 只做一件事:创建独立导出脚本,脚本中包含
from horizon_plugin_pytorch.quantization import hbdk4 as hb4
from hbdk4.compiler import save
model.eval()
set_fake_quantize(model, FakeQuantState.VALIDATION)
hbir_model = hb4.export(model, example_inputs, ...)
save(hbir_model, "output_path")
不引入任何其他改动(不改模型结构、不改 qconfig、不改 prepare/convert、不改训练/数据逻辑、不在训练或评测脚本中添加导出逻辑)。
强约束(必须遵守)
1) 必须以独立导出脚本的形式执行
导出逻辑必须放在独立脚本中,禁止在训练脚本、评测脚本或其他已有脚本中添加导出逻辑。
原因:
- 导出是一次性动作,不应与训练/评测流程耦合
- 独立脚本便于单独调试、复用和版本管理
- 避免训练/评测脚本因导出逻辑变得臃肿
2) 独立导出脚本的标准结构
独立导出脚本必须包含以下步骤,按固定顺序执行:
set_march— 设置目标平台- 构建/加载 QAT 模型 — 从 checkpoint 恢复
model.eval()— 切换到推理模式set_fake_quantize(model, FakeQuantState.VALIDATION)— 切换到验证状态- QAT 模型验证 — 检查模型包含 fake-quant 模块,确保是 QAT 模型
- 构造
example_inputs hb4.export(model, example_inputs, ...)— 执行导出save(hbir_model, output_path)— 保存 HBIR 模型到文件
3) 不在训练/评测脚本中添加导出逻辑
即使训练/评测脚本末尾是"导出的自然位置",也不应在其中插入导出代码。应创建独立脚本。
4) 导出前必须验证模型是 QAT 模型
hb4.export 不区分 QAT 模型和 float 模型,如果误传 float 模型,导出会静默成功但结果无意义。因此:
Agent 侧约束:创建导出脚本前,必须确认用户提供的 checkpoint 是 QAT checkpoint(已完成 prepare + 校准/训练),而非 float checkpoint。如果用户未明确说明,应主动询问确认。
运行时检查:导出脚本中必须在 export 之前加入 QAT 模型验证,检查模型是否包含 fake-quant 模块:
# 验证模型是 QAT 模型(包含 fake-quant 模块)
_has_fq = any(
"FakeQuantize" in type(m).__name__
for m in model.modules()
)
assert _has_fq, (
"当前模型不包含 FakeQuantize 模块,不是 QAT 模型。"
"请确认使用的是 QAT checkpoint 而非 float checkpoint。"
)
标准改法(通用模板)
1) 增加 import
import torch
import horizon_plugin_pytorch as horizon
from horizon_plugin_pytorch.quantization import hbdk4 as hb4
from horizon_plugin_pytorch.quantization import FakeQuantState, set_fake_quantize
from hbdk4.compiler import save
2) 独立导出脚本完整模板
import torch
import horizon_plugin_pytorch as horizon
from horizon_plugin_pytorch.quantization import hbdk4 as hb4
from horizon_plugin_pytorch.quantization import FakeQuantState, set_fake_quantize
from hbdk4.compiler import save
# 1. 设置 march
horizon.march.set_march(horizon.march.March.NASH_E)
# 2. 构建/加载 QAT 模型
model = build_model()
model.load_state_dict(torch.load("qat_checkpoint.pth"))
# 3. eval
model.eval()
# 4. 切换到 VALIDATION
set_fake_quantize(model, FakeQuantState.VALIDATION)
# 5. 验证是 QAT 模型
_has_fq = any("FakeQuantize" in type(m).__name__ for m in model.modules())
assert _has_fq, (
"当前模型不包含 FakeQuantize 模块,不是 QAT 模型。"
"请确认使用的是 QAT checkpoint 而非 float checkpoint。"
)
# 6. 构造 example_inputs
example_input = torch.randn(1, 3, 224, 224)
# 7. 导出
hbir_model = hb4.export(model, (example_input,))
# 8. 保存
save(hbir_model, "output.bc")
What ships with it
1 file 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.
- 2mo ago First seen · 286 lines · 55 tokens per session scan A 88b38631bce0
j6-plugin-export is a skill published in the GitHub repository HorizonRobotics/OE-Skills (27 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 55 tokens to every session and 3,102 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-08-30.
j6-plugin-export compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| j6-plugin-exportHorizonRobotics/OE-Skills | Skill | 27 | 4mo ago | Apache-2.0 | A | 55 | Claude Code, Codex |
| agent-platform-model-registrygoogle/skills | Skill | 22k | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |
| foundry-config-setupmicrosoft/agent-framework | Skill | 15k | yesterday | MIT | A | 65 | Claude Code, Codex |
| google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skills | Skill | 22k | yesterday | Apache-2.0 | A | 132 | Claude Code, Codex |
| training-checkwanshuiyin/Auto-claude-code-research-in-sleep | Skill | 19k | 3d ago | MIT | A | 35 | Claude Code |
| nemo-automodel-launcher-configNVIDIA/skills | Skill | 3.9k | yesterday | Apache-2.0 | A | 30 | Claude Code |
| finetuningmicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 132 | Claude Code |