Add shared skills tree and rename MCP NMS tools to *Nms*.

Canonical playbooks live under skills/; netx-mcp 0.3.0 exposes queryNmsAlarms et al. with nms_ne_id aliases.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-06 01:46:21 +08:00
parent 5e7d14f253
commit 13ce2482ab
14 changed files with 463 additions and 145 deletions

18
skills/README.md Normal file
View file

@ -0,0 +1,18 @@
# netx skills(唯一真源)
**一组一个 skill。** 只在这里改正文。
| Group | Skill bundle | 工具(MCP 裸名 / DSH = `netx__`+stem) |
|-------|--------------|----------------------------------------|
| `nms` | `nms/netx-nms/` | `queryNmsAlarms` … `sqlQueryNms` |
| `common` | `common/netx-common/` | managed CLI + `findTopologyPaths` |
| `topology` | `topology/netx-topology/` | 画布 / Fabric / dual_unit / 布图 |
## DSH 怎么用
1. 运行时优先:`NETX_SKILLS_ROOT` → 旁路 `../netx/skills` → 包内 `presets/netxops/skills`
2. 发 npm 前:`powershell -File netxops/scripts/sync-skills-from-netx.ps1`
3. Settings → 能力组开关:开哪组就注册哪组的 **tools + 对应 skill**
4. 其它预设可强制挂:`dsh-netxops/tools-nms|common|topology`
MCP / Cursor:skill 根直接指本目录。MCP 包内不镜像 skills。