
- Installs
- 416
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/pymodel/react-frontend-skills --skill nuqs- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads nuqs automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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
| 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)
parser-use-typed-parsers- Use typed parsers for non-string valuesparser-with-default- Use withDefault for non-nullable stateparser-enum-validation- Use enum parsers for constrained valuesparser-array-format- Choose correct array parser formatparser-json-validation- Validate JSON parser inputparser-date-format- Select appropriate date parserparser-index-offset- Use parseAsIndex for 1-based URL displayparser-hex-colors- Use parseAsHex for color values
2. Adapter & Setup (CRITICAL)
setup-nuqs-adapter- Wrap app with NuqsAdaptersetup-use-client- Add 'use client' directive for hookssetup-import-server- Import server utilities from nuqs/serversetup-nextjs-version- Ensure compatible Next.js versionsetup-shared-parsers- Define shared parsers in dedicated file
3. State Management (HIGH)
state-use-query-states- Use useQueryStates for related parametersstate-functional-updates- Use functional updates for derived statestate-clear-with-null- Clear URL parameters with nullstate-controlled-inputs- Handle controlled input value properlystate-avoid-derived- Avoid derived state from URL parametersstate-options-inheritance- Use withOptions for parser-level configurationstate-setter-return- Use setter return value for URL access
4. Server Integration (HIGH)
server-search-params-cache- Use createSearchParamsCache for Server Componentsserver-shallow-false- Use shallow:false to trigger server re-rendersserver-use-transition- Integrate useTransition for loading statesserver-parse-before-get- Call parse() before get() in Server Componentsserver-share-parsers- Share parsers between client and serverserver-next15-async- Handle async searchParams in Next.js 15+
5. Performance Optimization (MEDIUM)
perf-throttle-updates- Throttle URL updates with limitUrlUpdatesperf-clear-on-default- Use clearOnDefault for clean URLsperf-avoid-rerender- Memoize components using URL stateperf-serialize-utility- Use createSerializer for link URLsperf-debounce-search- Debounce server-bound search updates
6. History & Navigation (MEDIUM)
history-push-navigation- Use history:push for navigation-like statehistory-replace-ephemeral- Use history:replace for ephemeral statehistory-scroll-behavior- Control scroll behavior on URL changeshistory-back-sync- Handle browser back/forward navigation
7. Debugging & Testing (LOW-MEDIUM)
debug-enable-logging- Enable debug logging for troubleshootingdebug-common-errors- Diagnose common nuqs errorsdebug-testing- Test components with URL state
8. Advanced Patterns (LOW)
advanced-custom-parsers- Create custom parsers for complex typesadvanced-url-keys- Use urlKeys for shorter URLsadvanced-eq-function- Implement eq function for object parsersadvanced-framework-adapters- Use framework-specific adapters
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.
FAQ
What does the nuqs skill do?
nuqs type-safe URL search-param state.
How do I install nuqs?
Run npx skills add https://github.com/pymodel/react-frontend-skills --skill nuqs in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/nuqs/ (personal) or .claude/skills/nuqs/ (project).
Which AI agents can use nuqs?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is nuqs safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains nuqs?
It is published by pymodel in pymodel/react-frontend-skills. It has 416 recorded installs.
More from pymodel/react-frontend-skills
ui-design
pymodel/react-frontend-skills
Accessible, responsive frontend UI and UX design.
typescript
pymodel/react-frontend-skills
TypeScript types, tsconfig and TypeScript 7 migration.
tailwind
pymodel/react-frontend-skills
Tailwind CSS v4 styling and configuration.
nextjs
pymodel/react-frontend-skills
Next.js 16 App Router caching and routing.
playwright
pymodel/react-frontend-skills
Playwright end-to-end tests and flaky-test fixes.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.