Install any skill in seconds. Free to start, no credit card required.
Get Started Free →aiskillstore/state-management
TanStack Query + Zustand patterns.
Passed 20 of 22 test cases with the skill, and 18 of 22 without it.
2 fixed18 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need a complete state architectural plan for a complex React frontend. Please provide TypeScript code implementations showing how to handle local component state, lightweight global context, store slice management with async thunks for complex data, and query fetching for API data. At the bottom, include a guide recommending state tools based on project scenarios and constraints.
| Checked | Without skill | With skill |
|---|---|---|
| Includes the exact section heading ### State Management Tool Selection Guide. | Missed | Passed |
| Maps simple global state to React Context API. | Passed | Passed |
The instructions your model reads when the skill loads.
Distinguish between local and global state.
Decision Criteria:
Local State: Used only within a single component
useState, useReducerGlobal State: Shared across multiple components
Example:
// ✅ Local state (single component)
function SearchBox() {
const [query, setQuery] = useState('');
const [isOpen, setIsOpen] = useState(false);
return (
<div>
<input
value={query}
onChange={(e) => setQuery(e.target.value)}
onFocus={() => setIsOpen(true)}
/>
{isOpen && <SearchResults query={query} />}
test cases passed, vs 18 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.