Clavue Ability · 能力目錄
技能 · 研發工程

Next.js/Vite 打包體積審計

分析 Next.js 或 Vite 打包產物並給出具體的瘦身建議。

執行摘要

簡短回答:分析 Next.js 或 Vite 打包產物並給出具體的瘦身建議。。輸入是構建產物、打包分析報告、路由清單、性能預算,輸出是體積拆解、最大貢獻模塊、按優先級排序的優化方案。

本頁能力來自 Clavue Bot 內置目錄;不宣稱與任何第三方產品 1:1 對齊。

商業回報與使用場景

商業價值:

Next.js/Vite 打包體積審計 減少重複手工操作,更快拿到可復核的結果。

  • 相關需求主題: 研發編程
  • 相關需求主題: 合同稅務

輸入輸出契約

輸入輸出工具 / 連接器
構建產物、打包分析報告、路由清單、性能預算體積拆解、最大貢獻模塊、按優先級排序的優化方案程式碼 · 檔案 · GitHub · Vercel

需先連接工具 · 涉及寄信、付款等動作時會先請你確認。

工作流程與操作說明

1

Read the bundle analyzer output and identify the largest chunks.

2

Trace each heavy chunk to its importing modules.

3

Check for duplicate dependencies and unused polyfills.

4

Recommend code-splitting, dynamic imports or lighter alternatives.

5

Estimate the size saved and how to verify with a rebuild.

涉及寄信、付款等動作時會先請你確認。

SKILL.md

# Next.js/Vite 打包體積審計

> 分析 Next.js 或 Vite 打包產物並給出具體的瘦身建議。

## 輸入輸出契約

- **輸入:** 構建產物、打包分析報告、路由清單、性能預算
- **輸出:** 體積拆解、最大貢獻模塊、按優先級排序的優化方案

## 工作流程與操作說明

2. Read the bundle analyzer output and identify the largest chunks.
4. Trace each heavy chunk to its importing modules.
6. Check for duplicate dependencies and unused polyfills.
8. Recommend code-splitting, dynamic imports or lighter alternatives.
10. Estimate the size saved and how to verify with a rebuild.

## 起手提示詞

```text
審計這份 Next.js 構建產物,告訴我如何削減最大的 chunk。
```

起手提示詞

審計這份 Next.js 構建產物,告訴我如何削減最大的 chunk。

常見問題

這是一項真實存在於 Clavue Bot 的能力嗎?

是的。本頁內容由產品內置目錄生成,能力名稱、輸入輸出與操作步驟都對應真實可用的場景、技能、MCP 工具或數字員工。

需要額外配置工具或連接器嗎?

標注「開箱即用」的能力無需額外工具;標注「需連接工具」的能力會列出所需連接器,首次運行時按提示授權即可。

它會未經確認就發郵件或付款嗎?

不會。寄信、付款、提交表單等對外動作會停下來先請你確認,你同意後才會繼續。

查看 Markdown 原文