agentsclimarketplace

State architect

Skill m-binimran/dev-pack/skills/state-architect

Guardrails, skills, loops, hooks & review agents for database + website builders on Claude Code (Next.js + Supabase).

Install
npx -y skills add m-binimran/dev-pack --skill state-architect

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Decide where each piece of state lives — server, client, URL, or form — and avoid duplicating server state into client stores. Use when wiring data flow, adding a store, or when state feels tangled.

SKILL.md

1.5 KB, as published. Nobody here has run it

state-architect

Most React state bugs come from putting state in the wrong place. Classify first.

Classify every piece of state

It is...Put it inTool
Fetched from the serverServer-state cacheTanStack Query / SWR / tRPC
UI-only (open/closed, theme, step)Client stateZustand / Jotai / useState
Shareable / bookmarkable (filters, sort, page, tab, search)The URLsearch params / route segments
Inputs being editedForm stateReact Hook Form

Rules

  • Don't copy server data into a client store. Read it from the query cache; derive what you need.
  • Don't store computed values you can derive from existing state.
  • URL-first for anything shareable — a filtered/sorted view should survive a refresh and a copied link.
  • Lift state only as high as the lowest common ancestor that needs it.

Output

  • A short table: each piece of state → where it lives → why.
  • Flag any current duplication (same data in two places) and how to collapse it.

Guardrails

  • Adding a global store to hold server data is a smell — use the server-state library's cache instead.
  • Prop-drilling more than ~2 levels → context or compound component, not more props.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.