dev-style-state

Community

State organization by truth source.

Authornikbrunner
Version1.0.0
Installs0

System Documentation

What problem does it solve?

State confusion across complex frontend apps leads to tangled UI logic and duplicated data handling. This guide helps teams categorize and separate app state by source of truth to simplify architecture, improve maintainability, and reduce coupling between UI and data layers.

Core Features & Use Cases

  • URL State: Drive navigation and filters through router search params, enabling shareable, bookmarkable views without persisting sensitive data.
  • Server State: Clearly separate server-fetched data from UI state, with caching and data-fetch patterns to reduce redundant requests.
  • Scoped/Context State: Use React context or subtree providers to isolate local UI state that resets when leaving a section.
  • Client/Local State: Manage transient UI preferences and flags close to components that consume them for fast feedback.
  • Real-world scenario: structure a complex dashboard so that URL-driven filters live in the URL, lists are sourced from the server, and modal state remains local.

Quick Start

Describe how to structure an application's state into URL, server, scoped, and client categories and implement a minimal example that demonstrates separation across these layers.

Dependency Matrix

Required Modules

None required

Components

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: dev-style-state
Download link: https://github.com/nikbrunner/dots/archive/main.zip#dev-style-state

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.