/network-ops:network-snapshotfrom network-ops
Takes a read-only snapshot of network devices over SSH (configs, routing in every VRF, neighbors, ARP and MAC tables), commits stable output to git, builds a host table of IP/MAC locations, and explains changes. Multi-vendor (Cisco, FortiGate).
Ships in network-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You run a bundled script that does all device access, then you explain the result. One run:
.snapshot/hosts.csv, one row
per address with the tables that showed it.Files in this skill's folder:
scripts/snapshot.py: the engine. scripts/fortigate_guard.py: the read-only FortiGate login.platforms/<device_type>.yaml: one platform profile each, with its status (untested,
lab-tested, tested).inventory.example.yaml, requirements.txt.scripts/snapshot.py.NETOPS_SECRET_<NAME>, the inventory's credentials: command: (a vault CLI), then the
OS credential store. The user sets them up in their own terminal (see setup)..snapshot/ folder, and do not commit there.
The script owns it.sources and note say.netmiko, keyring and yaml
(python3, python or py). If none does, install from requirements.txt after the user
agrees."error": "no_snapshot_repo" on stderr, none is set up
yet. The script never picks one; you ask. Say in one or two sentences that snapshots live in
their own git repo, separate from any project, because the network outlives any project and
its configs are sensitive. Ask where to keep it, suggesting ~/network-snapshots (a folder
next to their lab or network notes is fine too, but not inside a project repo). Then run
python <skill folder>/scripts/snapshot.py --set-repo PATH
and continue. Tell them they can change it later with --set-repo PATH --replace. For a
second network, add --network NAME; runs then pick it with --network NAME, or a
.netops.yaml holding network: NAME in a project folder. unknown_network,
network_exists and path_in_use errors say what to do; relay them, never edit the settings
file to get around them.inventory.example.yaml to <repo>/inventory.yaml and fill it
from the user's device list: name, host, site, device_type (a profile file name), username,
and credential only when devices share a username but not a password.!):
python <skill folder>/scripts/snapshot.py --set-credential <name>
If they keep passwords in a vault or password manager instead, point them to the plugin
README's Credentials section (a credentials: block in the inventory); never run the vault
CLI yourself.python <skill folder>/scripts/snapshot.py [--network NAME | --repo PATH] [--site SITE | --device NAME] [--no-state] [--full]
With no --network or --repo, the run uses the snapshot repo chosen on first use (or the
network a .netops.yaml in the project names). It prints Snapshot repo: <path> (network: <name>) on stderr and repo and network in the report: tell the user where the files went.
If it also prints that it adopted ~/network-snapshots (an older install), pass that line on
once. No target means every device. --no-state skips device state and the host table (the faster,
config-only run). --full adds heavy commands (full OSPF database, crypto SAs, the FortiGate route
database); use it only when the user asks for depth. The script prints a JSON report, also saved
to <repo>/.snapshot/last-report.json.
git -C <repo> diff HEAD~1 HEAD -- <site>/<device>/, in
network terms, quoting the key lines.references/coverage.md says this run could not see. Short.Field-by-field detail, the first-snapshot and first-run-after-upgrade cases, and how to answer "where is host X": references/reading-results.md.
A scheduled run never prompts, so it always names its snapshot repo: --network NAME (as saved
with --set-repo) or --repo PATH. Then a changed default can't move it. The user adds it to
their own scheduler; show them the line, never install it:
0 6 * * * python3 <skill folder>/scripts/snapshot.py --network NAMEschtasks /Create /SC DAILY /ST 06:00 /TN network-snapshot /TR "py <skill folder>\scripts\snapshot.py --network NAME"The password must come from somewhere a scheduled task can read (the OS store of the same
user, or NETOPS_SECRET_<NAME>).
Run a snapshot before the change and another after it, then report the diff between the two
commits (git -C <repo> diff <before> <after>) and the host changes. Profiles marked untested
were written from vendor docs; if their output looks wrong (a command rejected, a noisy line that
changes every run), say so and suggest the profile fix (references/profiles.md).
inventory.example.yaml (opens in a new tab)platforms/arista_eos.yaml (opens in a new tab)platforms/aruba_aoscx.yaml (opens in a new tab)platforms/cisco_asa.yaml (opens in a new tab)platforms/cisco_ios.yaml (opens in a new tab)platforms/cisco_nxos.yaml (opens in a new tab)platforms/dell_os10.yaml (opens in a new tab)platforms/extreme_exos.yaml (opens in a new tab)platforms/fortinet.yaml (opens in a new tab)platforms/hp_procurve.yaml (opens in a new tab)platforms/huawei_vrp.yaml (opens in a new tab)platforms/juniper_junos.yaml (opens in a new tab)platforms/nokia_sros.yaml (opens in a new tab)platforms/paloalto_panos.yaml (opens in a new tab)references/coverage.md (opens in a new tab)references/profiles.md (opens in a new tab)references/reading-results.md (opens in a new tab)requirements.txt (opens in a new tab)scripts/fortigate_guard.py (opens in a new tab)scripts/pluginlib.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gtalkstech/netops-skills --plugin network-ops4 skills in this plugin
/network-diagramDraw an editable draw.io network diagram from the show output network-snapshot already saved (CDP, LLDP, interface addresses, VLANs, trunks, port-channels) and/or a spreadsheet of links. One file with a page per layer (physical L1, subnets L3 with OSPF/EIGRP/BGP adjacencies, VLANs L2 with spanning-tree roots and blocked ports), finds firewalls and tunnels that neighbor discovery can't see, and keeps the diagram in git next to the snapshots. Read-only. Use when the user asks for a network diagram, topology map, L1/L2/L3 drawing, "draw my network", or a diagram from a spreadsheet of links./network-health-checkRead-only, multi-vendor network health check for the whole network, one site or one device. Checks hardware, redundancy, routing, links, errors, spanning tree, CPU, logs and time, and writes a report with findings worst first and their evidence. Use for "health check", "is the network ok", "anything wrong at hq", or "is <device> healthy"./network-pushUse when an approved change plan is ready to go onto network devices: pushing config to a switch, router or firewall, applying a change, or saving config after a post-check. Puts every switch command in the approval prompt itself, pushes one device at a time with the change account (descriptions can batch), stops on errors and records what was sent.Other plugins' skills for the same job