Skip to main content
skill CX Codex

devtools-react — Claude Code skill: what it does, how to install

devtools-react is a skill that adds a developer panel to React json-render apps for spec inspection, state editing, and action and stream timelines.

Apache-2.0 215 installs ★ 19,802 updated 2026-10-24

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

What devtools-react does

The skill mounts JsonRenderDevtools inside the json-render provider and connects a developer panel with spec inspection, state editor, action and stream timelines, component catalog, and DOM picker. The panel opens with Ctrl/Cmd + Shift + J and is hidden in production builds.

Installation requires two packages: @json-render/devtools and @json-render/devtools-react. The useJsonRenderDevtools hook gives imperative access to the panel from any component inside the provider: devtools?.open(), devtools?.toggle(), devtools?.recordEvent(). In production or before mount, the hook returns null.

Server-side streams are instrumented through the core @json-render/devtools package; the adapter is client-only.

What it helps with

  • mount the devtools panel in a React json-render app
  • inspect renderer specs, state and actions
  • record stream events and debug the timeline
  • open or close the panel programmatically from a component
  • pick a DOM element and view its spec

Example prompts for the agent

  • Add JsonRenderDevtools to the provider, pass spec, catalog and messages
  • Open the devtools panel with Cmd+Shift+J
  • Show how to record a stream event with useJsonRenderDevtools

How to install devtools-react

1Skills CLI (Vercel)

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

2Manually: put the files in place

~/.claude/skills/devtools-react/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/devtools-react/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about devtools-react

How to install devtools-react in Claude Code?

Run npx skills add vercel-labs/json-render --skill devtools-react -a claude-code, then open ~/.claude/skills/devtools-react/SKILL.md.

What does devtools-react do?

React adapter for the json-render developer panel: spec inspection, state editing, action and stream timelines, component catalog, DOM picker. The panel is hidden in production.

Why do I need both devtools and devtools-react?

The core @json-render/devtools package contains the panel and server-side tools, while @json-render/devtools-react is the React adapter with the useJsonRenderDevtools hook for imperative control.

Source text

SKILL.md · Apache-2.0
---
name: devtools-react
description: React adapter for the json-render devtools inspector. Use whenever the user wants to add, configure, or troubleshoot @json-render/devtools-react in a React json-render app, including spec inspection, state editing, action and stream timelines, catalog browsing, or DOM picking.
---

# @json-render/devtools-react

React adapter for the json-render devtools panel. Read `skills/devtools/SKILL.md` for the shared panel capabilities, props, docking behavior, and server-side stream taps.

## Install

```bash
npm install @json-render/devtools @json-render/devtools-react
```

## Mount the panel

Mount `JsonRenderDevtools` inside the existing React json-render provider so it can observe the renderer's state, actions, and streams:

```tsx
import { JsonRenderDevtools } from "@json-render/devtools-react";

<JSONUIProvider registry={registry} handlers={handlers}>
  <Renderer spec={spec} registry={registry} />
  <JsonRenderDevtools spec={spec} catalog={catalog} messages={messages} />
</JSONUIProvider>;
```

The component renders nothing in production builds. The panel provides the shared devtools controls, including the `Ctrl`/`Cmd` + `Shift` + `J` shortcut.

## Imperative controls

Use `useJsonRenderDevtools` from any mounted React descendant:

```tsx
import { useJsonRenderDevtools } from "@json-render/devtools-react";

const devtools = useJsonRenderDevtools();
devtools?.open();
devtools?.toggle();
devtools?.recordEvent({ kind: "stream-text", at: Date.now(), text: "hi" });
```

The hook returns `null` in production or before the component has mounted. Keep server-side stream instrumentation in `@json-render/devtools`.

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

Similar skills

All skills for Frontend and UI →

From the same set30

The whole set →
yaml Streaming YAML parser for json-render that turns code fences into JSON Patch. Built for progressive rendering and surgical spec edits via stream. CX Codex +1 1,100installs solid Skill to render JSON-specs into reactive SolidJS components. Use it when building UI catalogs, wiring providers, or debugging Solid reactivity patterns. CX Codex +1 1,100installs xstate Teaches AI assistants how to hook @xstate/store into json-render's state interface. Useful when driving dynamic UI layouts with an XState atom. CX Codex +1 1,100installs json-render-shadcn json-render-shadcn is a Claude Code skill that adds ready-made shadcn/ui components to json-render catalogs and web UIs. It activates for work with @json-render/shadcn. CX Codex +1 257installs tanstack-start Gives the agent a recipe for building TanStack Start pages from a JSON spec, wiring routes, layouts and SSR loaders into the router. CX Codex +1 245installs devtools-vue This Claude Code skill adds the json-render inspector panel to a Vue app. It activates when configuring or troubleshooting @json-render/devtools-vue. CX Codex +1 165installs devtools-svelte The devtools-svelte Claude Code skill helps connect the json-render devtools inspector to a Svelte app. It activates for setup and troubleshooting tasks involving specs, state, actions, streams, catalogs, or DOM picking. CX Codex +1 158installs devtools-solid devtools-solid — a skill for Claude Code and Cursor that integrates the debug adapter into SolidJS apps built with json-render. CX Codex +1 152installs

Project sponsors

Companies that keep this analytics open