forwardnetworks/forward-skills/compare-device-config

Claude Code and agent skill by forwardnetworks/forward-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Shows which devices' config files changed between two snapshots and the lines added or removed on one device. Use when asked what changed in a device's config or which were reconfigured.

Install

npx vskill@latest install forwardnetworks/forward-skills/compare-device-config

SKILL.md

The same SKILL.md was published earlier as forwardnetworks/fwdctl/compare-device-config.

compare-device-config

Intent

Answer "what changed in the configuration" from the text the devices produced. Forward has no route that returns a diff, so this skill asks Forward which files changed, downloads both versions and compares them. Use verify-change (view impact) for the size of a change and compare-nqe-results for modeled data; use this for the lines.

Inputs

network_id, before_snapshot_id, after_snapshot_id. Without device, it lists every device whose files changed. With device, it shows the lines added and removed in one file (file picks it; default the first changed file). Optional: file_type (CONFIG default, STATE, CUSTOM), max_lines (default 40 per direction, at most 200), no_redact. See schema.json.

Procedure

  1. Both snapshots must be processed. Otherwise unknown.
  2. Ask Forward which files changed. No device: return the changed devices and their files.
  3. With device: download the file at each snapshot (first 4 MiB) and compare the lines.
  4. Decide:
  • Lines differ: ok, with the added and removed lines and their line numbers.
  • Forward lists the file as changed but no line differs: ok, and the limits say only ordering or whitespace

changed, or the change is past the size cap.

  • Device not in the changed list: ok, no changed file; a device missing from a snapshot looks the same, so

the limits point at inspect-inventory.

  • Neither side could be read: unknown.
  1. A device that is not in a snapshot (for example a firewall host whose virtual systems are the devices) gives unknown, naming the snapshot that lacks it and any devices with that name plus an underscore suffix; it is never reported as unchanged. Lines are compared as a set: a line that only moved is not reported. Secrets are redacted best effort, so a

changed secret shows as identical text on both sides.

Evidence

One config item: device, file, counts, and the added and removed lines with numbers.

Output

The envelope in schema/skill-result.schema.json.

Next actions

inspect-device-files to read around a change, verify-change to judge it.

Running this skill

Run fwdctl run compare-device-config --help for the inputs and an example, then give them as one JSON object on stdin: fwdctl run compare-device-config < input.json. Read status (ok, failed, unknown, error) and the limits; unknown is never a pass.

Reference

Read the file you need, when you need it (where you cannot read files: fwdctl describe compare-device-config reference/<file>).

  • reference/peer-drift.md: comparing a device with its peers (outliers, one level deep, intended versus actual). Read for a peer comparison.
  • fwdctl describe inspect-device-files reference/vendor-reading.md: how to read a changed rule or policy by vendor (order, referenced objects, paired devices). Read before saying what a changed rule now does.

Long lists

added and removed lines are cut at 400 characters. When a changed line holds a [ ... ] list longer than that, list_changes in the evidence names the entries added and removed inside it: each added list is paired with the removed list that shares most of its entries (at least half), with line_before, line_after, length_before and length_after (the full line lengths in characters, before the 400-character cut), the entry counts and the entries (100 each way at most, with the true totals). At most 5 pairs are shown; a long list with no partner is counted in the limits and shows only its cut text. Entries are split on spaces, and a trailing comma or semicolon is dropped. Redaction applies as in the lines.

File sizes and files Forward's changed list leaves out

Forward's changed-file list can omit a file whose size changed (a 3.6 MB configuration file that shrank to 2.1 MB was not listed). With device given, the evidence therefore also holds file_inventory: every file of the device that was added, removed or changed in size between the two snapshots, with before_bytes, after_bytes and delta_bytes (largest change first, 30 at most, the rest counted in the limits), and for each whether it was diffed and, if not, why_not_diffed. The finding ends with the largest byte deltas. A file that changed in size but is not the one compared is named in the limits: set file to it and its text is compared directly, even when Forward's list does not include it. A file present in only one snapshot cannot be compared line by line. A file that kept its size but changed content shows only if Forward's list names it.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/forwardnetworks/forward-skills/compare-device-config/badge)](https://verified-skill.com/skills/forwardnetworks/forward-skills/compare-device-config)

Something wrong with this skill or its page? Tell us.