oe-package-install

oe-package-install is a skill for Claude Code, Codex from HorizonRobotics/OE-Skills. It costs 71 tokens per session (2,293 once invoked), scanned D, original, Apache-2.0.

A skill for installing OE package components locally in a Python virtual environment, an isolated Python setup, after OE package detection. It checks Python, CUDA, and PyTorch versions, selects matching wheel files, installs them, and sets local execution mode when the user agrees.

In plain words
What is it for?
Use it to detect compatible Python, CUDA, and PyTorch versions, create a virtual environment, install all matching OE wheel packages, and verify the local setup.
Why use it?
It avoids installing incompatible packages by comparing the local computer with the versions included in the OE package. It also supports running the toolchain without Docker.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to detect compatible Python, CUDA, and PyTorch versions, create a virtual environment, install all matching OE wheel packages, and verify the local setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/horizonrobotics/oe-skills/oe-package-install
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 oe-package-install
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 oe-package-install

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/horizonrobotics/oe-skills/oe-package-install"><img src="https://agentmods.dev/badge/skills/horizonrobotics/oe-skills/oe-package-install.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,293 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 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.00071 $0.02293
Opus 5 $0.00036 $0.01146
Sonnet 5 $0.00014 $0.00459
Haiku 4.5 $0.00007 $0.00229

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

Security

Grade D, and why

oe-package-install scanned grade D with 2 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.

The scan reads SKILL.md. This mod also ships 1 executable file (install.sh), 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

**原因**:系统缺少 `python3.10-venv` 包,且可能无 sudo 权限无法安装。

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **卸载**:`rm -rf .horizon/venv`,删除 `.env.oe-package` 中的 `VENV_DIR` 和 `VENV_ACTIVATE_CMD`,将 `EXECUTION_MODE` 改回 `docker`
horizon/skills/horizon-router/oe-package-install/SKILL.md · 192 lines

How it starts

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

OE 包本地安装

执行方式

本 Skill 应通过 subagent 执行。 主 agent 在用户确认本地安装后,应将本文件的完整内容作为 subagent prompt 派发执行。subagent 负责环境检测、venv 创建、组件安装和验证,完成后汇报安装结果,主 agent 读取更新后的 .env.oe-package 继续后续流程。

目标

在用户环境中创建 Python venv,将 OE 包内的所有组件 whl 安装到 venv 中,使后续工具链命令可以本地执行(无需 Docker)。

触发条件

oe-package-detection 完成后(.horizon/.env.oe-package 已生成),向用户询问是否本地安装:

  • 用户选择本地安装 → 进入本 Skill
  • 用户选择不安装 → 维持 EXECUTION_MODE=docker,继续后续任务

安装流程

1. 读取 OE 包信息

.horizon/.env.oe-package 读取 OE_DIR,扫描 <OE_DIR>/package/host/ai_toolchain/ 下所有 .whl 文件。

2. 检测本地环境

逐项采集:

检测项 命令 要求
Python 版本 python3 --version 必须为 3.103.11
CUDA 版本 nvidia-smi(右上角)或 nvcc --version 必须为 11.8 / 12.6 / 12.8 之一
PyTorch 版本 python3 -c "import torch; print(torch.__version__, torch.version.cuda)" 必须与 OE 包提供的组合匹配

3. 版本匹配

OE 包提供的版本组合由 horizon_plugin_pytorch 的 wheel 文件名决定硬性约束:

匹配规则

  1. 扫描 <OE_DIR>/package/host/ai_toolchain/ 下所有 horizon_plugin_pytorch-*.whl 文件名
  2. 从文件名提取 CUDA 版本(cuXXX)、PyTorch 版本(torchXXX)、Python 版本(cpXXX
  3. 对比本地环境的 CUDA / PyTorch / Python 版本,选择匹配的 wheel
  4. 任一不匹配 → 终止,输出当前环境和所需版本的对比表

匹配失败时的提示模板

当前环境不满足 OE 包要求:

| 项目 | 当前版本 | 需要版本 |
|------|---------|---------|
| Python | 3.x | 3.10 或 3.11 |
| CUDA | x.x | 11.8 / 12.6 / 12.8 |
| PyTorch | x.x.x | 2.3 / 2.6 / 2.8(需与 CUDA 匹配) |

请先安装对应版本后重试。

4. 创建 venv 并安装

运行自动化脚本完成 venv 创建、组件安装、验证和 .env.oe-package 更新:

# 从 .horizon/.env.oe-package 读取 OE_DIR
OE_DIR=$(grep '^OE_DIR=' .horizon/.env.oe-package | cut -d= -f2)
bash .horizon/skills/horizon-router/oe-package-install/install.sh "$OE_DIR"

脚本内置的固定规则(已固化在 install.sh 中,无需手动处理):

  1. --without-pip --system-site-packages 创建 venv,继承系统 PyTorch,避免 ensurepip 不可用
  2. python3 -m pip 而非裸 pip,避免 --without-pip venv 中 pip 路径回退到系统
  3. constraints.txt 锁 torch 版本 + --no-deps 安装 hmct/hmct_gpu,防止依赖解析拉入新版 torch
  4. --no-deps 安装 horizon_torch_samples,避免 pycocotools 编译失败

Read the full file on GitHub · 192 lines

Files

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.

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 · 192 lines · 71 tokens per session scan D 8188b5b2bae8

Subscribe to this mod's changes

oe-package-install is a skill published in the GitHub repository HorizonRobotics/OE-Skills (19 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 71 tokens to every session and 2,293 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens