nuqs

nuqs is a skill for Claude Code, Codex from fellipeutaka/leon. It costs 79 tokens per session (2,063 once invoked), scanned A, original, MIT.

A guide for storing application state in URL query parameters with nuqs, a library for React and related web frameworks. It focuses on keeping URL values typed, validated, and usable by both browser and server code.

In plain words
What is it for?
Use it to configure nuqs adapters, define query parsers, manage URL-backed state, connect it to loaders and caches, choose navigation behavior, and test query handling.
Why use it?
It prevents different parts of an application from disagreeing about query-parameter names, types, defaults, or update behavior. This makes links, navigation, data loading, and shared searches more predictable.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the frontend plugin — 35 skills shipped together

Good fit Use it to configure nuqs adapters, define query parsers, manage URL-backed state, connect it to loaders and caches, choose navigation behavior, and test query handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fellipeutaka/leon/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 fellipeutaka/leon --skill nuqs
Clone the repo
git clone --depth 1 https://github.com/fellipeutaka/leon

Made for: Claude Code, Codex.

Or install frontend, the plugin that ships this one along with the rest of its 35 skills.

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/fellipeutaka/leon/nuqs/github.svg)](https://agentmods.dev/skills/fellipeutaka/leon/nuqs)
Your own site
<a href="https://agentmods.dev/skills/fellipeutaka/leon/nuqs"><img src="https://agentmods.dev/badge/skills/fellipeutaka/leon/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/fellipeutaka/leon/nuqs"><img src="https://agentmods.dev/badge/skills/fellipeutaka/leon/nuqs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,063 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.00079 $0.02063
Opus 5.5 $0.00032 $0.00825
Sonnet 5.5 $0.00016 $0.00413
Haiku 4.5 $0.00008 $0.00206

Measured 2mo ago against content hash f179eea04de0, 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 2mo 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.

skills/nuqs/SKILL.md · 199 lines

How it starts

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

Build and review query state with nuqs

Treat the URL as the state contract. Follow the steps in order, and load only the reference branches whose conditions match the application.

1. Model the URL contract

For every query key, record:

  • its URL spelling and domain type;
  • the value to use when the key is absent or invalid;
  • whether setting the default should remove the key;
  • whether an update represents navigation or ephemeral UI state;
  • which client components, loaders, routes, or server components read it.

Inspect the installed nuqs, framework, and router major versions before choosing integration paths.

Read the matching branch references:

Complete when every query key has one documented URL representation and the adapter import and provider boundary match the installed router.

2. Define one parser contract

Put related parsers in a dependency-neutral module. Import parsers from nuqs/server when any server-side consumer imports that module; client hooks can reuse the exported parser object.

Prefer built-ins that match the wire format. Use .withDefault(value) only when absent and invalid values should resolve to a non-null domain default. Defaults stay internal unless explicitly written; setting state to null removes the query key.

import {
  parseAsInteger,
  parseAsString,
  parseAsStringLiteral,
} from "nuqs/server";

export const searchParams = {
  q: parseAsString.withDefault(""),
  page: parseAsInteger.withDefault(1),
  sort: parseAsStringLiteral(["relevance", "date"] as const).withDefault(
    "relevance",
  ),
};

Read the full file on GitHub · 199 lines

Files

What ships with it

43 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. 2mo ago First seen · 199 lines · 79 tokens per session scan A f179eea04de0

Subscribe to this mod's changes

nuqs is a skill published in the GitHub repository fellipeutaka/leon (5 stars, last pushed yesterday), licensed MIT. It adds 79 tokens to every session and 2,063 once invoked, about $0.0003 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

nuqs compared with skills from other repositories

nuqs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nuqsfellipeutaka/leonSkill5yesterdayMITA79Claude Code, Codex
build-ghost-appTryGhost/GhostSkill56kyesterdayMITA44Claude Code, Codex
chakra-ui-builderchakra-ui/chakra-uiSkill41kyesterdayMITA214Claude Code, Codex
material-ui-tailwindmui/material-uiSkill99kyesterdayMITA67Claude Code, Codex
fuzzy-rankingTanStack/tableSkill29k4d agoMITA62Claude Code, Codex
r3f-best-practiceszebbern/claude-code-guideSkill4.7k3d agoMITA74Claude Code, Codex
git-safetytamagui/tamaguiSkill14ktodayMITA0Claude Code