Ensp Lab Authoring logo

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.

Overview

PublisherJWM0203
Repositoryensp-skills
Skill nameensp-lab-authoring
Stars
29
Forks
1
Bundled files
19
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 19 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by JWM0203 on GitHub. Read the source before you install it.

Installation

Install the Ensp Lab Authoring AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/JWM0203/ensp-skills/tree/main/ensp-lab-authoring
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ensp Lab Authoring in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ensp Lab Authoring on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ensp Lab Authoring is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ensp Lab Authoring AI skill do?

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.

Why use Ensp Lab Authoring on TypingMind?

Because you install it once and use it with any model. Ensp Lab Authoring is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ensp Lab Authoring in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/JWM0203/ensp-skills/tree/main/ensp-lab-authoring. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ensp Lab Authoring?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ensp Lab Authoring?

As many as you like. As long as a model supports skills, you can use Ensp Lab Authoring with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ensp Lab Authoring AI skill free?

Yes. It is published on GitHub by JWM0203 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇