mcpField
N
nuqs

nuqs

github.com/pproencaDevelopment2182.3k installsUpdated 11w ago
Repository

About nuqs

A reference skill for developers using nuqs to manage typed URL query state in React and related frameworks. Its 39 prioritized rules cover setup, parsers, server integration, performance, navigation, and troubleshooting.

Key features

  1. 0139 rules across eight categories
  2. 02Typed parsers and URL parameter patterns
  3. 03Framework setup and adapter guidance
  4. 04Server component integration
  5. 05URL update performance and history control
  6. 06Debugging and testing guidance

Use cases

  1. 01Adding URL-backed state to an app
  2. 02Configuring nuqs in a framework project
  3. 03Sharing parsers across libraries
  4. 04Debugging query-state behavior

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill nuqs

After installing, type/nuqsin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
metadata.json
README.md
assets/templates/
_template.md
references/
_sections.md
advanced-custom-parsers.md
advanced-eq-function.md
advanced-framework-adapters.md
advanced-process-url-search-params.md
advanced-url-keys.md
debug-enable-logging.md
debug-testing.md
history-push-navigation.md
history-scroll-behavior.md
parser-array-format.md
parser-date-format.md
parser-enum-validation.md
parser-index-offset.md
parser-json-validation.md
parser-use-typed-parsers.md
parser-with-default.md
perf-avoid-rerender.md
perf-clear-on-default.md
perf-debounce-search.md
perf-key-isolation.md
perf-serialize-utility.md
perf-throttle-updates.md
server-next15-async.md
server-parse-before-get.md
server-search-params-cache.md

Details

From the project README

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.9 features. Contains 39 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)
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

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

Comments

Markdown supported