/gabbe-architecture:state-managementfrom gabbe-architecture
Guides frontend state architecture by categorizing state into server, UI, global, and URL types with library recommendations. Use when prop drilling, duplicated state, or unclear data flow occurs.
Ships in gabbe-architecture. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill guides the architecture of frontend state, avoiding "prop drilling" and "spaghetti state."
| Type | Definition | Solution |
|---|---|---|
| Server State | Data from API (Users, Posts). | React Query / SWR / TanStack Query. Do not use Redux for this. |
| UI State | Modals open, Sidebar toggle, Form inputs. | Local useState or Context API or Zustand. |
| Global State | User session, Theme, Shopping Cart. | Redux Toolkit / Zustand / Context. |
| URL State | Filters, Pagination, Search Query. | URL Query Params. (The URL is the source of truth). |
useState + Context.{ firstName: 'John', lastName: 'Doe', fullName: 'John Doe' }const fullName = firstName + ' ' + lastName;?page=2), do not duplicate it in a Store.state.value = 1)....state).AppProvider.UserProvider, ThemeProvider, SettingsProvider.useMemo for context values to prevent re-renders.idle -> loading -> success | error.loading: true AND error: true).A table of the app's state by type (server, UI, global, URL) with the chosen solution for each.
localStorage, sessionStorage or persisted stores; confirm with the human where the session token lives.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-architecture30 skills in this plugin
/adaptive-architectureDesign offline-first and local-first systems — sync strategy (CRDT or last-write-wins), WASM plugin boundaries, edge versus cloud AI split. Use when an app must work offline, sync between devices, or run plugins or models on the user's device./api-standardsReview of OpenAPI or GraphQL schemas against naming, status code, versioning, pagination and error standards, with an updated spec. Use when API conventions must be checked across services or API governance rules set./arch-debtArchitecture debt report with coupling metrics, dependency cycles, layer violations and a phased migration plan. Use when modules depend on each other in circles, one class does everything, or structure blocks change./architecture-governanceEnforce layer and dependency rules as architecture tests in CI (ArchUnit, dependency-cruiser, Deptrac). Use when a layering rule keeps being broken or a pipeline needs an architecture gate./arch-patternsShortlist of one or two architecture patterns (modular monolith, microservices, event-driven, serverless, CQRS) with pros and cons for the project. Use when someone asks which architecture style fits the requirements./arch-reviewATAM-lite review of an existing architecture — scenario verdicts, smells, sensitivity and tradeoff points, fitness functions and prioritised recommendations. Use when you must judge whether an architecture still fits its requirements before a change, growth or a commitment.Other plugins' skills for the same job