analyze-bundle

Converts Next.js bundle analyzer data into NDJSON and performs exploratory analysis.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "analyze-bundle" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7d1efc88a561141c192bc4b4dd264179e05e2c5593948d38b0284b596f70f9f3. Verify the upstream source and version against https://skills.sh/vercel-labs/dev3000/analyze-bundle before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skills.sh

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Converts Next.js bundle analyzer data into NDJSON and performs exploratory analysis.

0 Downloads

Introduction source: third_party · vercel-labs · 1.0.0 Reference

SkillPi interpretation

Tasks
Convert Next.js bundle analyzer data to NDJSON and explore it
Inputs and outputs
| File | What's in it | |---|---| | `modules.ndjson` | Global module registry (`id`, `ident`, `path`) | | `module_edges.ndjson` | Module dependency graph (`from`, `to`, `kind`: sync/async) | | `sources.ndjson` | Per-route source tree with sizes and environment flags | | `chunk_parts.ndjson` | Granular size data: one line per (source, output_file) pair | | `output_files.ndjson` | Per-route output files with aggregated sizes | | `routes.ndjson` | Route-level summaries |
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: analyze-bundle
description: Convert Next.js bundle analyzer data to NDJSON and explore it
allowed-tools: Bash(node *) Bash(head:*) Bash(tail:*) Bash(grep:*) Bash(jq:*) Read

analyze-to-ndjson

Converts Next.js bundle analyzer binary .data files into grep/jq-friendly NDJSON.

Analyze artifacts

This workflow pre-generates analyzer artifacts in:

  • .next/diagnostics/analyze/ndjson/routes.ndjson
  • .next/diagnostics/analyze/ndjson/sources.ndjson
  • .next/diagnostics/analyze/ndjson/output_files.ndjson
  • .next/diagnostics/analyze/ndjson/module_edges.ndjson
  • .next/diagnostics/analyze/ndjson/modules.ndjson

Focus on reading these files and using their evidence to prioritize changes.

Output files

File What's in it
modules.ndjson Global module registry (id, ident, path)
module_edges.ndjson Module dependency graph (from, to, kind: sync/async)
sources.ndjson Per-route source tree with sizes and environment flags
chunk_parts.ndjson Granular size data: one line per (source, output_file) pair
output_files.ndjson Per-route output files with aggregated sizes
routes.ndjson Route-level summaries

Browsing the output

Route overview

jq -s 'sort_by(-.total_compressed_size)' .next/diagnostics/analyze/ndjson/routes.ndjson

Find large sources

jq -s '
  group_by(.full_path)
  | map(max_by(.compressed_size))
  | sort_by(-.compressed_size)
  | .[0:10]
  | .[] | {full_path, compressed_size, size, route}
' .next/diagnostics/analyze/ndjson/sources.ndjson

Client-side JS

grep '"client":true' .next/diagnostics/analyze/ndjson/sources.ndjson \
  | grep '"js":true' \
  | jq -s 'sort_by(-.compressed_size) | .[0:10] | .[] | {full_path, compressed_size}'

Module dependencies

grep '"from":42,' .next/diagnostics/analyze/ndjson/module_edges.ndjson | jq .to
grep '"to":42,' .next/diagnostics/analyze/ndjson/module_edges.ndjson | jq .from
grep 'react-dom' .next/diagnostics/analyze/ndjson/modules.ndjson | jq '{id, path}'

Output files for a route

grep '"route":"/"' .next/diagnostics/analyze/ndjson/output_files.ndjson \
  | jq -s 'sort_by(-.total_compressed_size) | .[0:10] | .[] | {filename, total_compressed_size, num_parts}'

Directory tree for a route

grep '"route":"/"' .next/diagnostics/analyze/ndjson/sources.ndjson \
  | jq 'select(.parent_id == null)'

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 面向 Next.js 开发者提供打包分析数据转换与探索能力,解决前端性能优化中的实际需求
  • 功能定位清晰,具有较高的实用价值和明确的受众群体
Trigger Precision95/100

Highlights

  • description 准确描述了核心功能,触发词完整且边界清晰
Structure and Standards90/100

Highlights

  • 文档结构清晰,包含详细的文件说明和使用示例
  • frontmatter 完整,内容组织良好,便于用户理解和使用
Execution Reliability85/100

Highlights

  • 提供了多个具体的 bash/jq 命令示例,工具来源明确
  • 参数使用合理,覆盖了主要的使用场景和异常情况
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.