CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

zustand-state-builder

Covers store setup, async actions, persistence, devtools, Immer, modular slices, selectors, and integration with server state. Includes examples for testing stores and recommendations for keeping state management maintainable.

Quality

75%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./.agents/skills/zustand-state-builder/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

60%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

Highly actionable — comprehensive, executable TypeScript examples cover every common Zustand pattern. But the monolithic 645-line single-file body fails progressive disclosure entirely and spends most of its tokens re-teaching a popular library's API that Claude already knows, hurting token efficiency.

Suggestions

Split the detailed pattern material into one-level-deep reference files (e.g., references/middleware.md, references/slices.md, references/selectors.md, references/testing.md) and reduce SKILL.md to the Core Workflow, a single quick-start store example, and clearly signaled links to each reference file.

Cut content that duplicates Claude's existing knowledge: the basic counter store with its usage component, the Outside React getState/setState/subscribe API walkthrough, and the full renderHook test example — retain only project-specific conventions and patterns the user wants enforced.

Integrate validation checkpoints into the Core Workflow itself (e.g., step 7: run the store unit tests, step 8: verify the Output Checklist) instead of leaving verification as disconnected trailing sections.

DimensionReasoningScore

Conciseness

The ~645-line body re-documents the popular Zustand API that Claude already knows: a basic counter store with a usage component, "Outside React Usage" re-explaining getState/setState/subscribe, a full renderHook testing example, and four complete middleware walkthroughs. The project-specific conventions (always TypeScript, devtools, persist with partialize, slices, TanStack Query separation) could be conveyed in a fraction of the tokens.

2 / 5

Actionability

Nearly every section contains copy-paste-ready, fully-typed TypeScript: "export const useCounterStore = create<CounterState>((set) => (...))", async actions with optimistic update and rollback, persist with partialize and createJSONStorage, slices via StateCreator, selector hooks with shallow, and TanStack Query integration. The common cases are each covered by a complete executable example; only the deliberately illustrative Combined Middleware snippet uses a placeholder.

5 / 5

Workflow Clarity

The "Core Workflow" gives a clear 6-step sequence (identify needs → create store → add types → enable middleware → split stores → connect components) that maps to later sections, and the "Output Checklist" plus "Testing" section provide explicit verification. However, validation is not woven into the workflow steps themselves as checkpoints, which keeps it below a 5.

4 / 5

Progressive Disclosure

There are no references/, scripts/, or assets/ files at all — the entire 645-line body is inlined in SKILL.md, including hundreds of lines of middleware variants, slices pattern, selectors, testing, and server-state integration detail that clearly belong in separate reference files. In-file headers are well-organized, but the skill is 13x the ~50-line threshold under which a single-file layout is acceptable, so it fails the overview-pointing-to-details structure.

2 / 5

Total

13

/

20

Passed

Description

80%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description with an explicit what/when structure and mostly natural trigger phrases. The main risks are the two generic trigger terms that invite overlap with other state-management skills and a slightly thin set of action verbs.

DimensionReasoningScore

Specificity

"Implements lightweight state management using Zustand with TypeScript, persistence, devtools, and modular store patterns" lists several concrete capability areas (TypeScript, persistence, devtools, modular patterns), so it is noticeably above the '1-2 concrete actions' anchor. It falls short of a 5 because everything hangs off a single verb and coverage is not comprehensive — selectors, testing, and server-state integration from the body are absent.

4 / 5

Completeness

Both halves are explicit: the 'what' is "Implements lightweight state management using Zustand with TypeScript, persistence, devtools, and modular store patterns" and the 'when' is "Use when users request 'zustand store', 'state management', 'global state', 'zustand setup', or 'jotai alternative'" — concrete trigger phrases attached to an explicit Use-when clause, matching the top anchor exactly.

5 / 5

Trigger Term Quality

The triggers "zustand store", "state management", "global state", "zustand setup", and "jotai alternative" are phrases a user would naturally say. Coverage is good but not comprehensive — common variations like "redux alternative", "react state", or "shared state" are missing, so it does not reach the 5 anchor.

4 / 5

Distinctiveness Conflict Risk

The Zustand naming and "zustand store"/"zustand setup" triggers are clearly distinct, but the generic triggers "state management" and "global state" would fire for Redux, Context, or MobX requests, so it could still overlap with closely related state-library skills. It is not 'very broad with high overlap risk with many skills' (a 2), but the overlap is more than minor.

3 / 5

Total

16

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (650 lines); consider splitting into references/ and linking

Warning

Total

15

/

16

Passed

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/zustand-state-builder/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.