·nextjs-dynamic-routes-params
</>

nextjs-dynamic-routes-params

wsimmonds/claude-nextjs-skills

Next.js App Router 动态路由和路径名参数指南。在构建依赖于 URL 段(ID、slugs、嵌套路径)的页面、访问“params”属性或通过标识符获取资源时使用。通过默认最简单的路由结构(例如,除非 URL 需要它,否则使用 `app/[id]` 而不是 `app/products/[id]`)来帮助避免过度嵌套。

39安装·0热度·@wsimmonds

安装

$npx skills add https://github.com/wsimmonds/claude-nextjs-skills --skill nextjs-dynamic-routes-params

SKILL.md

Look for requirements that tie data to the URL path.

Create a dynamic segment ([param]) whenever the UI depends on part of the pathname. Typical signals include:

Core rule: If data varies with a URL segment, the folder name needs matching brackets.

Next.js App Router 动态路由和路径名参数指南。在构建依赖于 URL 段(ID、slugs、嵌套路径)的页面、访问“params”属性或通过标识符获取资源时使用。通过默认最简单的路由结构(例如,除非 URL 需要它,否则使用 `app/[id]` 而不是 `app/products/[id]`)来帮助避免过度嵌套。 来源:wsimmonds/claude-nextjs-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/wsimmonds/claude-nextjs-skills --skill nextjs-dynamic-routes-params
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 nextjs-dynamic-routes-params?

Next.js App Router 动态路由和路径名参数指南。在构建依赖于 URL 段(ID、slugs、嵌套路径)的页面、访问“params”属性或通过标识符获取资源时使用。通过默认最简单的路由结构(例如,除非 URL 需要它,否则使用 `app/[id]` 而不是 `app/products/[id]`)来帮助避免过度嵌套。 来源:wsimmonds/claude-nextjs-skills。

如何安装 nextjs-dynamic-routes-params?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/wsimmonds/claude-nextjs-skills --skill nextjs-dynamic-routes-params 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/wsimmonds/claude-nextjs-skills