Manages URL search params with type safety and schema validation.

Install

mkdir -p .claude/skills/nuqs && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11515" && unzip -o skill.zip -d .claude/skills/nuqs && rm skill.zip

Installs to .claude/skills/nuqs

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Type-safe URL query state management with nuqs 2.x. Use when writing or reviewing code that uses useQueryState, useQueryStates, URL search params, query parameters, nuqs parsers, createLoader, createSearchParamsCache, createSerializer, or URL state in Next.js, React, Remix, React Router, or TanStack Router.
308 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Bind URL query parameters to state using `useQueryState` and `useQueryStates`.
  • Ensure type-safe parsing and serialization of query parameters.
  • Manage history and navigation behavior with `history:push` and `history:replace`.
  • Integrate with Next.js, React, Remix, React Router, or TanStack Router.
  • Optimize performance by limiting URL updates and clearing on default values.
  • Handle server-side parsing with `createLoader` and `createSearchParamsCache`.

How it works

The skill manages type-safe URL query state by binding query parameters to application state, handling parsing, serialization, and history management across various React frameworks.

Inputs & outputs

You give it
Application state or user interactions that modify URL query parameters
You get back
Synchronized URL query parameters and application state

When to use nuqs

  • Sync state with URL params
  • Validate query parameter inputs
  • Manage filter state in URLs

About this skill

nuqs Best Practices

Type-safe URL query state management with nuqs 2.x. Contains rules across 8 categories, prioritized by impact.

Rule Categories

PriorityCategoryImpactPrefix
1Parser ConfigurationCRITICALparser-
2Adapter & SetupCRITICALsetup-
3State ManagementHIGHstate-
4Server IntegrationHIGHserver-
5PerformanceMEDIUMperf-
6History & NavigationMEDIUMhistory-
7Debugging & TestingLOW-MEDIUMdebug-
8Advanced PatternsLOWadvanced-

Quick Reference

1. Parser Configuration (CRITICAL)

2. Adapter & Setup (CRITICAL)

3. State Management (HIGH)

4. Server Integration (HIGH)

5. Performance (MEDIUM)

6. History & Navigation (MEDIUM)

7. Debugging & Testing (LOW-MEDIUM)

8. Advanced Patterns (LOW)

When not to use it

  • When URL query parameters are not used for state management.
  • When working outside of Next.js, React, Remix, React Router, or TanStack Router environments.
  • When type-safe URL state management is not a requirement.

Limitations

  • Requires use within Next.js, React, Remix, React Router, or TanStack Router.
  • Focuses on URL query parameter state management.
  • Relies on specific nuqs 2.x APIs like `useQueryState`.

How it compares

This skill provides a structured, type-safe, and framework-integrated approach to URL query state management, contrasting with manual URL parameter handling.

Compared to similar skills

nuqs side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
nuqs (this skill)05moNo flagsIntermediate
ssr-hydration-scraping04moNo flagsIntermediate
nextjs-developer3282moNo flagsAdvanced
landing-page-guide-v2488moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

Search skills

Search the agent skills registry