What problem does it solve?
Features that write to the NetAlertX Devices table can silently miss one of 14+ write paths, causing correctness bugs and incomplete audit history. This Skill documents the full write-path inventory, the *Source attribution system, and proven patterns for choosing SQLite triggers over Python hooks.
Core Features & Use Cases
- Write-Path Inventory: Lists every known function that modifies the Devices table so no update path is overlooked when designing new features.
- Attribution System Guidance: Explains the FIELD_SOURCE_MAP and *Source columns so features can derive correct changedBy values from NEW.*Source fields inside triggers.
- Trigger vs Python Hook Decision Rules: Provides criteria and a performance-safe trigger template with WHEN guards and per-field conditional inserts.
- Use Case: When implementing a DevicesHistory audit log, use this Skill to build an event-sourced AFTER UPDATE trigger that captures per-field changes with attribution instead of costly full-row snapshots.
Quick Start
Ask the AI to design an audit logging trigger for the Devices table using the NetAlertX database patterns.