360 Secure SkillHub
360 安全技能中心

nuqs

提供 42 条 nuqs 在 Next.js 中的规则,覆盖解析器、适配器、状态管理、服务端集成、性能、历史导航、调试与高级模式,用于代码生成、重构和评审。

分类:开发
PyModel
热度 0.00
最近更新 2026-11-10 05:27:21

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add pymodel/react-frontend-skills/nuqs
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
nuqs
description
nuqs type-safe URL search-param state.

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)

3. State Management (HIGH)

4. Server Integration (HIGH)

5. Performance Optimization (MEDIUM)

6. History & Navigation (MEDIUM)

7. Debugging & Testing (LOW-MEDIUM)

8. Advanced Patterns (LOW)

How to Use

Run in the project root first:

npx -y @pymodel/react-frontend-skills detect             # installed vs. targeted versions

Read references/<rule-id>.md for each rule above that matches the task: why it matters, then incorrect vs. correct code.