bundle-size-optimization by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill bundle-size-optimization更小的打包文件下载更快、解析更快、执行更快,能显著提升感知性能,尤其是在较慢的网络环境下。
最小工作示例:
// Analyze bundle composition
class BundleAnalysis {
analyzeBundle() {
return {
tools: [
"webpack-bundle-analyzer",
"Source Map Explorer",
"Bundle Buddy",
"Bundlephobia",
],
metrics: {
total_size: "850KB gzipped",
main_js: "450KB",
main_css: "120KB",
vendor: "250KB",
largest_lib: "moment.js (67KB)",
},
breakdown: {
react: "85KB (10%)",
lodash: "45KB (5%)",
moment: "67KB (8%)",
other: "653KB (77%)",
},
};
// ... (see reference guides for full implementation)
references/ 目录下的详细实现:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
每周安装量
160
代码仓库
GitHub 星标数
126
首次出现
2026年1月21日
安全审计
安装于
opencode133
gemini-cli131
codex129
cursor122
claude-code115
github-copilot112
Smaller bundles download faster, parse faster, and execute faster, dramatically improving perceived performance especially on slower networks.
Minimal working example:
// Analyze bundle composition
class BundleAnalysis {
analyzeBundle() {
return {
tools: [
"webpack-bundle-analyzer",
"Source Map Explorer",
"Bundle Buddy",
"Bundlephobia",
],
metrics: {
total_size: "850KB gzipped",
main_js: "450KB",
main_css: "120KB",
vendor: "250KB",
largest_lib: "moment.js (67KB)",
},
breakdown: {
react: "85KB (10%)",
lodash: "45KB (5%)",
moment: "67KB (8%)",
other: "653KB (77%)",
},
};
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Bundle Analysis | Bundle Analysis |
| Optimization Techniques | Optimization Techniques |
| Implementation Strategy | Implementation Strategy |
| Best Practices | Best Practices |
Weekly Installs
160
Repository
GitHub Stars
126
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode133
gemini-cli131
codex129
cursor122
claude-code115
github-copilot112
Genkit JS 开发指南:AI 应用构建、错误排查与最佳实践
7,700 周安装
内容营销实战指南:23位产品领导者框架,打造高效SEO与品牌内容策略
1,200 周安装
品牌叙事指南:30位专家教你打造难忘品牌故事 | 品牌营销与内容创作
1,200 周安装
Zod 最佳实践指南:TypeScript 模式验证 43 条规则与性能优化
1,200 周安装
Vitest 测试框架:Vite 原生单元测试工具,兼容 Jest API,支持 Vue/React/Svelte
1,200 周安装
Fastify最佳实践指南:插件开发、性能优化与生产部署
1,200 周安装
LiveKit Agents 开发指南:基于 LiveKit Cloud 构建语音 AI 智能体
1,200 周安装