[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FEEH9CHS9QNVR2QN3P1BYK":3,"skill-same:01M6FEEH9CHS9QNVR2QN3P1BYK":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6FEEH9CHS9QNVR2QN3P1BYK","nuqs",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fnuqs\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Community nuqs Best Practices for Next.js\n\nComprehensive 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.\n\n## When to Apply\n\nReference these guidelines when:\n- Implementing URL-based state with nuqs\n- Setting up nuqs in a Next.js project\n- Configuring parsers for URL parameters\n- Integrating URL state with Server Components\n- Optimizing URL update performance\n- Debugging nuqs-related issues\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | Parser Configuration | CRITICAL | `parser-` |\n| 2 | Adapter & Setup | CRITICAL | `setup-` |\n| 3 | State Management | HIGH | `state-` |\n| 4 | Server Integration | HIGH | `server-` |\n| 5 | Performance Optimization | MEDIUM | `perf-` |\n| 6 | History & Navigation | MEDIUM | `history-` |\n| 7 | Debugging & Testing | LOW-MEDIUM | `debug-` |\n| 8 | Advanced Patterns | LOW | `advanced-` |\n\n## Quick Reference\n\n### 1. Parser Configuration (CRITICAL)\n\n- [`parser-use-typed-parsers`](references\u002Fparser-use-typed-parsers.md) - Use typed parsers for non-string values\n- [`parser-with-default`](references\u002Fparser-with-default.md) - Use withDefault for non-nullable state\n- [`parser-enum-validation`](references\u002Fparser-enum-validation.md) - Use enum parsers for constrained values\n- [`parser-array-format`](references\u002Fparser-array-format.md) - Choose correct array parser format\n- [`parser-json-validation`](references\u002Fparser-json-validation.md) - Validate JSON parser input\n- [`parser-date-format`](references\u002Fparser-date-format.md) - Select appropriate date parser\n- [`parser-index-offset`](references\u002Fparser-index-offset.md) - Use parseAsIndex for 1-based URL display\n- [`parser-hex-colors`](references\u002Fparser-hex-colors.md) - Use parseAsHex for color values\n\n### 2. Adapter & Setup (CRITICAL)\n\n- [`setup-nuqs-adapter`](references\u002Fsetup-nuqs-adapter.md) - Wrap app with NuqsAdapter\n- [`setup-use-client`](references\u002Fsetup-use-client.md) - Add 'use client' directive for hooks\n- [`setup-import-server`](references\u002Fsetup-import-server.md) - Import server utilities from nuqs\u002Fserver\n- [`setup-nextjs-version`](references\u002Fsetup-nextjs-version.md) - Ensure compatible Next.js version\n- [`setup-shared-parsers`](references\u002Fsetup-shared-parsers.md) - Define shared parsers in dedicated file\n\n### 3. State Management (HIGH)\n\n- [`state-use-query-states`](references\u002Fstate-use-query-states.md) - Use useQueryStates for related parameters\n- [`state-functional-updates`](references\u002Fstate-functional-updates.md) - Use functional updates for derived state\n- [`state-clear-with-null`](references\u002Fstate-clear-with-null.md) - Clear URL parameters with null\n- [`state-controlled-inputs`](references\u002Fstate-controlled-inputs.md) - Handle controlled input value properly\n- [`state-avoid-derived`](references\u002Fstate-avoid-derived.md) - Avoid derived state from URL parameters\n- [`state-options-inheritance`](references\u002Fstate-options-inheritance.md) - Use withOptions for parser-level configuration\n- [`state-setter-return`](references\u002Fstate-setter-return.md) - Use setter return value for URL access\n\n### 4. Server Integration (HIGH)\n\n- [`server-search-params-cache`](references\u002Fserver-search-params-cache.md) - Use createSearchParamsCache for Server Components\n- [`server-shallow-false`](references\u002Fserver-shallow-false.md) - Use shallow:false to trigger server re-renders\n- [`server-use-transition`](references\u002Fserver-use-transition.md) - Integrate useTransition for loading states\n- [`server-parse-before-get`](references\u002Fserver-parse-before-get.md) - Call parse() before get() in Server Components\n- [`server-share-parsers`](references\u002Fserver-share-parsers.md) - Share parsers between client and server\n- [`server-next15-async`](references\u002Fserver-next15-async.md) - Handle async searchParams in Next.js 15+\n\n### 5. Performance Optimization (MEDIUM)\n\n- [`perf-throttle-updates`](references\u002Fperf-throttle-updates.md) - Throttle rapid URL updates\n- [`perf-clear-on-default`](references\u002Fperf-clear-on-default.md) - Use clearOnDefault for clean URLs\n- [`perf-avoid-rerender`](references\u002Fperf-avoid-rerender.md) - Memoize components using URL state\n- [`perf-serialize-utility`](references\u002Fperf-serialize-utility.md) - Use createSerializer for link URLs\n- [`perf-debounce-search`](references\u002Fperf-debounce-search.md) - Debounce search input before URL update\n\n### 6. History & Navigation (MEDIUM)\n\n- [`history-push-navigation`](references\u002Fhistory-push-navigation.md) - Use history:push for navigation-like state\n- [`history-replace-ephemeral`](references\u002Fhistory-replace-ephemeral.md) - Use history:replace for ephemeral state\n- [`history-scroll-behavior`](references\u002Fhistory-scroll-behavior.md) - Control scroll behavior on URL changes\n- [`history-back-sync`](references\u002Fhistory-back-sync.md) - Handle browser back\u002Fforward navigation\n\n### 7. Debugging & Testing (LOW-MEDIUM)\n\n- [`debug-enable-logging`](references\u002Fdebug-enable-logging.md) - Enable debug logging for troubleshooting\n- [`debug-common-errors`](references\u002Fdebug-common-errors.md) - Diagnose common nuqs errors\n- [`debug-testing`](references\u002Fdebug-testing.md) - Test components with URL state\n\n### 8. Advanced Patterns (LOW)\n\n- [`advanced-custom-parsers`](references\u002Fadvanced-custom-parsers.md) - Create custom parsers for complex types\n- [`advanced-url-keys`](references\u002Fadvanced-url-keys.md) - Use urlKeys for shorter URLs\n- [`advanced-eq-function`](references\u002Fadvanced-eq-function.md) - Implement eq function for object parsers\n- [`advanced-framework-adapters`](references\u002Fadvanced-framework-adapters.md) - Use framework-specific adapters\n\n## How to Use\n\nRead individual reference files for detailed explanations and code examples:\n\n- [Section definitions](references\u002F_sections.md) - Category structure and impact levels\n- [Rule template](assets\u002Ftemplates\u002F_template.md) - Template for adding new rules\n\n## Reference Files\n\n| File | Description |\n|------|-------------|\n| [AGENTS.md](AGENTS.md) | Complete compiled guide with all rules |\n| [references\u002F_sections.md](references\u002F_sections.md) | Category definitions and ordering |\n| [assets\u002Ftemplates\u002F_template.md](assets\u002Ftemplates\u002F_template.md) | Template for new rules |\n| [metadata.json](metadata.json) | Version and reference information |\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fpproenca\u002Fdot-skills\u002Fnuqs",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill nuqs",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill nuqs",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill nuqs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fnuqs\u002FSKILL.md",true,[],[46,55,64,73,79,85],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[52,53,54],"model","model hierarchy","model hierarchy skill",{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[61,62,63],"MCP","zoom","zoom mcp",{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[70,71,72,62],"sdk","zoom apps sdk","apps",{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[75],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[87]]