nuqs

Type-safe URL query state management for Next.js with 42 prioritized best practices across parser configuration, setup, and server integration. Covers critical parser configuration (typed parsers, defaults, enums, arrays, JSON, dates) and adapter setup (NuqsAdapter, 'use client' directives, Next.js version compatibility) Includes high-impact state management patterns using useQueryStates, functional updates, null clearing, and controlled inputs Provides server integration guidance for Server Components, shallow rendering, useTransition integration, and Next.js 15+ async searchParams Addresses performance optimization through throttling, debouncing, memoization, and URL serialization utilities Covers history navigation modes (push vs. replace), debugging techniques, and advanced patterns like custom parsers and shorter URL keys

INSTALLATION
npx skills add https://github.com/pproenca/dot-skills --skill nuqs
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

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

Priority

Category

Impact

Prefix

1

Parser Configuration

CRITICAL

parser-

2

Adapter & Setup

CRITICAL

setup-

3

State Management

HIGH

state-

4

Server Integration

HIGH

server-

5

Performance Optimization

MEDIUM

perf-

6

History & Navigation

MEDIUM

history-

7

Debugging & Testing

LOW-MEDIUM

debug-

8

Advanced Patterns

LOW

advanced-

Quick Reference

1. Parser Configuration (CRITICAL)

2. Adapter & Setup (CRITICAL)

3. State Management (HIGH)

4. Server Integration (HIGH)

5. Performance Optimization (MEDIUM)

6. History & Navigation (MEDIUM)

7. Debugging & Testing (LOW-MEDIUM)

8. Advanced Patterns (LOW)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

File

Description

AGENTS.md

Complete compiled guide with all rules

references/_sections.md

Category definitions and ordering

assets/templates/_template.md

Template for new rules

metadata.json

Version and reference information

BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card