What problem does it solve?
This Skill provides standardized patterns for using Datastar attributes, signals, events, and Server-Sent Events (SSE) within the repository, ensuring consistency and maintainability in UI and application development.
Core Features & Use Cases
- Pattern Enforcement: Guides the application of Datastar concepts to ensure adherence to project standards.
- Scope Classification: Helps determine the appropriate interaction scope (
ui_local, command_sse) for different types of UI and application events.
- State Authority Management: Clearly defines which parts of the state are managed by the UI and which must be updated via the application backend through SSE.
- Use Case: When designing a new feature involving dynamic data updates on a dashboard, consult this Skill to correctly implement SSE for backend-driven state changes and local expressions for UI-specific state.
Quick Start
Apply the Datastar signal and SSE patterns before defining UI bindings and event handlers.