stack-istack

stack-istack is a skill for Claude Code, Codex from nanxiaoyao/network-huawei-skills. It costs 120 tokens per session (2,817 once invoked), scanned A, original, MIT.

A guide for configuring and troubleshooting Huawei S-series switch stacking, which combines several physical switches into one logical device.

In plain words
What is it for?
Creating and checking iStack groups, managing members and master changes, configuring dual-active detection, and performing stack upgrades.
Why use it?
It helps handle the many roles, links, failover cases, and split or merge problems involved in a switch stack.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Creating and checking iStack groups, managing members and master changes, configuring dual-active detection, and performing stack upgrades.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nanxiaoyao/network-huawei-skills/stack-istack
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 nanxiaoyao/network-huawei-skills --skill stack-istack
Clone the repo
git clone --depth 1 https://github.com/nanxiaoyao/network-huawei-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 stack-istack

README.md
[![agentmods](https://agentmods.dev/badge/skills/nanxiaoyao/network-huawei-skills/stack-istack/github.svg)](https://agentmods.dev/skills/nanxiaoyao/network-huawei-skills/stack-istack)
Your own site
<a href="https://agentmods.dev/skills/nanxiaoyao/network-huawei-skills/stack-istack"><img src="https://agentmods.dev/badge/skills/nanxiaoyao/network-huawei-skills/stack-istack/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 stack-istack

Your own site · 80×15
<a href="https://agentmods.dev/skills/nanxiaoyao/network-huawei-skills/stack-istack"><img src="https://agentmods.dev/badge/skills/nanxiaoyao/network-huawei-skills/stack-istack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,817 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.00120 $0.02817
Opus 5 $0.00060 $0.01409
Sonnet 5 $0.00024 $0.00563
Haiku 4.5 $0.00012 $0.00282

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

Security

Grade A, and why

stack-istack 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 9d 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.

stack-istack/SKILL.md · 292 lines

How it starts

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

华为 S 系列堆叠 iStack 配置技能 (stack-istack)

适用平台 S1720/S2700/S5700/S6720 V200R011C10+ 文档来源 华为产品文档 dc_cfg_istack_*

iStack 把多台物理交换机虚拟成一台逻辑设备 统一管理 跨设备链路聚合 提带宽和冗余

触发场景

  • 新建堆叠 / 加堆叠成员
  • 堆叠成员上下线
  • 堆叠主备倒换
  • 堆叠分裂 / 多主检测 MAD
  • 堆叠合并
  • 跨设备链路聚合配置
  • 堆叠升级
  • 堆叠口异常 link DOWN

堆叠基本概念

角色 说明
Master 主 唯一 控制整个堆叠
Standby 备 主故障时升主
Slave 从 转发数据 多个
Stack-Port / Service-Port 堆叠口
Stack ID 堆叠成员编号 1-9
Stack Priority 优先级 数值大优先 默认 100

堆叠模式

1 Stack-Port 模式(专用堆叠口)

某些高端机型有专用堆叠卡或端口(如 S6720 后端口)

2 Service-Port 模式(业务口转堆叠)

常用 把业务口物理光口转为堆叠口 适合 S5700/S6720 等

配置六步走(Service-Port 模式)

1 配置堆叠 ID 与优先级

# 第一台 计划做 Master
system-view
stack
stack member 1 priority 200      # 优先级高 当 Master
stack member 1 renumber 1        # 设 ID 为 1(如有需要)

# 第二台
stack
stack member 1 renumber 2        # 设 ID 为 2
stack member 2 priority 150

2 配置堆叠口

# 第一台
interface stack-port 1/1
quit
interface 10GE 1/0/1
 shutdown
 stack-port 1/1
 undo shutdown
 quit

# 第二台
interface stack-port 2/1
quit
interface 10GE 1/0/1
 shutdown
 stack-port 2/1
 undo shutdown

3 保存配置并重启

save
reboot

重启后两台设备会建立堆叠 编号统一

4 验证堆叠

display stack
display stack configuration
display stack peers
display device

5 配置 MAD(多主检测 防分裂双主)

方式 A 直连模式(DAD)

两台堆叠成员之间用直连线(MAD 检测口)单独跑 MAD

interface GigabitEthernet 1/0/24
 mad detect mode direct
 quit
interface GigabitEthernet 2/0/24
 mad detect mode direct
方式 B 中继模式(通过聚合口)

通过 Eth-Trunk 上的 mad 协议跨堆叠检测

interface Eth-Trunk 1
 mad detect mode relay
方式 C 代理模式

通过外部交换机做 MAD 代理

6 配置跨设备链路聚合

interface Eth-Trunk 10
 mode lacp-static
 quit

# 一个成员口在堆叠成员 1 上
interface 10GE 1/0/2
 eth-trunk 10

# 另一个成员口在堆叠成员 2 上
interface 10GE 2/0/2
 eth-trunk 10

对下游表现为一个聚合 实现跨框冗余

命令体系

堆叠管理

命令 视图 说明
stack system 进入堆叠视图
stack member priority stack 优先级 数值大优先
stack member renumber stack 改 ID
stack member domain stack 堆叠域(多个堆叠隔离用)
stack slot system 单板视图(CE 系列)

Read the full file on GitHub · 292 lines

Files

What ships with it

2 files 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. 9d ago First seen · 292 lines · 120 tokens per session scan A cac2bbd3b0c9

Subscribe to this mod's changes

stack-istack is a skill published in the GitHub repository nanxiaoyao/network-huawei-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 120 tokens to every session and 2,817 once invoked, about $0.0006 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-31.

Related

Other skills, from other repositories

percepxion-oob

Manage Lantronix out-of-band (OOB) infrastructure via Percepxion central management platform: device inventory, serial port inspection via SLC CLI, firmware compliance, config management, security auditing, and closed-loop incident remediation. Use during outages, maintenance windows, compliance cycles, and…

automateyournetwork/netclaw · 70 tokens

meraki-security-appliance

Cisco Meraki MX security appliance (read-only) — L3/L7 firewall rules, content filtering, IDS/IPS and AMP settings, site-to-site VPN, traffic shaping via Cisco's official Meraki MCP. Use when auditing Meraki firewall rules, reviewing content filtering, or inspecting MX VPN configuration.

automateyournetwork/netclaw · 66 tokens

unifi-wifi

Use when UniFi Wi-Fi is slow, unstable, or being tuned: "my wifi is slow but speedtest on the router is fast", "great signal, terrible speed", "should I use 80MHz or 40MHz", "channel planning", "co-channel interference", "DFS channels", "my APs keep picking the same channel", "audit my SSIDs", "hidden SSID", or…

t3chnaztea/unifi-skills · 202 tokens

unifi-connect

Use when connecting an agent to a UniFi gateway (UDM Pro, UDM SE, Cloud Gateway) for the first time, or when API calls to one are failing: empty response bodies, curl returning HTTP 000, 401 on a key that works elsewhere, "how do I get a UniFi API key", "SSH is closed on my UDM", "connect to UniFi", "talk to my UniFi…

t3chnaztea/unifi-skills · 190 tokens

unifi-clients

Use when operating on UniFi clients, devices, switch ports, or DHCP: "block a device", "kick a client off wifi", "restart an access point", "power cycle a PoE port", "move a device to a different VLAN", "my device is on the wrong subnet after I changed the port", "set a DHCP reservation", "change DHCP DNS servers"…

t3chnaztea/unifi-skills · 152 tokens

unifi-context-map

Use when an agent keeps guessing wrong about a UniFi network, when starting recurring agent work against a gateway, or when asked to "map my network", "document my UniFi setup", "build a network inventory", "what's on my network", "why does the agent keep using the wrong AP", or "audit my reservations against…

t3chnaztea/unifi-skills · 155 tokens