@devflow-tools/plugin-nextjs
v0.18.73
Published
Next.js analysis and implementation tools for DevFlow.
Readme
@devflow-tools/plugin-nextjs
Next.js 专家插件 — App Router、SSR/SSG/ISR、Server Components、Middleware、部署。(v0.17.8)
安装
npm install @devflow-tools/plugin-nextjs使用
插件通过 DevFlow/Claude Code 使用:
/devflow:nextjs <你的任务>能力与知识源
MCP Tools
| Tool | 说明 | 关键参数 |
|------|------|---------|
| nextjs_diagnose_bug | Bug 诊断:错误类型 → 渲染层 → 构建配置 → 修复 | projectRoot, errorMessage, stackTrace |
| nextjs_new_page | 新建 Next.js 页面(路由 + 数据获取 + 渲染策略) | pageName, route |
Knowledge Sources
| 来源 | URL | SPA | |------|-----|-----| | Next.js 官方文档 | https://nextjs.org/docs | Yes |
Memory
插件自动注入以下最佳实践:
- App Router 优先于 Pages Router
- Server Components 默认,Client Components 用
'use client'声明 - 数据获取优先使用 Server Components +
fetch() - 路由组(route groups)用
(groupName)目录 - 图片必须使用
next/image组件
兼容性
需要 Node.js >= 18,并与同版本 @devflow-tools/sdk、DevFlow CLI 配合使用。插件不是独立 HTTP 服务。
相关链接
License
MIT
兼容性
需要 Node.js >= 18,并与同版本 @devflow-tools/sdk、DevFlow CLI 配合使用。插件不是独立 HTTP 服务。
相关链接
License
MIT
兼容性
需要 Node.js >= 18,并与同版本 @devflow-tools/sdk、DevFlow CLI 配合使用。插件不是独立 HTTP 服务。
相关链接
License
MIT
兼容性
需要 Node.js >= 18,并与同版本 @devflow-tools/sdk、DevFlow CLI 配合使用。插件不是独立 HTTP 服务。
相关链接
License
MIT
