Magnetar: Skill for Codex

.codex/skills/magnetar/hidden/runonboard/SKILL.md

runonboard is a skill for Codex from AXERA-TECH/Magnetar. It costs 27 tokens per session (546 once invoked), scanned A, original, MIT.

A deployment-and-checking stage for AX hardware boards. It can run Python or C++ SDK examples on a board and record whether the model works, along with runtime and memory measurements.

In plain words
What is it for?
Use it to verify AX model inference on target hardware, including chat-model serving, sample prompts, latency, token speed, and memory use when that path is enabled.
Why use it?
It catches problems that cannot be confirmed on a development computer, such as board connectivity, missing tools, incorrect model settings, or insufficient memory.

Skill for Codex

Written for Codex: installed under .codex/.

This is AXERA-TECH/Magnetar's own configuration. It tells Codex how to work on Magnetar itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Magnetar configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AXERA-TECH/Magnetar. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AXERA-TECH/Magnetar/main/.codex/skills/magnetar/hidden/runonboard/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/AXERA-TECH/Magnetar

Made for: 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 runonboard

README.md
[![agentmods](https://agentmods.dev/badge/skills/axera-tech/magnetar/runonboard.svg)](https://agentmods.dev/skills/axera-tech/magnetar/runonboard)
Your own site
<a href="https://agentmods.dev/skills/axera-tech/magnetar/runonboard"><img src="https://agentmods.dev/badge/skills/axera-tech/magnetar/runonboard.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 546 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.00027 $0.00546
Opus 5 $0.00014 $0.00273
Sonnet 5 $0.00005 $0.00109
Haiku 4.5 $0.00003 $0.00055

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

Security

Grade A, and why

runonboard 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 7d 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.

.codex/skills/magnetar/hidden/runonboard/SKILL.md · 36 lines

What it actually says

RUNONBOARD

执行

board_metrics = magnetar.stages.runonboard.run(task_dir, sample, target_hw, pwd)

需要 PyAXEngine 在板端可用。C++ 需先交叉编译(用 AARCH64_GXX 环境变量或 BSP 工具链)。

选到板后先 ensure_remote_infer(board):检查 TCP 18500,daemon 未装则用官方 release 静默安装(装后可扫端口发现板子)。

LLM 分支(model_route=llm)

  1. magnetar.stages.llm.install_axllm(board):板端装 ax-llm(install.sh, 默认 axllm 分支,install.sh 下载经 GH_PROXY 代理,AX650 片上编译耗时较长,超时放宽);
  2. serve_axllm(board, compile/llm_model_dir, port=8000):上传模型目录 + axllm serve 后台启动,轮询 /health 就绪;
  3. 板端运行 Python SDK 示例(OpenAI 兼容客户端):validate_chat ≥3 组 prompt greedy 语义验证,记录 TTFT(serve 日志 ttft:)/ completion_tokens / token 速率 (avg token/s)/ 系统内存增量(free -m 前后)/ CMM 占用 (/proc/ax_proc/mem_cmm_info 前后);
  4. runonboard_report.md 记录上述指标;语义验证失败 → 检查 tokenizer/config/ 内存预检(mem_guard)并重试 ≤3 次。

验证

  • Python SDK 板端推理成功,Python/C++ 输出 cosine ≥ 0.98
  • runonboard_report.md 含 board host、chip_type、延迟、内存
  • LLM 分支:axllm serve 就绪 + ≥3 组 prompt 全非空 + TTFT/token 速率/内存已记录

STOP

  • 无(BOARD 未配置时自动跳过,返回 None)
  • LLM 分支:axllm 安装失败(缺 gcc/网络)且无法获取预编译产物 → STOP 说明缺失项
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. 7d ago First seen · 36 lines · 27 tokens per session scan A db2db228482f

Subscribe to this mod's changes

runonboard is a skill published in the GitHub repository AXERA-TECH/Magnetar (22 stars, last pushed 3d ago), licensed MIT. It adds 27 tokens to every session and 546 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

spark-environment-setup

Set up a working ML training/inference environment on NVIDIA DGX Spark (GB10, aarch64, CUDA 13). Use when installing PyTorch/Unsloth/TRL/vLLM on DGX Spark, hitting libcudart or wheel-ABI errors on aarch64, or choosing between NGC containers and bare pip installs.

wshobson/agents · 76 tokens

spark-memory-thermal-ops

Manage unified memory and thermals during long-running ML jobs on NVIDIA DGX Spark. Use when planning memory headroom for a training run on GB10, when a job OOMs on unified memory, or when monitoring temperature and power during multi-hour training.

wshobson/agents · 59 tokens

spark-training-gotchas

Preflight and diagnose the ten known failure modes for ML training on NVIDIA DGX Spark. Use when a training run on DGX Spark fails to start, OOMs below the 128GB limit, slows down mid-run, or before any multi-hour training job on GB10.

wshobson/agents · 63 tokens

terraform-module-library

Build reusable Terraform modules for AWS, Azure, GCP, and OCI infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

wshobson/agents · 44 tokens

amc-run-rtsp-calibration

Calibrate a new dataset from live RTSP camera streams via the AutoMagicCalib REST API. Use when the user provides RTSP URLs or asks to calibrate live cameras; VIOS records clips, AMC ingests them, then runs calibration.

NVIDIA/skills · 59 tokens

amc-run-video-calibration

Calibrates pre-recorded cam.mp4 datasets through the AutoMagicCalib REST API. Use for user-supplied local MP4s; route live RTSP streams to amc-run-rtsp-calibration.

NVIDIA/skills · 57 tokens