Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
pproenca avatar

Nuqs Codemod Runner

  • 80 installs
  • 191 repo stars
  • Updated July 24, 2026
  • pproenca/dot-skills

nuqs-codemod-runner is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

Key points

  • nuqs-codemod-runner
  • AI & Agent Building
  • AI-coding skill

Nuqs Codemod Runner by the numbers

  • 80 all-time installs (skills.sh)
  • +7 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #5,222 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/pproenca/dot-skills --skill nuqs-codemod-runner

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs80
repo stars191
Last updatedJuly 24, 2026
Repositorypproenca/dot-skills

How do I helps with ai & agent building tasks during ai-assisted development?

Helps with ai & agent building tasks during AI-assisted development.

Who is it for?

Best when you're working on ai & agent building and need structured help with nuqs-codemod-runner.

Skip if: Teams with no ai & agent building needs, or anyone wanting a generic chat assistant without this specific workflow.

When should I use this skill?

When you need to helps with ai & agent building tasks during ai-assisted development, or when nuqs-codemod-runner is a claude code skill for ai & agent building. it helps solo builders move faster with ai-assisted coding.

What you get

Structured output aligned to nuqs-codemod-runner: nuqs-codemod-runner; AI & Agent Building; AI-coding skill.

Files

SKILL.mdMarkdownGitHub ↗

nuqs Codemod Runner

Migrate a codebase from pre-v2.5 nuqs patterns to current v2.5–v2.8 idioms. The skill is read-only by default — it never modifies files without an explicit confirmation step, and refuses to run on a dirty git working tree.

When to Apply

Trigger this skill when:

  • A user asks to "upgrade nuqs" or "migrate to nuqs 2.x" in a project that already uses nuqs
  • You spot any of the 5 legacy patterns during a review (see the codemod table below)
  • A nuqs version bump in package.json from <2.5 to >=2.5 is part of the diff
  • The user has just installed/updated the `nuqs` skill and wants to bring existing code into line with it

This skill is the automation companion to skills/.curated/nuqs/ — that skill teaches what each correct pattern looks like; this skill rewrites legacy code to match.

Workflow Overview

┌──────────┐    ┌────────────┐    ┌──────────────────┐    ┌───────────┐    ┌────────────┐
│  scan.sh │──▶ │ scan.json  │──▶ │   report.sh      │──▶ │ apply.sh  │──▶ │ verify.sh  │
└──────────┘    └────────────┘    │ (dry-run table)  │    │ (codemods)│    │ (tsc+lint) │
                                  └──────────────────┘    └───────────┘    └────────────┘
                                          │                     ▲                │
                                          ▼                     │                ▼
                                  user reviews ────────────  confirms       on fail: revert

1. `scripts/scan.sh <repo-root>` — ripgreps every .ts/.tsx/.js/.jsx file for the 5 legacy patterns, emits scan.json with {path, line, matchedPattern, snippet, suggestion}. 2. `scripts/report.sh` — renders scan.json as a markdown table grouped by codemod, with file paths and before/after pairs. Show this output to the user verbatim and ask for explicit confirmation before continuing. 3. `scripts/apply.sh [--filter <codemod-id>]` — runs the jscodeshift transforms in scripts/transforms/. Refuses to run unless a fresh scan.json exists for the current git HEAD and the working tree is clean (--allow-dirty overrides). 4. `scripts/verify.sh` — runs tsc --noEmit and npm run lint (or the equivalent commands from config.json). If anything fails, git restore reverts every file the codemod touched.

Run all four sequentially. If the user only wants to scan, stop at step 2.

The Five Codemods

IDDetectsRewrites to
throttle-mswithOptions({ throttleMs: N }) or setX(v, { throttleMs: N })withOptions({ limitUrlUpdates: throttle(N) }) + adds throttle to the nuqs import
manual-debounceuseState mirror + useEffect + setTimeout debounce around a useQueryState setterwithOptions({ limitUrlUpdates: debounce(N) }) + adds debounce to the nuqs import; deletes the mirror state and effect
unchecked-json-castparseAsJson<T>() (no validator) or parseAsJson((v) => v as T)Inserts a // TODO: validate type-guard stub or, if Zod is detected in package.json, a parseAsJson(SchemaName.parse) form
react-router-unversionedfrom 'nuqs/adapters/react-router'from 'nuqs/adapters/react-router/v6' (the alias the unversioned import historically pointed at)
parser-builder-typetype references to ParserBuilder<T> from nuqsSingleParserBuilder<T>

See `references/workflow.md` for the exact AST shapes each codemod matches and the edge cases it deliberately skips.

Setup

On first run, config.json is populated with the user's lint/typecheck commands and a default min_node_version. See _setup_instructions in config.json for what to fill in.

Risk & Guardrails

This skill is write-risk (it modifies source files). Guardrails:

  • apply.sh aborts if the working tree is dirty (use git stash first, or pass --allow-dirty after reading `gotchas.md`)
  • apply.sh aborts if scan.json is older than 60 minutes or was generated against a different git HEAD — re-run scan.sh
  • The hooks/hooks.json PreToolUse matcher blocks any direct node scripts/transforms/*.js invocation that bypasses the orchestrator
  • verify.sh auto-reverts on TS or lint failure via git restore over the touched files (recorded in last-run.json)

Related Skills

  • `nuqs` — Best-practice reference for nuqs v2.5+. This skill rewrites legacy code; that skill defines the target.

Gotchas

See `gotchas.md` for failure modes discovered during use.

Related skills

FAQ

What does nuqs-codemod-runner do?

nuqs-codemod-runner is a Claude Code skill for ai & agent building. It helps developers move faster with AI-assisted coding.

When should I use nuqs-codemod-runner?

When you need to helps with ai & agent building tasks during ai-assisted development, or when nuqs-codemod-runner is a claude code skill for ai & agent building. it helps developers move faster with ai-assisted coding.

What are the main capabilities?

nuqs-codemod-runner; AI & Agent Building; AI-coding skill.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.