Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
pproenca avatar

Nuqs

  • 1.2k installs
  • 186 repo stars
  • Updated July 24, 2026
  • pproenca/dot-skills

nuqs provides documented workflows for nuqs (type-safe URL query state) best practices for Next.js and other React frameworks. This skill should be used when writing, reviewing, or refactoring code t

About

The nuqs skill nuqs type-safe URL query state best practices for Next js and other React frameworks This skill should be used when writing reviewing or refactoring code that uses nuqs for URL state management Triggers on tasks involving useQueryState useQueryStates search params URL state query parameters nuqs parsers limitUrlUpdates Standard Schema NuqsAdapter or Next js routing with state Community nuqs Best Practices for Next js React Comprehensive guide for type-safe URL query state management with nuqs across Next js React Router TanStack Router Remix and plain React Covers nuqs v2 5 v2 8 features Contains 46 rules across 8 categories prioritized by impact to guide code generation refactoring and code review When to Apply Reference these guidelines when Implementing URL-based state with nuqs Setting up nuqs in a Next js or React Router project Configuring parsers for URL parameters Integrating URL state with Server Components Optimizing URL update performance limitUrlUpdates key isolation Sharing parser definitions with tRPC TanStack Router forms via Standard Schema Debugging nuqs-related issues Rule Categories by

  • Implementing URL-based state with nuqs
  • Setting up nuqs in a Next.js or React Router project
  • Configuring parsers for URL parameters
  • Integrating URL state with Server Components
  • Optimizing URL update performance (`limitUrlUpdates`, key isolation)

Nuqs by the numbers

  • 1,249 all-time installs (skills.sh)
  • +45 installs in the week ending Jul 29, 2026 (Skillselion tracking)
  • Ranked #347 of 2,203 Security skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 31, 2026 (Skillselion catalog sync)
At a glance

nuqs capabilities & compatibility

Capabilities
implementing url based state with nuqs · setting up nuqs in a next.js or react router pro · configuring parsers for url parameters · integrating url state with server components · optimizing url update performance (`limiturlupda
Use cases
documentation
From the docs

What nuqs says it does

# Community nuqs Best Practices for Next.js & React Comprehensive guide for type-safe URL query state management with nuqs across Next.js, React Router, TanStack Router, Remix, and plain React.
SKILL.md
Contains 46 rules across 8 categories, prioritized by impact to guide code generation, refactoring, and code review.
SKILL.md
npx skills add https://github.com/pproenca/dot-skills --skill nuqs

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.2k
repo stars186
Security audit3 / 3 scanners passed
Last updatedJuly 24, 2026
Repositorypproenca/dot-skills

How do I use nuqs for the task described in its SKILL.md triggers?

nuqs (type-safe URL query state) best practices for Next.js and other React frameworks. This skill should be used when writing, reviewing, or refactoring code that uses nuqs for URL state management.

Who is it for?

Teams invoking nuqs when the user request matches documented triggers and prerequisites.

Skip if: Skip when cached docs are missing, the request is a negative trigger, or another sibling skill owns the workflow.

When should I use this skill?

nuqs (type-safe URL query state) best practices for Next.js and other React frameworks. This skill should be used when writing, reviewing, or refactoring code that uses nuqs for URL state management. Triggers on tasks in

What you get

Step-by-step guidance grounded in nuqs documentation and reference files.

  • nuqs-compliant URL state code
  • validated parser configurations

By the numbers

  • Contains 46 rules across 8 categories
  • Covers nuqs v2.5 through v2.8 features

Files

SKILL.mdMarkdownGitHub ↗

Community nuqs Best Practices for Next.js & React

Comprehensive guide for type-safe URL query state management with nuqs across Next.js, React Router, TanStack Router, Remix, and plain React. Covers nuqs v2.5–v2.8 features. Contains 46 rules across 8 categories, prioritized by impact to guide code generation, refactoring, and code review.

When to Apply

Reference these guidelines when:

  • Implementing URL-based state with nuqs
  • Setting up nuqs in a Next.js or React Router project
  • Configuring parsers for URL parameters
  • Integrating URL state with Server Components
  • Optimizing URL update performance (limitUrlUpdates, key isolation)
  • Sharing parser definitions with tRPC / TanStack Router / forms via Standard Schema
  • Debugging nuqs-related issues

Rule Categories by Priority

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

Quick Reference

1. Parser Configuration (CRITICAL)

  • `parser-use-typed-parsers` — Use typed parsers for non-string values
  • `parser-with-default` — Use withDefault for non-nullable state
  • `parser-enum-validation` — Use enum parsers for constrained values
  • `parser-array-format` — Choose correct array parser format
  • `parser-json-validation` — Validate JSON parser input
  • `parser-date-format` — Select appropriate date parser
  • `parser-index-offset` — Use parseAsIndex for 1-based URL display
  • `parser-hex-colors` — Use parseAsHex for color values

2. Adapter & Setup (CRITICAL)

  • `setup-nuqs-adapter` — Wrap app with NuqsAdapter
  • `setup-use-client` — Add 'use client' directive for hooks
  • `setup-import-server` — Import server utilities from nuqs/server
  • `setup-nextjs-version` — Ensure compatible Next.js version
  • `setup-shared-parsers` — Define shared parsers in dedicated file
  • `setup-default-options` — Configure app-wide defaults on NuqsAdapter (v2.5+)

3. State Management (HIGH)

  • `state-use-query-states` — Use useQueryStates for related parameters
  • `state-functional-updates` — Use functional updates for derived state
  • `state-clear-with-null` — Clear URL parameters with null
  • `state-controlled-inputs` — Handle controlled input value properly
  • `state-avoid-derived` — Avoid derived state from URL parameters
  • `state-options-inheritance` — Use withOptions for parser-level configuration
  • `state-setter-return` — Use setter return value for URL access
  • `state-standard-schema` — Use Standard Schema for cross-library validation (v2.5+)

4. Server Integration (HIGH)

  • `server-search-params-cache` — Use createSearchParamsCache (or createLoader) for Server Components
  • `server-shallow-false` — Use shallow:false to trigger server re-renders
  • `server-use-transition` — Integrate useTransition for loading states
  • `server-parse-before-get` — Call parse() before get() in Server Components
  • `server-share-parsers` — Share parsers between client and server
  • `server-next15-async` — Handle async searchParams in Next.js 15+

5. Performance Optimization (MEDIUM)

  • `perf-throttle-updates` — Throttle rapid URL updates with limitUrlUpdates
  • `perf-debounce-search` — Debounce search input with built-in limitUrlUpdates
  • `perf-clear-on-default` — Use clearOnDefault for clean URLs
  • `perf-avoid-rerender` — Memoize components using URL state (Next.js)
  • `perf-key-isolation` — Rely on key isolation outside Next.js (v2.5+)
  • `perf-serialize-utility` — Use createSerializer for link URLs

6. History & Navigation (MEDIUM)

  • `history-push-navigation` — Use history:push for navigation-like state
  • `history-replace-ephemeral` — Use history:replace for ephemeral state
  • `history-scroll-behavior` — Control scroll behavior on URL changes
  • `history-back-sync` — Handle browser back/forward navigation

7. Debugging & Testing (LOW-MEDIUM)

  • `debug-enable-logging` — Enable debug logging for troubleshooting
  • `debug-common-errors` — Diagnose common nuqs errors
  • `debug-testing` — Test components with URL state

8. Advanced Patterns (LOW)

  • `advanced-custom-parsers` — Create custom parsers for complex types
  • `advanced-url-keys` — Use urlKeys for shorter URLs
  • `advanced-eq-function` — Implement eq function for object parsers
  • `advanced-framework-adapters` — Use framework-specific adapters
  • `advanced-process-url-search-params` — Canonicalize URL shape with processUrlSearchParams (v2.6+)

How to Use

Read individual reference files for detailed explanations and code examples:

  • Section definitions — Category structure and impact levels
  • Rule template — Template for adding new rules

Reference Files

FileDescription
AGENTS.mdComplete compiled guide with all rules
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Related skills

How it compares

Pick nuqs over generic React state skills when URL search parameters must stay type-safe, shareable, and synchronized with Next.js or multi-router React setups.

FAQ

What does nuqs do?

nuqs (type-safe URL query state) best practices for Next.js and other React frameworks. This skill should be used when writing, reviewing, or refactoring code that uses nuqs for URL state management. Triggers on tasks in

When should I use nuqs?

nuqs (type-safe URL query state) best practices for Next.js and other React frameworks. This skill should be used when writing, reviewing, or refactoring code that uses nuqs for URL state management. Triggers on tasks in

What are common prerequisites?

--- name: nuqs description: nuqs (type-safe URL query state) best practices for Next.js and other React frameworks.

Is Nuqs safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Securityappsec

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.