شعار Ensp Lab Authoring

Ensp Lab Authoring

المجتمع
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.

نظرة عامة

الناشرJWM0203
المستودعensp-skills
اسم المهارةensp-lab-authoring
النجوم
29
التفريعات
1
الملفات المرفقة
19
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 19

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها JWM0203 على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Ensp Lab Authoring في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/JWM0203/ensp-skills/tree/main/ensp-lab-authoring
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Ensp Lab Authoring في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Ensp Lab Authoring تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Ensp Lab Authoring بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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.

لماذا تستخدم Ensp Lab Authoring على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Ensp Lab Authoring عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Ensp Lab Authoring في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/JWM0203/ensp-skills/tree/main/ensp-lab-authoring. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Ensp Lab Authoring؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Ensp Lab Authoring؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Ensp Lab Authoring معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Ensp Lab Authoring مجانية؟

نعم. نشرها JWM0203 على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇