Agent skill · Audited from source
Bundle Optimization
skill · TencentBlueKing/bk-bcsNOASSERTION licenceAudited 12 Oct 2026 · source 87a6fdb6f4b4
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 87a6fdb6f4b4 and found no filesystem, network or shell access and no hard-coded secrets. What it does: 使用 Rollup Visualizer 分析产物,并通过拆包 (Code Splitting) 和 Tree Shaking 减少首屏体积。
Cite
Cite this page
ModelsAtlas. “Bundle Optimization (TencentBlueKing/bk-bcs)”. Retrieved 12 Oct 2026. https://modelsatlas.com/skills/tencentblueking/bundle-optimization
Trust audit
Audit 0.4.1 · source read 12 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | WARN | 1 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (1)
MEDIUMInventory / provenanceinv.symlink · .codebuddy
.codebuddy
- Why
- link not followed
- Fix
- —
Audit 0.4.1 · source sha 87a6fdb6f4b4 · 12 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- PublisherTencentBlueKing GitHub organizationOwner of the repository this skill is read from
- Source folderTencentBlueKing/bk-bcs/bcs-services/bcs-project-manager/.cursor/skills/bundle-optimizationThe exact folder we audited
- LicenceNOASSERTIONAs the repository states it
- Commit pinned for this verdict87a6fdb6f4b4A new audit runs when the source changes
- Repository statusNot archivedLast push 2 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: 使用 Rollup Visualizer 分析产物,并通过拆包 (Code Splitting) 和 Tree Shaking 减少首屏体积。
---
id: eng-bundle-opt
name: Vite 构建产物体积优化
category: engineering
description: 使用 Rollup Visualizer 分析产物,并通过拆包 (Code Splitting) 和 Tree Shaking 减少首屏体积。
tags: [vite, rollup, performance, optimization]
updated_at: 2026-01-09
---
# Vite 构建产物体积优化
当首屏加载慢 (FCP > 1.5s) 时,通常需要检查 JS Bundle 的体积。
## 1. 产物分析 (Visualizer)
首先"看见"哪些包最大。
```bash
npm install rollup-plugin-visualizer -D
```
## 2. 常用优化策略
### 路由懒加载 (Route Lazy Loading)
**这是收益最大的优化点**。
❌ `import UserList from './views/UserList.vue'`
✅ `component: () => import('./views/UserList.vue')`
### 依赖分包 (Manual Chunks)
将大型库(ECharts, bkui-vue)单独打包,避免 vendor hash 频繁变化。
### 按需引入 (Tree Shaking)
❌ `import _ from 'lodash'`
✅ `import debounce from 'lodash-es/debounce'`
### Gzip 压缩
```bash
npm install vite-plugin-compression -D
```
## 3. 完整配置模版
> 📦 获取完整 vite.config.ts 配置:`skill://bundle-optimization/assets/vite.config.optimization.ts`
---
## 📦 可用资源
- `skill://bundle-optimization/assets/vite.config.optimization.ts`
> 根据 SKILL.md 中的 IF-THEN 规则判断是否需要加载Excerpt, first 1,008 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 87a6fdb
npm install rollup-plugin-visualizer -D npm install vite-plugin-compression -D
git clone https://github.com/TencentBlueKing/bk-bcs git -C bk-bcs checkout 87a6fdb6f4b4
Commands as the repository documents them: shown, never run by us. Our verdict covers commit 87a6fdb6f4b4 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
87a6fdb6f4b4
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/tencentblueking/bundle-optimization/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All devops & cloud skills →TencentBlueKing/bk-bcs
蓝鲸双协议兼容的 Axios 封装,自动处理旧版和新版 HTTP 协议
TencentBlueKing/bk-bcs
帮助配置和启动本地开发服务器。当用户提到启动开发服务器、dev server、pnpm dev 时使用。
TencentBlueKing/bk-bcs
对前端代码进行安全审计,检测 XSS、CSRF 等漏洞。当用户请求代码审查或询问代码安全性时使用。
TencentBlueKing/bk-bcs
根据 TAPD 单据分析开发需求并生成方案。当用户需要开发 TAPD 需求/缺陷/任务时使用。
TencentBlueKing/bk-bcs
获取 TAPD 待办单据并生成归纳总结。当用户提到获取 TAPD 单据、查看待办时使用。
TencentBlueKing/bk-bcs
通过 GitHub MCP 获取用户 PR 并生成周报。当用户提到生成周报、写周报时使用。
Add this badge to your README
[](https://modelsatlas.com/skills/tencentblueking/bundle-optimization/)
<a href="https://modelsatlas.com/skills/tencentblueking/bundle-optimization/"><img src="https://modelsatlas.com/skills/tencentblueking/bundle-optimization/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Bundle Optimization
What does the Bundle Optimization skill do?
Is Bundle Optimization safe to install?
What can Bundle Optimization access on my machine?
How current is this page?
Sources
- github.com/TencentBlueKing/bk-bcs/tree/master/bcs-services/bcs-p — the audited source at commit 87a6fdb6f4b4 and every finding aboveObserved · 12 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Bundle Optimization skill do?
- Is Bundle Optimization safe to install?
- What can Bundle Optimization access on my machine?