state-management SKILL.md skillA

state-management from darknecrocities/skillbuilder is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add darknecrocities/skillbuilder/state-management@git:20261029.162f89b

Pins git:20261029.162f89b in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
darknecrocities/skillbuilder
Path
skills/state-management/SKILL.md
Versions recorded
2
Latest version
git:20261029.162f89b, committed Oct 29, 2026
First version recorded
Oct 26, 2026
Size
5,321 bytes
Repository stars
13
License
none declared

Declarative state machines, TanStack Query server-state caching, invalidation, optimistic updates, atomic Zustand slices, and signals.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Declarative State Machines, Cache & Signals (`/state-management`)

> **Philosophy**: *Server state is an asynchronous remote cache; client state is an ephemeral synchronous state machine. Never store remote data in local UI state. Prohibit boolean explosion. Invalidate with Query Key Factories. Memoize store selectors to eliminate re-render cascades.*

This skill establishes production architecture for state management across **TanStack Query (React Query)**, **Zustand**, **Jotai**, **XState**, and **Signals**.

---

## 1. Quick Navigation & Progressive Disclosure

| Resource Type | Document | Description |
| :--- | :--- | :--- |
| **Reference** | [references/tanstack-query-caching-patterns.md](references/tanstack-query-caching-patterns.md) | Query key factories, stale time configurations, targeted cache invalidation. |
| **Reference** | [references/zustand-atomic-slices.md](references/zustand-atomic-slices.md) | Slice composition patterns, selector memoization to prevent re-renders. |
| **Utility** | [scripts/verify_state_hygiene.py](scripts/verify_state_hygiene.py) | Scans components for boolean flag explosions, un-memoized store selections, and inline query keys. |

---
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add darknecrocities/skillbuilder/state-management@sha256:bacfeb86b2439972

The line at the top of this page pins the label git:20261029.162f89b, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_q7uzsvj6ynri5aki.svg)](https://markdownregistry.com/a/art_q7uzsvj6ynri5aki)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Oct 26, 2026 and Oct 29, 2026, about one every 3 days.

versioncommittedcommitsizeaudit
git:20261029.162f89b latest2026-10-29 162f89b 5,321 BA view · diff
git:20261026.8145f4e2026-10-26 8145f4e 4,651 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5321 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

darknecrocities/skillbuilder · 13 stars · license none declared · pushed 2026-10-29 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_q7uzsvj6ynri5aki
GET https://markdownregistry.com/api/v1/resolve?ref=darknecrocities/skillbuilder/state-management
GET https://markdownregistry.com/api/v1/blob/bacfeb86b24399728eb15414a091959bdaea5effee29805b7cc170ada8cb7ab8

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from darknecrocities/skillbuilder

3d Cursor rule
darknecrocities/skillbuilder · .cursor/rules/3d.mdc · Interactive 3D WebGL, Three.js, and React Three Fiber (R3F) engineering skill. Enforces 60fps budgets, PBR materials…
git:20261029.1aa6bef · audit A · 13 stars
ai Cursor rule
darknecrocities/skillbuilder · .cursor/rules/ai.mdc · Architect, implement, and maintain production AI systems, Gemini API agents, Antigravity multi-agent orchestration…
git:20261029.1aa6bef · audit A · 13 stars
anti-slop Cursor rule
darknecrocities/skillbuilder · .cursor/rules/anti-slop.mdc · Anti-AI-slop and clean craftsmanship skill. Eliminates decorative badges, fake mock databases, neon gradients, obvious…
git:20261029.1aa6bef · audit A · 13 stars
antigravity-automation Cursor rule
darknecrocities/skillbuilder · .cursor/rules/antigravity-automation.mdc · Automate recurring, background, event-driven, and multi-agent workflows in Google Antigravity. Crafts scheduled…
git:20261029.1aa6bef · audit A · 13 stars
api-design Cursor rule
darknecrocities/skillbuilder · .cursor/rules/api-design.mdc · API contract design and OpenAPI 3.1 specification skill. Enforces RFC 7807 problem details, idempotency headers, and…
git:20261029.1aa6bef · audit A · 13 stars
aws Cursor rule
darknecrocities/skillbuilder · .cursor/rules/aws.mdc · Amazon Web Services resilient cloud architecture, serverless Lambda execution, S3 bucket security, DynamoDB…
git:20261029.1aa6bef · audit A · 13 stars
backend Cursor rule
darknecrocities/skillbuilder · .cursor/rules/backend.mdc · Architect, implement, and maintain resilient backend services, clean architecture, REST/gRPC API contracts, strict…
git:20261029.1aa6bef · audit A · 13 stars
continuous-learning Cursor rule
darknecrocities/skillbuilder · .cursor/rules/continuous-learning.mdc · Continuous conversational learning protocol (CLP) skill. Persists user corrections and project conventions to…
git:20261029.1aa6bef · audit A · 13 stars
data-pipelines Cursor rule
darknecrocities/skillbuilder · .cursor/rules/data-pipelines.mdc · Data pipeline engineering, streaming ETL with backpressure, Apache Arrow memory structures, DuckDB in-process…
git:20261029.1aa6bef · audit A · 13 stars
database Cursor rule
darknecrocities/skillbuilder · .cursor/rules/database.mdc · Architect, implement, and maintain resilient relational and NoSQL databases, zero-downtime schema migrations…
git:20261029.1aa6bef · audit A · 13 stars
devops Cursor rule
darknecrocities/skillbuilder · .cursor/rules/devops.mdc · Architect, implement, and maintain secure cloud infrastructure on GCP/AWS, multi-stage non-root Docker containers…
git:20261029.1aa6bef · audit A · 13 stars
firebase Cursor rule
darknecrocities/skillbuilder · .cursor/rules/firebase.mdc · Firebase serverless architecture, Cloud Firestore schema design, Security Rules (firestore.rules, storage.rules)…
git:20261029.1aa6bef · audit A · 13 stars

Every file in darknecrocities/skillbuilder

Other files named state-management

state-management SKILL.md skill
a5c-ai/babysitter · library/methodologies/gsd/skills/state-management/SKILL.md · STATE.md reading, writing, and field-level updates. Provides cross-session state persistence via .planning/STATE.md…
v1.0.0 · audit A · 1,891 stars
state-management SKILL.md skill
andreibesleaga/gabbe · plugins/gabbe-architecture/skills/state-management/SKILL.md · Manage client-side state, side effects, and data flow. Use when: state management.
git:20261014.de0823c · audit A · 23 stars
state-management SKILL.md skill
komluk/scaffolding · skills/state-management/SKILL.md · Client state management standards: local-vs-global decisions, store structure, selectors, and re-render performance…
git:20260614.9d809af · audit A · 15 stars
state-management Cursor rule
darknecrocities/skillbuilder · .cursor/rules/state-management.mdc · Declarative state machines, TanStack Query server-state caching, invalidation, optimistic updates, atomic Zustand…
git:20261029.1aa6bef · audit A · 13 stars
state-management SKILL.md skill
aniruddhadas1/oniroute_swarmagents · skills/official/frontend/state-management/SKILL.md · Place state according to ownership, lifetime, synchronization, and consistency. Use when planning or reviewing state…
git:20260804.bc7d3a4 · audit A · 2 stars

Browse by kind, by grade A, or by owner.