vllm-ascend-workspace: Skill for Claude Code

.agents/skills/machine-management/SKILL.md

machine-management is a skill for Claude Code, Codex from maoxx241/vllm-ascend-workspace. It costs 66 tokens per session (3,686 once invoked), scanned A, original, MIT.

A workspace skill for adding, checking, repairing, or removing a managed remote NPU machine. An NPU is a processor designed for neural-network workloads; readiness here requires container SSH access and torch plus torch_npu checks.

In plain words
What is it for?
Configuring a remote NPU host, checking whether it is ready, repairing SSH or container drift, and removing a managed machine.
Why use it?
It separates machine setup and repair from code syncing, rebuilding, serving, and benchmarking, reducing the risk of changing the wrong part of the environment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is maoxx241/vllm-ascend-workspace's own configuration. It tells Claude Code and Codex how to work on vllm-ascend-workspace 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 vllm-ascend-workspace configures →

Reuse

Borrowing it

Nothing to install: this file belongs to maoxx241/vllm-ascend-workspace. 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/maoxx241/vllm-ascend-workspace/main/.agents/skills/machine-management/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/maoxx241/vllm-ascend-workspace

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 machine-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/maoxx241/vllm-ascend-workspace/machine-management/github.svg)](https://agentmods.dev/skills/maoxx241/vllm-ascend-workspace/machine-management)
Your own site
<a href="https://agentmods.dev/skills/maoxx241/vllm-ascend-workspace/machine-management"><img src="https://agentmods.dev/badge/skills/maoxx241/vllm-ascend-workspace/machine-management/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 machine-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/maoxx241/vllm-ascend-workspace/machine-management"><img src="https://agentmods.dev/badge/skills/maoxx241/vllm-ascend-workspace/machine-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,686 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00066 $0.03686
Opus 5 $0.00033 $0.01843
Sonnet 5 $0.00013 $0.00737
Haiku 4.5 $0.00007 $0.00369

Measured 6d ago against content hash 1f2d249375de, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

machine-management 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 6d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/_workflow_common.py, scripts/inventory.py, scripts/machine_add.py, …), 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.

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.

.agents/skills/machine-management/SKILL.md · 248 lines

How it starts

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

Machine Management

Manage the remote-machine layer for vllm-ascend-workspace.

A machine is ready only when the managed container:

  • accepts direct local -> container SSH by key, and
  • passes the container-side torch + torch_npu smoke test.

Ready does not imply code sync, rebuild, serving, or benchmark readiness.

Use this skill when

  • the user asks to add or configure a remote NPU machine
  • the user asks whether a managed machine is ready
  • the user asks to repair host SSH, container SSH, or managed-container drift
  • the user asks to remove a managed machine
  • repo-init was skipped and the local machine profile is still missing

Do not use this skill when

  • the task is code sync into the remote container
  • the task is replacing vllm or vllm-ascend source trees
  • the task is rebuilding Python packages or native extensions
  • the task is serving, benchmarking, or unrelated SSH work

Critical rules

  • Probe first.
  • Be idempotent and conservative.
  • Keep mutations bounded to the requested machine.
  • Treat the bare-metal host as a maintenance plane, not a developer workspace.
  • Keep local runtime state only under .vaws-local/.
  • Never write passwords or tokens into tracked files or .vaws-local/.
  • Never use scp, sftp, sshpass, or expect in this workflow.
  • Never default the container image silently. Ask the user to choose one of:
    • local-latest: inspect every image in the target host Docker daemon, keep repositories whose basename contains vllm-ascend (including registry / namespace prefixes and names such as company-vllm-ascend or vllm-ascend-dev), filter them for the detected A2 / A3 / A5 / 310P machine type, and deploy the newest compatible image by Docker image creation time; this never pulls
    • rc: resolve the newest official prerelease vllm-ascend tag, then try quay.nju.edu.cn/ascend/vllm-ascend:<tag> first and quay.io/ascend/vllm-ascend:<tag> second; this is the recommended developer track
    • main: quay.nju.edu.cn/ascend/vllm-ascend:main, then quay.io/ascend/vllm-ascend:main
    • stable: resolve the latest official non-prerelease vllm-ascend release tag, then try NJU first and quay.io second
    • custom: a full image reference with a concrete non-latest tag or digest
  • Treat auto, direct *:latest, and bare repositories without a tag as forbidden defaults for managed-machine bootstrap; local-latest is the explicit bounded discovery policy, not a moving registry tag.
  • Report and persist the actual selected image for the managed container, not only the requested image policy.
  • Resolve hardware-specific image tags from the detected machine type whenever the user chose rc, main, or stable: A2 uses the base tag, A3 appends -a3, A5 appends -a5, and 310P appends -310p.
  • Prefer a fresh detailed npu-smi board query over the bare Ascend910 label. Query an NPU ID with npu-smi info -l, query both board forms (-t board -i <id> and -t board -i <id> -c <chip-id>), and construct the SoC from Chip Type / Chip Name / NPU Name as applicable. In particular, Chip Name: Ascend910 plus NPU Name: 9362 means ascend910_9362 / A3. If detailed queries are unavailable, accept an exact bare Ascend910 token as an A3 compatibility fallback.
  • Treat /etc/profile.d/vaws-ascend-env.sh, SOC_VERSION, VAWS_NPU_SOC, inventory, and image-name inference as fallbacks or consistency hints only. A successful fresh detailed hardware query wins when old persisted metadata disagrees.
  • When detection remains inconclusive, stop and ask for an explicit machine type override instead of guessing.
  • Persist host.machine_type, host.soc, and container.machine_type into inventory, and write matching metadata under /etc/vaws/ plus /etc/profile.d/vaws-ascend-env.sh on the host and inside the managed container.
  • Before running apt-get update / apt-get install inside the container, rewrite apt sources to the fixed A3-tested NJU mirror (mirrors.nju.edu.cn). Do not spend bootstrap time probing alternate mirrors.
  • Prepend /usr/local/Ascend/driver/lib64/common, /usr/local/Ascend/driver/lib64/driver, and /usr/local/Ascend/driver/lib64 before calling npu-smi or the smoke test; source /etc/profile.d/vaws-ascend-env.sh when it exists.
  • Persist and reuse an explicit ATB C++ ABI setting during container bootstrap. Do not let login shells repeatedly call ATB set_env.sh without --cxx_abi, because that can import torch during shell startup and add 10+ seconds to ordinary SSH commands.
  • Long probe / bootstrap / smoke operations must expose bounded phase progress and have an overall timeout budget, not only a connect timeout.
  • On a missing local machine profile, never call workspace_profile.py ensure bare. Use either:
    • --username <letters-or-digits> after the user chose a name
    • --generate only after the user explicitly accepted the default/random option
  • If host key SSH is missing and the user already supplied the host password in the request, prefer one-shot scripted bootstrap first. Do not immediately push the user to a manual terminal command.

Read the full file on GitHub · 248 lines

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. 6d ago Changed · +2 lines 1f2d249375de
  2. 11d ago First seen · 246 lines · 66 tokens per session scan A c3cf7e5d0426

Subscribe to this mod's changes

machine-management is a skill published in the GitHub repository maoxx241/vllm-ascend-workspace (36 stars, last pushed 6d ago), licensed MIT. It adds 66 tokens to every session and 3,686 once invoked, about $0.0003 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

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

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

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens