Logo van Ensp Lab Authoring

Ensp Lab Authoring

Community
JWM0203
ensp-lab-authoring

Full workflow to author an eNSP lab from scratch when only a .topo file exists and no tutorial is provided. Produces deployment guide → real-device dry run → tutorial docx + summary md + diagrams. Trigger when the user hands you only a .topo (optionally with saved vrpcfg.zip) and asks to "design, run, and document" a Huawei WLAN/routing experiment.

Overzicht

UitgeverJWM0203
Repositoryensp-skills
Skillnaamensp-lab-authoring
Sterren
29
Forks
1
Meegeleverde bestanden
19
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 19

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door JWM0203 op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Ensp Lab Authoring in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/JWM0203/ensp-skills/tree/main/ensp-lab-authoring
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/JWM0203/ensp-skills.git /tmp/ensp-skills
mkdir -p .claude/skills
cp -r /tmp/ensp-skills/ensp-lab-authoring .claude/skills/ensp-lab-authoring
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Ensp Lab Authoring in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Ensp Lab Authoring automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Ensp Lab Authoring niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

eNSP Lab Authoring Skill

Purpose

User provides a .topo (and possibly partial vrpcfg.zip) with no tutorial. Deliver:

  1. A deployment guide (paper-level inference before touching devices)
  2. Real device configuration via telnet
  3. Tutorial docx + summary md + architecture diagrams matching user's existing lab series style

When to trigger

  • User says "design + run + document this lab", or similar
  • Input contains .topo but no .docx tutorial
  • Experiment involves Huawei WLAN (AC6005, AD9430, R250D, AP2050) or routing (AR2220, S3700/S5700)

Do not trigger when: tutorial already exists and user only wants config deployment (use ensp-skills instead).

Five-phase workflow

Phase 1          Phase 2         Phase 3          Phase 4           Phase 5
Paper recon  →   Env precheck →  Deploy config →  Verify + debug →  Produce docs
(topo XML)       (firewall,      (telnet to       (AP online,       (docx + md +
 (vrpcfg.zip)     VBox zombies)   device save)     DHCP, ping)       matplotlib png)
     ↓                ↓                ↓                ↓                  ↓
  guide.md       devices boot    all saved      300% ping passes     3 artifacts

Phase 6 (optional): Archive to personal KB (creates skill card + updates index + log).


Phase 1 — Paper reconnaissance

Goal: Without booting devices, infer a full deployment guide from .topo + any saved vrpcfg.cfg. Mark all items needing user confirmation.

Steps

  1. Parse .topo XML (UTF-16 encoded)
    • <devices><dev> → name, model, com_port (telnet port), system_mac
    • <lines><interfacePair srcIndex tarIndex> → physical links (see interface index table below)
    • <txttips> → author notes (often stale / contradictory, treat as hints only)
  2. Unzip vrpcfg.zip from each device UUID subfolder. Existing configs are the hard constraints (especially static routes on AR).
  3. Infer IP plan — priority order:
    1. Match AR's existing static routes (highest priority, hard to change)
    2. Respect .topo <txttips> IP annotations
    3. Fall back to series convention (mgmt VLAN 100/10, service VLAN 101, etc.)
  4. Output <lab-dir>/<labN>部署指导文档.md with 11 sections including explicit "Items pending confirmation".

Script: scripts/parse_topo.py Detail: references/01_topology_parsing.md


Phase 2 — Environment precheck

Goal: Make sure devices can actually boot.

Common blockers

SymptomCauseFix
"Add eNSP to firewall" popup; "Allow" button greyed with "managed by organization"Windows public-profile firewall on + local sec policy restrictionnetsh advfirewall set allprofiles state off
Devices don't start; VBox shows <inaccessible> VMsPrior crashed eNSP session left orphansVBoxManage unregistervm "{uuid}" --delete; VBoxManage closemedium disk "{uuid}"
AR telnet prompt is <Huawei> not <AR1> (config not loaded)vrpcfg.zip not remounted after VBox clone rebuildJust redeploy in Phase 3 (don't dig into mount mechanism)
AP takes 60-120s to respond; telnet returns # (busybox)Normal boot time for AD9430/R250DWait for <Huawei> prompt

Script: scripts/vbox_cleanup.py — dry-run audit + apply cleanup Detail: references/02_env_precheck.md


Phase 3 — Config deployment (telnet)

Goal: Push commands via socket-based telnet client, handle [Y/N] confirms, parse echo for errors.

4 iron rules (from project CLAUDE.md)

  1. Every command starts in system-view; finishes with return → save → Y
  2. Any [Y/N] prompt → must send Y (undo/reset/save family)
  3. Every command must read the echo — never send commands back-to-back without reading
  4. Echo containing Error / Unrecognized / Incomplete / % = failure (record + report)

Ordering traps

  • dhcp enable (global) must precede interface Vlanif X → dhcp select interface. Otherwise: Error: Please enable DHCP in the global view first.
  • capwap source interface Vlanif X — X must be the VLAN whose Vlanif IP lives in the AP/RU DHCP subnet
  • Under ap auth-mode no-auth, APs auto-join default group (not ap-group1). Either bind VAP to default, or use mac-auth + whitelist.

Script: scripts/telnet_configure.py — provides run_pipeline({device_name: (port, commands)}) Detail: references/03_config_deployment.md


Phase 4 — Verify + debug

Standard verification checklist (on AC)

CheckExpectedCommand
AP onlineAll nordisplay ap all
VAP broadcastingStatus ON, BSSID non-zerodisplay vap ssid <name>
STA associationMAC in list, correct VLANdisplay station ssid <name>
DHCP poolservice pool Used > 0display ip pool
AC → AP reachableping successping -c 3 <AP-IP>
AC → Internet (via NAT)ping successping -c 3 8.8.8.8

STA DHCP failure — 5 diagnostic buckets

  1. Discover not reaching AC — check LSW / AC trunk VLAN allow-list (in eNSP even tunnel-forward needs service-VLAN on trunk)
  2. DHCP not enabled globally — dhcp enable missing → interface-level dhcp select interface is no-op
  3. AP in wrong group — VAP bound to ap-group1 but APs joined default
  4. CAPWAP source VLAN mismatch — AP can't find AC
  5. eNSP R250D+STA WPA 4-way handshake simulator bug — VAP "associates" but unicast encryption channel never opens; AC's Offer dropped at air interface. Not a config bug. Workaround: static IP on STA for data-plane verification.

Detail: references/04_ap_ru_verification.md


Phase 5 — Produce documents

Goal: Match user's existing lab series style (ref: 实验03...docx for tutorial, 实验06总结.md for summary).

Tutorial docx structure (7 chapters)

  1. Purpose & significance (+ 4 application scenarios)
  2. Topology diagram (eNSP screenshot + matplotlib architecture diagram)
  3. Network planning (device/VLAN/WLAN tables)
  4. Config steps (per-device, command blocks with inline comments)
  5. Verification (including success screenshot)
  6. Notes / caveats (6-8 items)
  7. Comparison with other labs in series

Summary md structure (10 chapters)

Purpose → Topology → Architecture analysis → Per-device config line-by-line → Debug journey with pitfalls → Verification results → Application scenarios (4+ real) → Series comparison → File locations → Conclusion.

Architecture diagram

Do not use cairosvg/svglib on Windows (requires libcairo-2.dll). Use matplotlib directly to PNG.

Script: scripts/make_docx.py — Doc helper class (H/P/CMD/TBL/PIC/CAP methods) Detail: references/05_doc_generation.md


Phase 6 — Archive to personal KB (optional)

Goal: Make this work discoverable by future agents via 个人知识库/index.md + tag search.

Three updates:

  1. Create skill card at 个人知识库/skills/<name>.md (copy template, fill frontmatter)
  2. Append one line to 个人知识库/index.md under correct category
  3. Append dated entry to 个人知识库/log.md

Script: scripts/archive_to_kb.py — one-shot for all three.

Detail: references/06_kb_archive.md


Dependencies

  • Python 3.x at C:/ProgramData/miniconda3/python.exe
  • python-docx, matplotlib, Pillow
  • eNSP + VirtualBox (Windows)

First validation

Lab 309 (WLAN agile-distributed L2 tunnel-forward), 2026-04-22. Zero-tutorial input → deployment guide + docx tutorial (2.2 MB, 3 embedded images) + 10-chapter summary md. See examples/lab309_walkthrough.md.

Related

  • [[ensp-skills]] — base telnet automation (this skill layers on top)
  • [[courseware-template]] — docx style contract

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Ensp Lab Authoring?

Full workflow to author an eNSP lab from scratch when only a .topo file exists and no tutorial is provided. Produces deployment guide → real-device dry run → tutorial docx + summary md + diagrams. Trigger when the user hands you only a .topo (optionally with saved vrpcfg.zip) and asks to "design, run, and document" a Huawei WLAN/routing experiment.

Waarom Ensp Lab Authoring gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Ensp Lab Authoring bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Ensp Lab Authoring in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/JWM0203/ensp-skills/tree/main/ensp-lab-authoring. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Ensp Lab Authoring gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Ensp Lab Authoring gebruiken?

Zoveel als je wilt. Je kunt Ensp Lab Authoring gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Ensp Lab Authoring gratis?

Ja. Deze skill is door JWM0203 op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇