nuqs

nuqs is a skill for Claude Code, Codex from PyModel/react-frontend-skills. It costs 12 tokens per session (1,439 once invoked), scanned A, original, MIT.

A guide to nuqs, a Next.js library for storing application state in URL query parameters such as filters, searches, and page numbers.

In plain words
What is it for?
Use it when adding URL-based state, configuring parameter parsers, handling browser history, integrating with server components, or debugging URL state.
Why use it?
It helps keep URL values typed, shareable, bookmarkable, and correctly synchronized with the application and server-rendered pages.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding URL-based state, configuring parameter parsers, handling browser history, integrating with server components, or debugging URL state.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pymodel/react-frontend-skills/nuqs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PyModel/react-frontend-skills --skill nuqs
Clone the repo
git clone --depth 1 https://github.com/PyModel/react-frontend-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nuqs

README.md
[![agentmods](https://agentmods.dev/badge/skills/pymodel/react-frontend-skills/nuqs/github.svg)](https://agentmods.dev/skills/pymodel/react-frontend-skills/nuqs)
Your own site
<a href="https://agentmods.dev/skills/pymodel/react-frontend-skills/nuqs"><img src="https://agentmods.dev/badge/skills/pymodel/react-frontend-skills/nuqs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nuqs

Your own site · 80×15
<a href="https://agentmods.dev/skills/pymodel/react-frontend-skills/nuqs"><img src="https://agentmods.dev/badge/skills/pymodel/react-frontend-skills/nuqs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,439 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.01439
Opus 5.5 $0.00005 $0.00576
Sonnet 5.5 $0.00002 $0.00288
Haiku 4.5 $0.00001 $0.00144

Measured 20d ago against content hash 12bd4845a500, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nuqs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • nuqs — 92% identical, 23 lines differ
skills/nuqs/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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)

2. Adapter & Setup (CRITICAL)

Read the full file on GitHub · 111 lines

Files

What ships with it

42 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago Changed · -3 lines · -64 tokens per session 12bd4845a500
  2. 1mo ago First seen · 114 lines · 76 tokens per session scan A aaff9532190a

Subscribe to this mod's changes

nuqs is a skill published in the GitHub repository PyModel/react-frontend-skills (37 stars, last pushed 3d ago), licensed MIT. It adds 12 tokens to every session and 1,439 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

lov-media-publisher

A video publishing workflow for the WeChat Channels and Bilibili creator dashboards. It checks media and post fields, handles platform-specific limits and layouts, and reads the submitted details back from the platform.

lovstudio/skills · 97 tokens

lov-app-generator

An app-building workflow that creates or upgrades web apps, Tauri desktop apps, or native macOS apps from a project brief. Tauri packages a web-based interface as a desktop application.

lovstudio/skills · 66 tokens

lov-mobile-infographic

A mobile infographic maker that turns existing conclusions, research, or conversation content into a tall, phone-readable card. It delivers editable HTML and a PNG image.

lovstudio/skills · 110 tokens

lov-maintain-partners

Maintain the Skill Publisher website's partners section AND align partner logo rows on event posters / hero strips: reuse lov-find-logo for brand logo discovery, normalize collected logos to a 240px-tall content canvas (retina-ready), rasterize SVGs via rsvg-convert before normalizing (so SVG viewBox padding gets…

lovstudio/skills · 294 tokens

lov-publish-event-onto-hdx

A tool for diagnosing how an event appears on Huodongxing, a Chinese event-listing website. It checks the event’s category, tags, visibility, and ranking.

lovstudio/skills · 92 tokens

lov-illustrate

A document-illustration workflow that examines a Markdown document, chooses suitable real images, charts, or generated visuals, and inserts them into an enhanced version. Markdown is a plain-text format that uses simple symbols for headings, links, and other document structure.

lovstudio/skills · 44 tokens