Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

next-devtools-guideNext.js devtools 指南

Agent Skill

next-devtools-guide 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

465

周安装

19

GitHub Stars

537

下载量

150
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:next-devtools-guide(Next.js devtools 指南)
来源仓库:https://github.com/fradser/dotclaude
仓库路径:skills/next-devtools-guide
安装命令:
npx skills add https://github.com/fradser/dotclaude --skill next-devtools-guide
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/fradser/dotclaude --skill next-devtools-guide

简介

该技能用于检索 Next.js 开发者工具链的使用指南与调试技巧。

  • 适用于前端调试、性能剖析与浏览器扩展集成场景。
  • 提供 DevTools 面板操作、HMR 原理与构建产物分析方法的汇总。
  • 基于社区维护的文档聚合,覆盖主流版本与常见开发环境。
  • 部分高级功能可能依赖特定 IDE 插件或本地调试工具配合使用。

SKILL.md

Next.js DevTools MCP

Requirements: Node.js v20.19+, npm or pnpm, Next.js 16+ for runtime diagnostics.

Total capabilities: 7 Tools + 2 Prompts + 17 Resources = 26 available features.

Tool naming: All tools follow mcp__plugin_next-devtools_next-devtools__<tool-name>. This file uses abbreviated names for brevity.

See references/tools-reference.md for the complete tools table and nextjs_call tool names.

Tools (7)

ToolPurpose
initInitialize MCP context with documentation-first behavior
nextjs_indexDiscover running Next.js dev servers and available MCP tools
nextjs_callCall a specific MCP tool on a running Next.js dev server
nextjs_docsFetch Next.js official documentation by path
browser_evalPlaywright browser automation for testing
enable_cache_componentsMigrate to Next.js 16 Cache Components mode
upgrade_nextjs_16Guide through upgrade to Next.js 16

Prompts (2)

PromptPurpose
upgrade-nextjs-16Complete upgrade guide including codemod execution and manual fixes
enable-cache-componentsComplete Cache Components setup with automated error fixing

Resources (17)

Cache Components (13):

  • cache-components://overview - Critical errors AI agents make, quick reference
  • cache-components://core-mechanics - Fundamental paradigm shift and cacheComponents behavior
  • cache-components://public-caches - Public cache mechanics using 'use cache'
  • cache-components://private-caches - Private cache mechanics using 'use cache: private'
  • cache-components://runtime-prefetching - Prefetch configuration and stale time rules
  • cache-components://request-apis - Async params, searchParams, cookies(), headers() patterns
  • cache-components://cache-invalidation - updateTag(), revalidateTag() patterns and strategies
  • cache-components://advanced-patterns - cacheLife(), cacheTag(), draft mode
  • cache-components://build-behavior - Prerendering, static shells, build-time behavior
  • cache-components://error-patterns - Common errors and solutions
  • cache-components://test-patterns - Real test-driven patterns from 125+ fixtures
  • cache-components://reference - Mental models, API reference, checklists
  • cache-components://route-handlers - Using 'use cache' in Route Handlers (API Routes)

Other (4):

  • nextjs-fundamentals://use-client - Learn when and why to use 'use client' in Server Components
  • nextjs16://migration/beta-to-stable - Complete guide for migrating from Next.js 16 beta to stable
  • nextjs16://migration/examples - Real-world examples of migrating to Next.js 16
  • nextjs-docs://llms-index - Complete Next.js documentation index

Session Initialization

Call init at the start of every session to establish documentation-first behavior and tool usage guidance.

Quick Start

Next.js 16+ (runtime diagnostics):

  1. Start the dev server: npm run dev (or pnpm dev)
  2. Call init to initialize MCP context
  3. Call nextjs_index to discover the running server and available tools
  4. Call nextjs_call with the desired toolName to execute tools on the dev server

All Next.js versions (automation and docs):

After init, use upgrade_nextjs_16, enable_cache_components, nextjs_docs, or browser_eval as needed.

Common Workflows

Before implementing changes: Call nextjs_index to understand current application state, then nextjs_call with the appropriate tool.

Error detection: Call nextjs_index, then nextjs_call with toolName="get_errors".

Route inspection: Call nextjs_index, then nextjs_call with toolName="get_routes".

Server Action tracing: Call nextjs_call with toolName="get_server_action_by_id" and appropriate args.

Documentation search: Read the nextjs-docs://llms-index MCP resource to get the correct path, then call nextjs_docs with that path.

Important: The args parameter for nextjs_call MUST be an object. Omit args entirely if the tool takes no arguments.

Troubleshooting

MCP server not connecting:

  • Verify Next.js v16+
  • Confirm next-devtools-mcp is configured in .mcp.json
  • Start or restart the dev server (npm run dev)
  • If nextjs_index auto-discovery fails, ask the user which port their dev server is running on and pass it as the port parameter

"No server info found": Dev server must be running. Use the upgrade_nextjs_16 tool if on Next.js 15 or earlier.

Module not found: Clear the npx cache and restart the MCP client.

Best Practices

  • Call init at session start before using other tools
  • Start the dev server before using nextjs_index or nextjs_call
  • Prefer nextjs_index/nextjs_call over browser_eval for error detection and diagnostics
  • Use browser_eval only for tasks requiring actual page rendering or JavaScript execution
  • Read nextjs-docs://llms-index resource first before calling nextjs_docs

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.53%
按下载量换算56

Claude

32.29%
按下载量换算48

Cursor

17.86%
按下载量换算27

Gemini CLI

9.59%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills