runtime-debug
预览截图
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "runtime-debug":https://skillpi.com/zh/skills/deepskill-f36ebe50550372800d05c521a822abe8036d8b5db9eb40b65273c59c7281f2a4。安装前核对上游来源和版本:https://github.com/vercel/next.js。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于运行时包和模块解析回归的调试与验证工作流。适用于诊断意外模块包含、包体积回归或与 NEXT_SKIP_ISOLATE、nft.json 追踪、运行时包选择(module.compiled.js)相关的 CI 失败。涵盖 CI 环境镜像、通过 __NEXT_SHOW_IGNORE_LISTED 获取完整堆栈追踪、路由追踪检查以及 webpack 统计信息差异分析。元数据:内部使用:true
介绍来源: third_party · vercel · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 复制运行时捆绑,模块解析,或用户-捆绑的包含回归时使用此技能.
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: runtime-debug
description: >
Debug and verification workflow for runtime-bundle and module-resolution
regressions. Use when diagnosing unexpected module inclusions, bundle
size regressions, or CI failures related to NEXT_SKIP_ISOLATE, nft.json
traces, or runtime bundle selection (module.compiled.js). Covers CI env
mirroring, full stack traces via __NEXT_SHOW_IGNORE_LISTED, route trace
inspection, and webpack stats diffing.
metadata:
internal: trueRuntime Debug
Use this skill when reproducing runtime-bundle, module-resolution, or user-bundle inclusion regressions.
Local Repro Discipline
- Mirror CI env vars when reproducing CI failures.
- Key variables:
IS_WEBPACK_TEST=1forces webpack (turbopack is default),NEXT_SKIP_ISOLATE=1skips packing next.js. - For module-resolution validation, always rerun without
NEXT_SKIP_ISOLATE=1.
Stack Trace Visibility
Set __NEXT_SHOW_IGNORE_LISTED=true to disable the ignore-list filtering in dev server error output. By default, Next.js collapses internal frames to at ignore-listed frames, which hides useful context when debugging framework internals. Defined in packages/next/src/server/patch-error-inspect.ts.
User-Bundle Regression Guardrail
When user next build starts bundling internal Node-only helpers unexpectedly:
- Inspect route trace artifacts (
.next/server/.../page.js.nft.json). - Inspect traced server chunks for forbidden internals (e.g.
next/dist/server/stream-utils/node-stream-helpers.js,node:stream/promises). - Add a
test-start-webpackassertion that reads the route trace and traced server chunks, and fails on forbidden internals. This validates user-project bundling (not publish-time runtime bundling).
Bundle Tracing / Inclusion Proof
To prove what user bundling includes, emit webpack stats from the app's next.config.js:
// next.config.js
module.exports = {
webpack(config) {
config.profile = true
return config
},
}
Then use stats.toJson({ modules: true, chunks: true, reasons: true }) and diff webpack-stats-server.json between modes. This gives concrete inclusion reasons (e.g. which module required node:stream/promises) and is more reliable than analyzer HTML alone.
Related Skills
$flags- flag wiring (config/schema/define-env/runtime env)$dce-edge- DCE-safe require patterns and edge constraints$react-vendoring- entry-base boundaries and vendored React
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 针对 Next.js 运行时包和模块解析回归提供系统化的调试与验证工作流
- 适用于诊断模块包含、包体积回归、CI 失败等明确技术痛点,能有效提升内部开发效率
亮点
- 触发描述精准完整,覆盖多种变体(NEXT_SKIP_ISOLATE, nft.json, runtime bundle selection),边界清晰
待提升项
-
缺少 When to Use 显式章节 原报告严重程度:轻微
文档实质包含了使用场景说明,但未使用 'When to Use' 显式章节标题
改进建议:建议添加 'When to Use' 显式章节标题以提升结构规范性
亮点
- 结构清晰,分章节详述本地复现、堆栈追踪、用户包回归防护、包追踪等关键步骤
- 包含端到端 webpack 配置示例,frontmatter 完整
待提升项
-
部分操作缺乏风险提示和异常处理说明 原报告严重程度:轻微
修改 next.config.js 等操作未说明潜在风险或回滚方式,未覆盖 stats 文件生成失败等边缘异常
改进建议:建议补充关键操作的风险提示和常见异常处理建议
亮点
- 提供了具体的环境变量设置、文件路径、webpack 配置代码和 stats 分析方法
- 工具来源(Next.js 内部机制)明确,参数正确,覆盖了主要异常场景
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。