manage-client-state — manage-client-state install manage-client-state, notify-patch-notes, community, manage-client-state install, ide skills, manage-client-state documentation, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Frontend Agents needing efficient client-side state management and URL synchronization. manage-client-state is a skill that manages client-side state, including global UI states, URL states, and context providers, to provide a seamless user experience.

Features

Manages global UI states, such as sidebars and themes
Synchronizes URL states for pagination, filters, and search
Avoids using context providers for simpler state management
Persists state to URL for better user experience
Utilizes browser storage, such as localStorage, for data persistence

# Core Topics

nayukata nayukata
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The manage-client-state skill by nayukata is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for manage-client-state install, manage-client-state documentation.

Ideal Agent Persona

Perfect for Frontend Agents needing efficient client-side state management and URL synchronization.

Core Value

Empowers agents to manage global UI states, URL states, and context providers, utilizing technologies like localStorage for seamless browser storage and synchronization, ideal for handling sidebars, themes, and pagination.

Capabilities Granted for manage-client-state

Automating global UI state changes for responsive designs
Managing URL states for pagination, filtering, and searching
Synchronizing client-side state with URL parameters for enhanced user experience

! Prerequisites & Limits

  • Limited to client-side state management, not suitable for server-side data management
  • Requires proper handling of browser storage and security considerations
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

manage-client-state

Install manage-client-state, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

クライアント状態管理スキル

クライアントサイドの状態管理の全ワークフローを提供します。

いつ使うか

このスキルは以下の場合に使用してください:

  • グローバルUI状態の管理(サイドバー、テーマ)
  • URL状態の管理(ページネーション、フィルタ、検索、タブ)
  • Contextプロバイダーを避けたい場合
  • 状態をURLに永続化したい場合

manage-swr-data との使い分け

manage-client-state(このスキル): クライアント内で完結する UI 状態

  • サイドバー開閉、テーマ、モーダル表示
  • URL 同期(ページネーション、検索、フィルタ)
  • ブラウザストレージ(localStorage)

manage-swr-data: サーバーから取得するデータ

  • API レスポンスのキャッシュ
  • データ取得・変更(GET/POST/PUT/DELETE)
  • バックグラウンド再検証

判断基準: サーバーから取得するデータは manage-swr-data、クライアント内で完結する状態は manage-client-state を使用します。

状態管理の選択

要件手段
URL復元(戻る/共有)nuqspage, query, filter
localStorage永続化useSWRImmutable + useEffecttheme, settings
セッション内のみuseSWRImmutablemodal, selectedRows

ワークフロー

1. グローバル状態(useSWRImmutable)

typescript
1'use client' 2 3import useSWRImmutable from 'swr/immutable' 4 5export function useSidebar() { 6 const { data, mutate } = useSWRImmutable('sidebar-open', null, { 7 fallbackData: true 8 }) 9 10 return { 11 isOpen: data ?? true, 12 toggle: () => mutate(!data, false) 13 } 14} 15 16// コンポーネントでの使用 17export function Sidebar() { 18 const { isOpen, toggle } = useSidebar() 19 20 return ( 21 <aside className={isOpen ? 'open' : 'closed'}> 22 <button onClick={toggle}>切り替え</button> 23 </aside> 24 ) 25}

2. URL状態(nuqs)

Server Component(パース)

typescript
1import { createSearchParamsCache, parseAsInteger } from 'nuqs/server' 2import type { PageProps } from 'next/types' 3 4export const searchParamsCache = createSearchParamsCache({ 5 page: parseAsInteger.withDefault(1), 6}) 7 8export default async function Page({ searchParams }: PageProps<'/users'>) { 9 const { page } = await searchParamsCache.parse(searchParams) 10 11 const users = await fetchUsers({ page }) 12 13 return <UserList users={users} page={page} /> 14}

Client Component(状態)

typescript
1'use client' 2 3import { useQueryStates, parseAsInteger, parseAsString } from 'nuqs' 4 5export function UserFilters() { 6 const [{ page, query }, setFilters] = useQueryStates({ 7 page: parseAsInteger.withDefault(1), 8 query: parseAsString.withDefault(''), 9 }) 10 11 return ( 12 <input 13 value={query} 14 onChange={(e) => setFilters({ query: e.target.value, page: 1 })} 15 /> 16 ) 17}

重要ルール

グローバル状態

  • useSWRImmutable を使用(useSWR ではない)
  • デフォルト値に fallbackData を設定
  • 再検証なしで更新するには mutate(newValue, false) を使用
  • サーバーデータには使用しない

URL状態

  • Server Componentでは createSearchParamsCache を使用
  • Client Componentでは useQueryStates を使用
  • パーサー(parseAsIntegerparseAsStringなど)を使用
  • 常に .withDefault() でデフォルト値を設定

詳細パターン

詳細な実装パターンについては references を参照してください:

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is manage-client-state?

Perfect for Frontend Agents needing efficient client-side state management and URL synchronization. manage-client-state is a skill that manages client-side state, including global UI states, URL states, and context providers, to provide a seamless user experience.

How do I install manage-client-state?

Run the command: npx killer-skills add nayukata/notify-patch-notes. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for manage-client-state?

Key use cases include: Automating global UI state changes for responsive designs, Managing URL states for pagination, filtering, and searching, Synchronizing client-side state with URL parameters for enhanced user experience.

Which IDEs are compatible with manage-client-state?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for manage-client-state?

Limited to client-side state management, not suitable for server-side data management. Requires proper handling of browser storage and security considerations.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add nayukata/notify-patch-notes. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use manage-client-state immediately in the current project.

Related Skills

Looking for an alternative to manage-client-state or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI