workspace/skills/webex-network-alerts/SKILL.md
Format and deliver network alerts, health warnings, and critical notifications via Cisco WebEx with Adaptive Cards, markdown formatting, and file attachments. Use when sending alerts to WebEx spaces, posting health check results, notifying the team about a device issue, or formatting network status updates for a WebEx space.
npx skillsauth add automateyournetwork/netclaw webex-network-alertsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| API | Purpose | |-----|---------| | Messages — Create | Post alert messages to spaces | | Messages — Create (with Adaptive Card) | Deliver rich formatted alerts with severity styling | | Messages — Create (with files) | Attach diagrams, reports, and log excerpts | | Webhooks | Receive notification when users interact with Adaptive Cards | | Rooms — List | Discover target spaces for alert delivery | | People — Get My Own Details | Verify bot identity and space membership |
NetClaw uses a WebEx Bot access token for all messaging operations:
developer.webex.com (does not expire)https://webexapis.com/v1/Authorization: Bearer $WEBEX_BOT_TOKENUse WebEx markdown and Adaptive Cards to visually distinguish severity levels. WebEx supports a subset of markdown in plain messages and full Adaptive Card schema (v1.3) for rich layouts.
Post as an Adaptive Card with a red container:
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.3",
"body": [
{
"type": "Container",
"style": "attention",
"items": [
{
"type": "TextBlock",
"text": "CRITICAL -- Device Unreachable",
"weight": "Bolder",
"size": "Medium",
"color": "Attention"
}
]
},
{
"type": "FactSet",
"facts": [
{ "title": "Device:", "value": "R1 (10.1.1.1)" },
{ "title": "Detected:", "value": "2024-02-21 14:32 UTC" },
{ "title": "Impact:", "value": "47 downstream routes affected, 3 OSPF adjacencies lost" }
]
},
{
"type": "TextBlock",
"text": "**Symptoms:**\n- Ping 0% success (was 100%)\n- OSPF neighbor state: DOWN\n- BGP peer 10.1.1.2: IDLE",
"wrap": true
},
{
"type": "TextBlock",
"text": "**Recommended Action:**\n1. Check physical connectivity / power\n2. Verify interface status on upstream device\n3. Check for reload reason if device recovers",
"wrap": true
}
]
}
}
Always include a plain markdown field as fallback text alongside the card attachment for clients that don't render Adaptive Cards.
**HIGH -- Interface Flapping**
**Device:** SW1 | **Interface:** Gi1/0/24
**Flap Count:** 12 in last 30 minutes
**Connected To:** R2:Gi0/0/1 (discovered via CDP)
**Action Required:** Investigate physical layer -- CRC errors detected (47 in 5 min)
**WARNING -- Memory Pressure**
**Device:** R2 | **Memory:** 82% used (2.1G / 2.6G)
**Trend:** Increased from 71% over 24h
**Top Consumer:** BGP Router (843 MB)
_Monitor -- no immediate action required_
**INFO -- Configuration Change Detected**
**Device:** R1 | **User:** admin (10.0.0.50)
**Time:** 2024-02-21 09:15 UTC
**Change:** 3 lines modified in running-config
_Captured in GAIT session abc123_
After running a health check (pyats-health-check skill), post results to the designated WebEx space:
attention style containerWhen any health check metric exceeds thresholds:
| Metric | WARNING | HIGH | CRITICAL | |--------|---------|------|----------| | CPU 5min avg | > 50% | > 75% | > 90% | | Memory used | > 70% | > 85% | > 95% | | Interface errors | > 0 CRC | > 100/min | Resets incrementing | | Packet loss | > 0% | > 5% | > 20% | | NTP offset | > 100ms | > 500ms | > 1s or unsync | | BGP peer | Flapping | 1 peer down | Multiple peers down | | OSPF adjacency | Flapping | 1 adj lost | Area partition |
After a fleet-wide health check, post a single summary using an Adaptive Card with a ColumnSet:
{
"type": "AdaptiveCard",
"version": "1.3",
"body": [
{
"type": "TextBlock",
"text": "Fleet Health Summary -- 2024-02-21 14:00 UTC",
"weight": "Bolder",
"size": "Medium"
},
{
"type": "TextBlock",
"text": "**Devices Checked:** 8 | 1 CRITICAL | 2 HIGH | 3 WARNING | 2 HEALTHY"
},
{
"type": "ColumnSet",
"columns": [
{ "type": "Column", "width": "auto", "items": [{"type":"TextBlock","text":"**Device**","weight":"Bolder"},{"type":"TextBlock","text":"R1"},{"type":"TextBlock","text":"R2"},{"type":"TextBlock","text":"SW1"}]},
{ "type": "Column", "width": "auto", "items": [{"type":"TextBlock","text":"**CPU**","weight":"Bolder"},{"type":"TextBlock","text":"12%"},{"type":"TextBlock","text":"8%"},{"type":"TextBlock","text":"67%"}]},
{ "type": "Column", "width": "auto", "items": [{"type":"TextBlock","text":"**Mem**","weight":"Bolder"},{"type":"TextBlock","text":"78%"},{"type":"TextBlock","text":"45%"},{"type":"TextBlock","text":"52%"}]},
{ "type": "Column", "width": "auto", "items": [{"type":"TextBlock","text":"**Overall**","weight":"Bolder"},{"type":"TextBlock","text":"WARNING","color":"Warning"},{"type":"TextBlock","text":"CRITICAL","color":"Attention"},{"type":"TextBlock","text":"HIGH","color":"Warning"}]}
]
},
{
"type": "TextBlock",
"text": "_Details in thread_",
"isSubtle": true
}
]
}
After a security audit (pyats-security skill), post findings:
**Security Audit -- R1**
**Findings:** 2 CRITICAL | 2 HIGH | 3 MEDIUM | 1 LOW
**CRITICAL:**
- [C-001] SSHv1 enabled -- MITM vulnerability
- [C-002] No VTY access-class -- management plane exposed
**HIGH:**
- [H-001] No OSPF authentication on Gi1
- [H-002] SNMP community 'public' with no ACL
_Full report attached as file_
WebEx supports message threading via the parentId field:
parentIdAttach supporting data as files via the Messages API (multipart POST):
WebEx supports attaching files up to 100 MB per message.
| Space | Purpose | Alert Types | |-------|---------|-------------| | NetClaw Alerts | Critical/High alerts only | Device down, security critical | | NetClaw Reports | Scheduled reports | Health checks, audits, reconciliation | | NetClaw Changes | Change notifications | Config changes, CR updates | | NetClaw General | General interaction | Ad-hoc queries, help | | Incidents | Active incident threads | P1/P2 incident response |
| Slack Feature | WebEx Equivalent |
|---------------|-----------------|
| Emoji reactions (:rotating_light:) | Adaptive Card color property + bold text severity labels |
| Block Kit formatting | Adaptive Cards v1.3 |
| Custom username/avatar | Bot identity (set in developer.webex.com) |
| File uploads | Messages API multipart/form-data with files parameter |
| Thread replies | parentId field on Messages API |
| Channel mentions (@here, @channel) | <@personId> mentions and group mentions |
| Pinned messages | N/A -- use a dedicated "Baselines" space |
Every alert should reference the GAIT session:
_Tracked in GAIT session `abc123` -- commit `def456`_
testing
Human-in-the-loop escalation via HumanRail — route low-confidence agent decisions, pre-destructive operation approvals, and ambiguous incident tickets to real human engineers. Human answers are verified and returned as structured output. Workers are paid via Lightning Network. Use when the agent is uncertain, when a destructive change needs explicit human sign-off beyond a ServiceNow CR, or when an ambiguous ticket requires human triage before automated handling.
testing
Manage EVE-NG node lifecycle. Use when listing nodes, checking runtime state, creating or deleting nodes, starting or stopping nodes or whole labs, verifying node details, or wiping node NVRAM back to factory defaults.
development
Manage EVE-NG labs and platform inventory. Use when listing labs, checking lab metadata, creating or deleting labs, importing or exporting lab archives, checking EVE-NG health or auth, or verifying available node images before build work.
tools
Execute live CLI commands on running EVE-NG nodes over telnet console. Use when running show commands, making live config changes, verifying protocol state, testing connectivity, checking console readiness, or interacting with IOS, Junos, VPCS, EOS, or NX-OS nodes.