Skip to main content
skill CX Codex

xstate · pedronauck — Claude Code skill: what it does, how to install

This skill covers XState v5 machines, actors, stores, and TanStack Query integration. Use it when application logic needs explicit state flows.

no license 247 installs ★ 655 updated 2026-10-20

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add pedronauck/skills --skill xstate -a claude-code
Open on GitHub

What xstate does

The skill guides XState v5 work with state machines and actors. It covers explicit states, events, transitions, and statechart patterns for avoiding invalid combinations. React examples use useMachine() and .provide() to adapt machine actions.

For smaller state models, it covers @xstate/store, event-driven updates, selectors, reactive atoms, and undo/redo. It also describes connecting XState actors with TanStack Query through QueryObserver and fromCallback. The allowed tools are Read, Grep, and Glob, so the skill is focused on inspecting and searching project files.

What it helps with

  • model a complex application flow as a state machine
  • define typed XState v5 states and events
  • manage lightweight client state with @xstate/store
  • add undo and redo to a store
  • coordinate TanStack Query data through XState actors

Example prompts for the agent

  • Design an XState v5 machine for an authentication flow, including its states, events, and transitions.
  • Review this React component and show how to connect it with useMachine() and .provide().
  • Explain how to connect a TanStack Query subscription to an XState actor with QueryObserver.

How to install xstate

1Skills CLI (Vercel)

npx skills add pedronauck/skills --skill xstate -a claude-code

2Manually: put the files in place

~/.claude/skills/xstate/SKILL.md

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

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

Questions about xstate

How do I install xstate in Claude Code?

Run npx skills add pedronauck/skills --skill xstate -a claude-code, then check ~/.claude/skills/xstate/SKILL.md.

What does the xstate skill do?

It provides guidance for XState v5, @xstate/store, and XState integration with TanStack Query. The material covers machines, actors, React usage, and undo/redo.

Which tools does xstate use?

The skill is allowed to use Read, Grep, and Glob. Its examples also work with React, @xstate/store, and TanStack Query.

Similar skills

All skills for Frontend and UI →

xstate by other authors comes first.

From the same set52

The whole set →
deep-review deep-review is a Claude Code skill that examines branch changes, working trees, or pull requests. It looks for defects and improvements, and can check code against project rules or a specification. CX Codex +1 258installs promo-video Generates polished product promo videos with Remotion, ElevenLabs voiceovers, and background music directly from repository context. CX Codex +1 257installs tech-logos The tech-logos skill guides the reuse and addition of official company, provider, and social-platform logos in landing, auth, and integration interfaces. CX Codex +1 256installs fundraising This skill walks you through an end-to-end fundraising process for early-stage founders: from deciding whether to raise venture capital to building a pitch narrative, targeting investors, running outreach, and preparing for due diligence. CX Codex +1 252installs tweetsmash-api tweetsmash-api — a skill for integrating TweetSmash REST API into scripts and tools. Retrieve bookmarks, apply filters, paginate, and manage labels without browser automation. CX Codex +1 214installs herdr-orchestration herdr-orchestration controls interactive Claude and Codex worker TUIs in dedicated herdr tabs using socket CLI commands. CX Codex +1 210installs writing-tech-post writing-tech-post — a skill for writing and editing engineering posts with supported claims. Use it to draft new articles, rework existing drafts, or review content before publication. CX Codex +1 182installs ship-pr ship-pr delivers finished work with documentation audits, release note grouping, compliant commits, and a pull request. CX Codex +1 181installs

Project sponsors

Companies that keep this analytics open