packet-tracer
Skill1 starsChanged 44 days agoMITView on GitHub
Build, modify, inspect and test Cisco Packet Tracer .pkt/.pka files programmatically (decrypt/encrypt, generate topologies with routers/switches/PCs/printers, copper + fiber links, IPs, hostnames, notes) and verify them in the real PT 8.2.2 GUI. Use when the user asks to build/rebuild a network "in Packet Tracer", convert a diagram/floor plan into a .pkt, change cabling (Glasfaser/Twisted Pair), add devices or configs to an existing .pkt, or read what is inside a .pkt.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Mats2208/MCP-Packet-Tracertheir own version, first seen Jul 20, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Mats2208/MCP-Packet-Tracer★ 385same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- answer-me-with-htmlSkill
- bilibili-hubSkill
- brand-docxSkill
- brand-pptxSkill
- brand-xlsxSkill
- browser-useSkill
- Clash 控制器Skill
- cloudflare-dnsSkill
- codex-imageSkill
- contact-vcard-extractorSkill
- data-cleaning-for-excelSkill
- deck-refreshSkill
- document-polisherSkill
- doubao-ttsSkill
- douyin-downloaderSkill
- evidence-chain-builderSkill
- exa-searchSkill
- excel-hygieneSkill
- formula-audit-checkerSkill
- free-ttsSkill
- frontend-designSkill
- fucai3d-latestSkill
- generative-ui-minisSkill
- github-sync-helperSkill
- hello-demoSkill
- hyperframesSkill
- ib-check-deckSkill
- inputs-calcs-outputs-designSkill
- maimai-hubSkill
- memos-apiSkill
- mermaid-to-vsdxSkill
- model-architecture-templateSkill
- nano-bananaSkill
- network-engineeringSkill
- notion-hubSkill
- openstreetmap-markerSkill
- pdf-converterSkill
- pivot-table-builderSkill
- pktSkill
- production-agent-publicSkill
- qbt-hubSkill
- quark-hubSkill
- reverse-dcfSkill
- scenario-managerSkill
- self-improving-agentSkill
- spotify-hubSkill
- tavily-searchSkill
- tg-hubSkill
- twitter-downloaderSkill
- twitter-x-hubSkill
- webapp-testingSkill
- web-artifacts-builderSkill
- web-content-extractorSkill
- weibo-hubSkill
- whenpeakSkill
- xianyu-hubSkill
- xiaohongshu-hubSkill
- youtube-downloaderSkill
- ytmusic-hubSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Always run the Python scripts with scripts/venv/bin/python.
- Distinctive: line 27
Read the source (floor plans, photos, diagram).
- Very specific: line 30
Write a short build script using ptlib (copy example_tebstarts.py).
- Very specific: line 73
No Printer-PT/Laptop/IP-phone templates shipped with PT samples.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Packet Tracer (.pkt) skill
Packet Tracer has no scripting API, so this skill writes the .pkt file directly: XML built from
verified device templates, then encrypted with the PT container format. Everything here was verified
against Cisco Packet Tracer 8.2.2 (Linux, /opt/pt, launcher /usr/local/bin/packettracer, no login needed).
Files
scripts/ptlib.py– topology builder (Network:add,link,fiber,set_ip,note,save,router_config)scripts/ptcrypto.py–-d file.pkt out.xml/-e in.xml out.pkt/-logs pt_*.logscripts/extract_template.py– pull a<DEVICE>of model X out of any .pkt (--listshows models)scripts/pttest.sh file.pkt [shot.png] [wait-s]– opens the file in PT onDISPLAY=:0, printsOK/FAIL, optional screenshot, kills PTscripts/xin.py– XTest mouse/keyboard driver for the PT GUI (click x y,drag x1 y1 x2 y2,key End,ctrl s,type text,sleep n)scripts/example_tebstarts.py– full worked example (2 buildings, fiber backbone, 21 devices)templates/–base.xml(empty 8.2 workspace) + device XML:router-1941,switch-3650-24PS,switch-2960-24TT,switch-3560-24PS,pc-PT,server-PTreference/pkt-format.md– XML structure, link/port/fiber/printer details, pitfalls
Setup (once)
scripts/setup.sh creates scripts/venv with twofish (patched for Python 3.12) and python-xlib.
Always run the Python scripts with scripts/venv/bin/python.
Workflow: build a network
- Read the source (floor plans, photos, diagram). Zoom into hand-written labels with PIL crops if needed; list every device per room/floor and the intended cabling. State assumptions the source leaves open (building interconnect, unlabeled devices) in the final answer.
- Write a short build script using
ptlib(copyexample_tebstarts.py). Layout rule of thumb in the logical workspace: router top (y≈40), core y≈190, floor switches y≈350, end devices y≥540, x spacing ≈115. Name devices with hostnames-safe names (no spaces):SW-HG-EG,PC3-EG,Printer1-NG-EG. - Give end devices static IPs (
ip='192.168.10.11/24', gw=...) and the router arouter_config(...)plusset_ipon its port, so the file works immediately (pings succeed). net.save(out.pkt)→ then alwaysscripts/pttest.sh out.pkt shot.png 90and look at the screenshot:OK+ green link triangles = done. Fiber = red lines; links still orange after 90 s are not up.- Deliver the .pkt into the user's folder and summarize devices/ports/IPs and assumptions.
Device / port cheat sheet
| kind | model | ports |
router | 1941 | GigabitEthernet0/0, 0/1 |
switch | 3650-24PS | GigabitEthernet1/0/1-24 (copper), GigabitEthernet1/1/1-4 (SFP → fiber) |
switch2960 | 2960-24TT | FastEthernet0/1-24, GigabitEthernet0/1-2 (copper only) |
switch3560 | 3560-24PS | FastEthernet0/1-24, GigabitEthernet0/1-2 (copper only) |
pc / server / printer | PC-PT / Server-PT / Printer-PT | FastEthernet0 |
Copper sub-type is chosen automatically (switch↔switch crossover, everything else straight-through).
net.fiber(...) inserts GLC-LH-SMD SFPs and only works on switch (3650) — PT rejects fiber on copper
ports and silently drops such links, so "Glasfaser zwischen Switches" means: use 3650s for those switches.
Need another model (2911, IE-2000, Laptop, WLC…)? extract_template.py from a sample in /opt/pt/saves
(decrypt first; prefer files with VERSION 8.x), add it to KINDS in ptlib.py, then load-test.
Modify an existing .pkt
ptcrypto.py -d in.pkt in.xml, edit the XML (ElementTree is fine; <X /> vs <X/> doesn't matter),
ptcrypto.py -e in.xml out.pkt, pttest.sh out.pkt. Keep VERSION ≤ installed version. Devices copied
between files need new MACs, a SAVE_REF_ID, a matching NODE in PHYSICALWORKSPACE — ptlib.add does
all of that, so prefer re-adding through ptlib over hand-copying.
Verifying / GUI automation
pttest.shderives the verdict from the window title (wmctrl); "Incompatible File" is PT's generic parse-failure dialog — the version number in it is a red herring when VERSION is already low enough. Bisect by rebuilding with parts left out.- Launch PT only via an absolute path computed before
cd /opt/pt/bin, wait ≥3 s after killing a previous instance (else the file is handed to the dying instance and PT opens empty). pkill -x PacketTracer— neverpkill -f, that matches the calling shell.- To learn how PT serializes something new: open a file, do it in the GUI with
xin.py,ctrl s, decrypt, diff against your XML. Device dialog: click device with select tool (18,115); Physical tab has the MODULES list; port menus for cables supportEnd/Upkeys. Close dialogs withwmctrl -c <name>. - Full-screen screenshots:
DISPLAY=:0 import -window root shot.png; crop with PIL before viewing.
Known limits
- No Printer-PT/Laptop/IP-phone templates shipped with PT samples; printer is derived from PC-PT (works).
- Switch/router configs are plain
RUNNINGCONFIGlines; PT applies them on load. VLAN membership etc. also lives in per-port XML fields — for anything beyond hostnames/IPs, do it in the GUI or verify. ~/pt/logsare encrypted and contain nothing useful about load failures.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

