net-stp-loop-anomaly

Analyze STP topology instability from switching loops, root-bridge changes, and MAC-flap events.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/ekkus93/vscode_skills --skill net-stp-loop-anomaly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: net-stp-loop-anomaly
Source: https://github.com/ekkus93/vscode_skills/tree/main/skills/net-stp-loop-anomaly
Command: npx skills add https://github.com/ekkus93/vscode_skills --skill net-stp-loop-anomaly

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires nettools-core.

What problem does it solve?

This skill detects Layer 2 instability by identifying topology churn, root-bridge changes, and MAC-flap events to help prevent widespread network slowdowns.

Core Features & Use Cases

  • Detects topology churn and MAC flap events using the bundled NETTOOLS analysis utilities.
  • Evaluates site-wide or per-switch scope with optional time-window controls for targeted investigations.
  • Use Case: When STP changes cause intermittent forwarding issues, run this skill to surface suspect ports and changes for rapid containment and follow-up.

Quick Start

Run the net_stp_loop_anomaly.py script with a site or switch target to begin analysis.

Frequently Asked Questions about net-stp-loop-anomaly

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect STP topology changes and MAC flaps in my network?

It identifies STP topology instability by analyzing switching loops, root-bridge changes, and MAC-flap events, surfacing suspect ports and changes for rapid containment and follow-up investigations.

What causes MAC flaps and intermittent forwarding issues during STP root-bridge changes?

MAC flaps and intermittent forwarding issues occur during STP root-bridge changes due to topology churn. This skill evaluates these instability events to surface suspect ports for rapid containment.

Can I run STP loop analysis on a specific switch or site-wide scope?

Yes, STP loop analysis supports both site-wide and per-switch scopes. The skill provides optional time-window controls for targeted investigations of topology churn and MAC-flap events.

Does this STP anomaly detection skill work for campus and data-center networks?

Yes, STP anomaly detection works for both data-center and campus networks. It analyzes switching loops and MAC flaps using Python-based NETTOOLS helpers to output standardized operator-facing findings.

How do I get evidence-ready outputs for STP loop investigations?

You get evidence-ready outputs for STP loop investigations by running the Python-based analysis script. It outputs a standardized SkillResult JSON to stdout containing operator-facing findings.

Do I need the nettools-core dependency to analyze MAC flaps and STP loops?

Yes, the nettools-core dependency is required to analyze MAC flaps and STP loops. The skill uses bundled NETTOOLS analysis utilities and helpers for switching loop and root-bridge evaluations.