mds-datastar-architecture
CommunityStandardize Datastar command & SSE architecture.
Authoreboody
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enforces a consistent and scalable architecture for Datastar components within the repository, ensuring commands mutate server state predictably and updates are communicated efficiently via a global SSE stream.
Core Features & Use Cases
- Command Handling: Ensures commands mutate server state and return appropriate status codes (
204or202), avoiding JSON state payloads. - Global SSE Stream: Directs all app-authority state updates through a single
/eventsSSE stream usingdatastar-patch-signals. - Spec Compliance: Mandates that Datastar component specifications adhere to specific SSE mapping rules for backend responses and event triggers.
- Use Case: Streamlining the development of interactive web applications by providing a clear, enforced pattern for handling user input and broadcasting state changes across the system.
Quick Start
Ensure all Datastar command handlers are marked with // ci: datastar-command <handler_name> and return StatusCode::NO_CONTENT or StatusCode::ACCEPTED.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: mds-datastar-architecture Download link: https://github.com/eboody/eran.codes/archive/main.zip#mds-datastar-architecture Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.