Skip to content
Skillpedia
Websites & UI (frontend)12k Β· #11522

nuqs

What it does

It guides the AI through reading and writing URL query values with typed parsers in React and Next.js. It is for developers who want shareable, bookmarkable page state.

When to use it

  • βœ“When you want filters, search text or tabs kept in the URL.
  • βœ“When you use useQueryState or useQueryStates in a React or Next.js project.
  • βœ“When you want to limit or isolate URL updates for better performance.

Skill link

https://github.com/trycompai/crm/blob/release/.agents/skills/nuqs/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/trycompai/crm/blob/release/.agents/skills/nuqs/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œCan you store the search and date filters in the URL so the page keeps them after a refresh?”

5 new skills a week. 1 minute to read.

How it works

The AI picks typed parsers for each value, sets up the adapter for the framework and wires the state hooks so the URL and the screen stay in sync.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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

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)

FAQ

Does it work only with Next.js?

No. The guide also covers React Router, TanStack Router, Remix and plain React.

What is a parser?

It converts a URL value, such as text or a number, into a typed value the code can use, and back again.

Does it cover server components?

Yes, it covers integrating URL state with server components in Next.js.

Details

Original description by the author

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.

repo: trycompai/crm

Popularity

GitHub stars
12k
Ranking position
#11522
License
MIT
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills