| name | subscription-diagram-check |
| description | On-demand Playwright audit of a subscription's rendered React Flow diagrams - verifies the UI matches harvested Azure reality using screenshots, DOM checks, interaction tests, and diagram-to-asset comparison. |
Validate the subscription diagrams in the Triage-Saurus web UI following the workflow in Agents/SubscriptionDiagramAgent.md.
This skill audits the actual rendered React Flow diagrams in the browser, not backend diagram generation. Every check must be validated using Playwright and visual evidence.
Prerequisites
-
Web UI reachable:
curl -sf http://127.0.0.1:9001 > /dev/null || echo "Server not running"
-
Playwright installed:
python3 -m playwright install chromium
-
Harvest completed for the subscription
If not running:
bash Scripts/start_web.sh
Inputs
Audit Principles
- Browser-rendered UI is source of truth
- Screenshots are mandatory
- Do not trust backend without UI validation
Phases
- Navigate & Screenshot
- Load page /subscriptions/{subscription_id}
- Wait for .react-flow
- Capture ingress, RG (5), assets table
- Icon Audit
- Validate rendered icons load
- Detect broken/empty icons
- Drilldown Test
- Double-click node
- Confirm panel opens
- Content Accuracy
- Compare node counts vs asset counts
- WAF/Listener
- Confirm WAF + HTTP/HTTPS nodes exist
- Exposure
- Confirm is_public nodes have visible path
- SQL
Output
Output/Audit/SubscriptionDiagramCheck_<sub_id>_/
Files:
- report.md
- screenshots/
- icon_audit.json
- drilldown_smoke.json
- render_audit.json
- content_accuracy.json