nuqs
✓在 React 中实现 URL 查询状态、管理搜索参数、将状态与 URL 同步、构建可过滤/可排序列表、使用 URL 状态分页或在 Next.js、Remix、React Router 或普通 React 中使用 nuqs/useQueryState/useQueryStates 挂钩时使用。
SKILL.md
Type-safe URL query state management for React. Like useState, but stored in the URL.
| parseAsString | string | ?q=hello | | parseAsInteger | number | ?page=1 | | parseAsFloat | number | ?price=9.99 | | parseAsHex | number | ?color=ff0000 | | parseAsBoolean | boolean | ?active=true | | parseAsIsoDateTime | Date | ?date=2024-01-15T10:30:00Z | | parseAsTimestamp | Date | ?t=1705312200000 | | parseAsArrayOf(parser) | T[] | ?tags=a,b,c |
| parseAsArrayOf(parser, ';') | T[] | ?ids=1;2;3 (custom separator) | | parseAsJson () | T | ?data={"key":"value"} | | parseAsStringEnum(values) | enum | ?status=active | | parseAsStringLiteral(arr) | literal | ?sort=asc | | parseAsNumberLiteral(arr) | literal | ?dice=6 |
在 React 中实现 URL 查询状态、管理搜索参数、将状态与 URL 同步、构建可过滤/可排序列表、使用 URL 状态分页或在 Next.js、Remix、React Router 或普通 React 中使用 nuqs/useQueryState/useQueryStates 挂钩时使用。 来源:noklip-io/agent-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/noklip-io/agent-skills --skill nuqs- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 nuqs?
在 React 中实现 URL 查询状态、管理搜索参数、将状态与 URL 同步、构建可过滤/可排序列表、使用 URL 状态分页或在 Next.js、Remix、React Router 或普通 React 中使用 nuqs/useQueryState/useQueryStates 挂钩时使用。 来源:noklip-io/agent-skills。
如何安装 nuqs?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/noklip-io/agent-skills --skill nuqs 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/noklip-io/agent-skills
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01