360 Secure SkillHub
360 安全技能中心

setup

该 Skill 通过 uv 创建 Python 3.11+ 虚拟环境,安装 onnxruntime 和 pyyaml,并验证安装结果,用于为 oracle 推理守护进程准备运行环境;模型目录尚未随包提供。

分类:开发
athola
athola
热度 59.00
最近更新 2026-12-01 11:11:50

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add athola/nm-oracle-setup
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
setup
description
Provisions the oracle ML inference daemon with onnxruntime via uv
version
1.10.3
triggers
["setting up local ONNX model inference for skill quality evaluation"]
metadata
{"openclaw":{"homepage":"https://github.com/athola/claude-night-market/tree/master/plugins/oracle","emoji":"🦞"}}
source
claude-night-market
source_plugin
oracle

Night Market Skill: ported from claude-night-market/oracle. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Oracle Setup

Provision the ML inference environment.

When NOT To Use

  • The daemon is already provisioned and only needs to be used
  • Evaluating skill quality itself (use abstract:skills-eval)

What This Does

  1. Creates a Python 3.11+ virtual environment using uv
  2. Installs onnxruntime and pyyaml into the venv
  3. Verifies the installation

Prerequisites

  • uv must be installed
  • Internet connection for initial download

Steps

  1. Run provisioning:
cd plugins/oracle && uv run python -c "
from oracle.provision import provision_venv, get_venv_path
result = provision_venv(get_venv_path())
print(result.message)
"
  1. Report result to the user.
  2. If successful, tell the user the daemon starts on the next session once a models/ directory exists in the plugin. None ships yet, so until then the hook logs "models directory missing" to daemon.log and consumers use local scoring.
  3. If failed, show the error and suggest checking uv and network.

Exit Criteria

  • provision_venv() returns a result with a non-error message and the venv path exists on disk under plugins/oracle/
  • onnxruntime is importable inside the provisioned venv; verified by uv run python -c "import onnxruntime" exiting 0
  • User receives a success message that states the daemon needs a models/ directory to start, or a failure message citing the specific error and whether it is a uv or network issue
  • On failure, no partial venv left in a broken state that would prevent a clean retry