Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

redux — Claude Code skill: what it does, how to install

A Redux adapter for json-render: it points the renderer at a store slice instead of its own state. Useful when app state already lives in Redux.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add vercel-labs/json-render --skill redux -a claude-code
Open on GitHub

What redux does

The skill walks an agent through wiring Redux or Redux Toolkit into json-render. reduxStateStore adapts a slice of your store to the StateStore interface, so reads and writes from the renderer travel through Redux actions. The included example builds a ui slice with a replaceUiState reducer, creates the store with configureStore, then assembles the adapter and wraps the tree in <StateProvider store={store}>.

Three options are required: the store itself, a selector that picks the json-render slice out of the state tree, and dispatch, which replaces that slice with the next state. Skip one and there is nothing for the adapter to read or write. When the entire state tree is the model, the guide suggests (s) => s as the selector.

Install with npx skills add vercel-labs/json-render --skill redux -a claude-code; the file lands at ~/.claude/skills/redux/SKILL.md. Your project needs @json-render/redux, @json-render/core and @json-render/react, plus redux. With Redux Toolkit you swap that last package for @reduxjs/toolkit.

What it helps with

  • build a StateStore on top of an existing Redux store
  • keep json-render state in its own ui slice
  • pull the right slice out of a large state tree with selector
  • route renderer updates through a dispatch call

Example prompts for the agent

  • wire `@json-render/redux` into my store: slice `ui`, selector `(state) => state.ui`
  • wrap the app in `<StateProvider store={store}>` using the `reduxStateStore` adapter
  • create the `ui` slice with a `replaceUiState` reducer and build the adapter from it

How to install redux

1Skills CLI (Vercel)

npx skills add vercel-labs/json-render --skill redux -a claude-code

2Manually: put the files in place

~/.claude/skills/redux/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/redux/

From the same set20

The whole set →
react vercel-labs This skill turns json-render JSON specs into React component trees. Use it when building JSON-driven UIs or defining a component catalog for generated specs. Claude Code CX Codex Cursor +1 16,300installs core vercel-labs Defines the schema and component catalog for json-render and builds the system prompt that makes an AI emit JSON UI specs. Claude Code CX Codex Cursor +1 15,000installs codegen vercel-labs Utilities for generating code from json-render UI trees. Build custom code exporters for Next.js, Remix, and other frameworks, traverse specs, and serialize props. Claude Code CX Codex Cursor +1 8,900installs next vercel-labs Converts JSON specs into Next.js apps with routes, layouts, SSR, and metadata. Handy when building AI-generated multi-page apps with @json-render/next. Claude Code CX Codex Cursor +1 8,600installs devtools vercel-labs Debug panel for json-render apps: component tree, state editor, actions log, streaming patches, and element picker. Claude Code CX Codex Cursor +1 8,300installs directives vercel-labs Pre-built directives for json-render: formatting, math, string handling, i18n. Wire them into your catalog and renderer with one import. Claude Code CX Codex Cursor +1 8,000installs mcp vercel-labs This skill helps build MCP servers that render interactive json-render UIs in Claude, ChatGPT, Cursor, and VS Code. Claude Code CX Codex Cursor +1 5,800installs react-native vercel-labs This skill turns JSON specs into native React Native mobile UIs. Use it when screens need state bindings, conditional visibility, and actions. Claude Code CX Codex Cursor +1 3,200installs

Similar

libraries-dev Jakubantalik Selects and integrates Libraries.dev React UI effects for AI interfaces, covering loaders, voice glows, animated borders, and bot avatars. Claude Code CX Codex Cursor +1 991installs wp-block-themes WordPress Guides the agent through building WordPress block themes, editing theme.json, and organizing templates. Useful when styles fail to apply in the Site Editor. Claude Code CX Codex Cursor +1 5,800installs godot-ui-control gamedev-skills A Claude Code skill that teaches the agent to lay out Godot 4.7 HUDs and menus with Control nodes: anchors, containers, themes and focus. Claude Code CX Codex Cursor +1 6,400installs salesforce-component-standards official github Guides Salesforce UI development across LWC, Aura, and Visualforce. Enforces SLDS 2 compliance, accessibility, and platform security. GitHub Copilot 770installs react18-dep-compatibility official github Checks minimum dependency versions for React 18.3.1 and React 19. Use it during React upgrades and when resolving peer dependency conflicts. GitHub Copilot 764installs react-19 prowler-cloud Skill for React 19 with React Compiler: no manual memoization, server components first, ref as a prop. Claude Code CX Codex Cursor +1 671installs frontend-design official anthropics This skill guides intentional visual design for new interfaces and redesigns. Use it when a generic generated UI is not enough. Claude Code Claude.ai 1,025,790installs design-taste-frontend Leonxlnx This skill directs the design of public pages and work screens, then checks the result in a browser through screenshots. Use it when an interface feels generic or unfinished. Claude Code CX Codex Cursor +1 673,100installs

Questions about redux

How do I install the redux skill in Claude Code?

Run npx skills add vercel-labs/json-render --skill redux -a claude-code. The skill file ends up at ~/.claude/skills/redux/SKILL.md.

What does the redux skill do?

It tells the agent how to make a Redux store act as json-render's StateStore via reduxStateStore from @json-render/redux, and ships a worked example with a slice and a provider.

Do I have to pass store, selector and dispatch?

Yes, all three are required. dispatch receives the full next state model and the store, then replaces the selected slice with the new state.

Source text

SKILL.md · Apache-2.0
---
name: redux
description: Redux adapter for json-render's StateStore interface. Use when integrating json-render with Redux or Redux Toolkit for state management via @json-render/redux.
---

# @json-render/redux

Redux adapter for json-render's `StateStore` interface. Wire a Redux store (or Redux Toolkit slice) as the state backend for json-render.

## Installation

```bash
npm install @json-render/redux @json-render/core @json-render/react redux
# or with Redux Toolkit (recommended):
npm install @json-render/redux @json-render/core @json-render/react @reduxjs/toolkit
```

## Usage

```tsx
import { configureStore, createSlice } from "@reduxjs/toolkit";
import { reduxStateStore } from "@json-render/redux";
import { StateProvider } from "@json-render/react";

// 1. Define a slice for json-render state
const uiSlice = createSlice({
  name: "ui",
  initialState: { count: 0 } as Record<string, unknown>,
  reducers: {
    replaceUiState: (_state, action) => action.payload,
  },
});

// 2. Create the Redux store
const reduxStore = configureStore({
  reducer: { ui: uiSlice.reducer },
});

// 3. Create the json-render StateStore adapter
const store = reduxStateStore({
  store: reduxStore,
  selector: (state) => state.ui,
  dispatch: (next, s) => s.dispatch(uiSlice.actions.replaceUiState(next)),
});

// 4. Use it
<StateProvider store={store}>
  {/* json-render reads/writes go through Redux */}
</StateProvider>
```

## API

### `reduxStateStore(options)`

Creates a `StateStore` backed by a Redux store.

| Option | Type | Required | Description |
|--------|------|----------|-------------|
| `store` | `Store` | Yes | The Redux store instance |
| `selector` | `(state) => StateModel` | Yes | Select the json-render slice from the Redux state tree. Use `(s) => s` if the entire state is the model. |
| `dispatch` | `(nextState, store) => void` | Yes | Dispatch an action that replaces the selected slice with the next state |

The `dispatch` callback receives the full next state model and the Redux store.

© vercel-labs · Apache-2.0 · vercel-labs/json-render

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor