j6-ucp-infer-generating

j6-ucp-infer-generating is a skill for Claude Code, Codex from HorizonRobotics/OE-Skills. It costs 86 tokens per session (675 once invoked), scanned A, original, Apache-2.0.

A guide for generating C++ code for UCP-based neural-network inference, the process of running a trained model to produce predictions. It covers loading a .hbm model, preparing tensors, processing input, running inference, reading outputs, and releasing resources.

In plain words
What is it for?
Use it to generate a specific inference stage, choose the relevant API calls, load models, allocate tensor memory, submit frames, parse results, and release resources.
Why use it?
It keeps generated code aligned with the required inference order and the available UCP APIs instead of leaving important device-memory or cache steps ambiguous.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the AskUserQuestion tool.

Good fit Use it to generate a specific inference stage, choose the relevant API calls, load models, allocate tensor memory, submit frames, parse results, and release resources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/horizonrobotics/oe-skills/j6-ucp-infer-generating
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 HorizonRobotics/OE-Skills --skill j6-ucp-infer-generating
Clone the repo
git clone --depth 1 https://github.com/HorizonRobotics/OE-Skills

Made for: Claude Code, Codex.

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 j6-ucp-infer-generating

README.md
[![agentmods](https://agentmods.dev/badge/skills/horizonrobotics/oe-skills/j6-ucp-infer-generating/github.svg)](https://agentmods.dev/skills/horizonrobotics/oe-skills/j6-ucp-infer-generating)
Your own site
<a href="https://agentmods.dev/skills/horizonrobotics/oe-skills/j6-ucp-infer-generating"><img src="https://agentmods.dev/badge/skills/horizonrobotics/oe-skills/j6-ucp-infer-generating/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 j6-ucp-infer-generating

Your own site · 80×15
<a href="https://agentmods.dev/skills/horizonrobotics/oe-skills/j6-ucp-infer-generating"><img src="https://agentmods.dev/badge/skills/horizonrobotics/oe-skills/j6-ucp-infer-generating.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 675 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00086 $0.00675
Opus 5 $0.00043 $0.00338
Sonnet 5 $0.00017 $0.00135
Haiku 4.5 $0.00009 $0.00068

Measured 12d ago against content hash 89268e8e2806, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

j6-ucp-infer-generating 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 12d 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.

horizon/skills/ucp/j6-ucp-infer-generating/SKILL.md · 49 lines

What it actually says

基本推理步骤

  1. Step 01 - .hbm 模型加载 references/steps/step-01-load-model.md
  2. Step 02 - 张量信息与内存申请 references/steps/step-02-prepare-tensor.md
  3. Step 03 - 预处理(数据填充与缓存刷新) references/steps/step-03-preprocess.md
  4. Step 04 - 执行推理 references/steps/step-04-run-inference.md
  5. Step 05 - 输出解析 references/steps/step-05-postprocess.md
  6. Step 06 - 资源释放 references/steps/step-06-release-resource.md

文档路径均为本目录下的相对路径。其中 Step 03/04/05 需要每个推理帧重做,其他步骤可以复用。

分析行为规则

  • 当用户的生成要求涉及到一个或多个步骤时,再阅读对应的步骤文档。
  • 遇到不明确的 API 调用时,阅读 references/api/index.md 路由详细 API 介绍。

代码生成规则

  • 代码生成聚焦 UCP 接口调用,无关代码(信息打印、非 UCP 接口返回值的检查、异常处理、命令行参数解析等)默认不关注。
  • 代码生成时必须参考用户代码上下文,统一代码风格,复用已有逻辑。

代码生成流程

必须逐个 step 生成代码,用户确认后再进入下个 step 分析生成流程

  1. 阅读用户代码上下文和用户请求。
  2. 确定代码生成涉及的 Steps 列表。
  3. 对每个涉及的 Step 串行执行: 3.1 阅读对应的 Step 文档。 3.2 根据上下文或用户请求确定具体分支,若可以确定 -> 继续下一步;否则 -> AskUserQuestion -> 重新执行此步骤。 3.3 确定要使用的 UCP API 列表。 3.4 对每个涉及的 API 串行执行: 3.4.1 确定 API 所在头文件。 3.4.2 根据上下文或用户请求确定 API 的每个参数,若可以确定 -> 继续下一步;否则 -> AskUserQuestion -> 重新执行此步骤。 3.4.3 API 参数均确定后进行下一个 API 的处理。 3.5 分支均确定后进行下一个 Step 的处理。
  4. 执行代码生成并检查正确性。
Files

What ships with it

52 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.

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. 12d ago First seen · 49 lines · 86 tokens per session scan A 89268e8e2806

Subscribe to this mod's changes

j6-ucp-infer-generating is a skill published in the GitHub repository HorizonRobotics/OE-Skills (19 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 86 tokens to every session and 675 once invoked, about $0.0004 per session on Opus 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.