mcpField
N
nuqs

nuqs

github.com/pymodelDevelopment41438 installsUpdated 5w ago
Repository

About nuqs

A nuqs guide for developers managing type-safe URL query state in Next.js. Its 42 prioritized rules cover setup, parsers, server integration, performance, navigation, and testing.

Key features

  1. 0142 rules across eight categories
  2. 02Typed parser configuration
  3. 03Next.js adapter and setup guidance
  4. 04Server Component integration
  5. 05URL update performance guidance
  6. 06History, debugging, and testing advice

Use cases

  1. 01Setting up nuqs in a Next.js project
  2. 02Managing URL-backed application state
  3. 03Integrating query state with Server Components
  4. 04Troubleshooting nuqs behavior

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pymodel/react-frontend-skills --skill nuqs

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

Bundled files

References and scripts installed along with SKILL.md.

references/
advanced-custom-parsers.md
advanced-eq-function.md
advanced-framework-adapters.md
advanced-url-keys.md
debug-common-errors.md
debug-enable-logging.md
debug-testing.md
history-back-sync.md
history-push-navigation.md
history-replace-ephemeral.md
history-scroll-behavior.md
parser-array-format.md
parser-date-format.md
parser-enum-validation.md
parser-hex-colors.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-serialize-utility.md
perf-throttle-updates.md
server-next15-async.md
server-parse-before-get.md
server-search-params-cache.md
server-shallow-false.md
server-share-parsers.md
server-use-transition.md

Details

From the project README

Community nuqs Best Practices for Next.js

Comprehensive guide for type-safe URL query state management with nuqs in Next.js applications. Contains 42 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 project
  • Configuring parsers for URL parameters
  • Integrating URL state with Server Components
  • Optimizing URL update performance
  • 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

Run in the project root first:

npx -y @pymodel/react-frontend-skills detect             # installed vs. targeted versions
npx -y @pymodel/react-frontend-skills scan --skill nuqs  # deprecated APIs → rule IDs

Read references/<rule-id>.md for each rule above that matches the task and for each scan hit: why it matters, then incorrect vs. correct code.

Comments

Markdown supported