Magnetar: Skill for Codex

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

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

A hidden preparation stage for Magnetar projects that makes Pulsar2 and chip-specific C++ cross-compilation tools available.

In plain words
What is it for?
Use it to prepare and validate builds for AX650, AX630C, AX620Q, or AX620E hardware, including the LLM build path.
Why use it?
It checks that the required SDKs, compilers, and model-building tools exist before compiling software for supported chips.

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/toolchain/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 toolchain

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/axera-tech/magnetar/toolchain"><img src="https://agentmods.dev/badge/skills/axera-tech/magnetar/toolchain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 667 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.00034 $0.00667
Opus 5.5 $0.00014 $0.00267
Sonnet 5.5 $0.00007 $0.00133
Haiku 4.5 $0.00003 $0.00067

Measured 1mo ago against content hash 387eaa6250cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

toolchain 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 1mo 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/toolchain/SKILL.md · 38 lines

What it actually says

TOOLCHAIN

执行

pulsar_image = magnetar.stages.toolchain.run()

LLM 分支(model_route=llm)

  • 额外确认 pulsar2 llm_build2 -h 可用(Pulsar2 ≥ 6.0);不可用 → blocked, 提示升级独立包(./scripts/install_pulsar2.sh 默认自动获取最新发布版);
  • 准备 ax-llm-build 工具:magnetar.stages.llm.ensure_axllm_build_tools(task_dir) (默认经 GH_PROXY 克隆 https://github.com/AXERA-TECH/ax-llm-build.git 到 TASK_DIR/cache/ax-llm-build);
  • Pulsar2 只使用独立安装包(强制不用 Docker):未设置 PULSAR2_HOME 时, magnetar.pulsar2_util.ensure_pulsar2_package 自动获取最新发布版 *_package.tar.gz 并解压到 ~/.cache/magnetar/pulsar2/<版本>/ (仓库 AXERA-TECH/Pulsar2:下载 URL ModelScope 优先、hf-mirror 兜底; PULSAR2_VERSION 可固定版本、PULSAR2_PACKAGE=lite|full 可选变体);
  • BSP/runtime 下载地址以 ax-pipeline scripts/build_common.sh 为唯一来源 (按芯片取 MSP_URL_DEFAULT / TOOLCHAIN_URL_DEFAULT,CXX_BSP_URL / CXX_TOOLCHAIN_URL 可覆盖),不再去 ax-knowledge / ModelScope 翻 SDK 直链;
  • 记录板端 axllm 安装方式(官方 install.sh,axllm 分支)到 task.md。

验证

  • Pulsar2 独立包可用(bin/pulsar2 存在且 pulsar2 --version 正常,非 Docker)
  • C++ BSP 交叉编译器存在(AX650: msp_50 + Arm GNU 9.2 aarch64;AX630C: msp_20e + Arm GNU 9.2 aarch64;AX620Q/AX620E: msp_20e + ax620q_bsp_sdk uclibc)
  • LLM 分支:pulsar2 llm_build2 -h 正常;ax-llm-build 工具就绪

STOP

  • Pulsar2 独立包不可用且无法从 ModelScope/HF AXERA-TECH/Pulsar2 获取
  • BSP/交叉编译器缺失且无法下载
  • LLM 分支:Pulsar2 无 llm_build2 且无法升级 → blocked
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. 1mo ago Changed · +4 lines 387eaa6250cc
  2. 2mo ago First seen · 34 lines · 34 tokens per session scan A 9862ad5f6ef8

Subscribe to this mod's changes

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

Related

Other skills, from other repositories

doca-argp

Use this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring docaargpinit → register params → docaargpstart → docaargpdestroy in order; picking a parameter type from the full public enum (DOCAARGPTYPESTRING, INT, BOOLEAN, DEVICE, DEVICEREP…

NVIDIA/skills · 277 tokens

holoscan-module-lifecycle

Develop external Holoscan Modules with the Holoscan CLI and use them in Holoscan applications: scaffold, test, Python bindings, DEB/WHEEL packaging, and clean-consumer proof.

NVIDIA/skills · 47 tokens

cuopt-numerical-optimization-api

LP, MILP, and QP (beta) with cuOpt — Python, C, and CLI. Use when the user is solving LP, MILP, or QP with any cuOpt interface.

NVIDIA/skills · 51 tokens

unreal-cpp-architecture

Use when writing Unreal Engine 5 C++ - the gameplay framework classes and where logic belongs, UObject/AActor/UActorComponent lifecycle, UPROPERTY/UFUNCTION and GC-safe pointers (TObjectPtr, TWeakObjectPtr), subsystems, the C++/Blueprint boundary, Enhanced Input, tick discipline, and compiling from the command line.

makifbaysal/tasktrooper · 75 tokens

native-memory-safety-and-ffi

Use when the diff changes C, C++ or Objective-C, Rust unsafe blocks, Go unsafe or cgo, JNI, Python ctypes/cffi or C extensions, Swift unsafe pointers, C# unsafe or Marshal code, or a native plugin, parser or loader that sees untrusted bytes - bounds, integer overflow before allocation, unit confusion, lifetimes…

makifbaysal/tasktrooper · 93 tokens

torchtalk-analyzer

Analyze PyTorch internals across Python, C++, and CUDA layers using the TorchTalk MCP server. Use when asked about how PyTorch operators work internally, where functions are implemented, what would break if code is modified, or finding tests for PyTorch operators.

opendatahub-io/ai-helpers · 58 tokens