Agent Skills
› pingdotgg/t3code
› bundle-analysis
bundle-analysis
GitHub提供前端构建包体积分析能力,支持当前大小测量、稳定或指定基准对比、模块组成检查及清理残留状态,帮助优化依赖和减少打包体积。
Trigger Scenarios
测量当前包体积
对比不同版本的包大小差异
分析包内模块组成和依赖关系
清理包分析产生的临时状态文件
Install
npx skills add pingdotgg/t3code --skill bundle-analysis -g -y
SKILL.md
Frontmatter
{
"name": "bundle-analysis",
"description": "Bundle analysis. Use when measuring current bundle size, comparing stable or selected fixtures, inspecting composition, or cleaning retained comparison state."
}
Read packages/tools/bundle/README.md, then select one workflow:
- Stable comparison:
pnpm bundle-compare <base-ref>. UseHEAD~1for the latest commit. Readtmp/bundle-stats.txtand report non-zero differences. - Selected comparison:
pnpm bundle-compare-selected --base <ref> scratchpad/<fixture>.ts. Use only user-named or investigation-local fixtures; keep temporary fixtures out of the stable corpus. - Composition:
pnpm bundle-analyze scratchpad/<fixture>.ts. Read raw data first and report the largest modules, dependency groups, and surprising inclusions. Its readable-name output is not an exact size measurement. - Current size: Build immediately before the direct bundle report so Effect
packages resolve from current
distoutput. - Cleanup: Stable comparisons retain
tmp/bundle-basefor reuse unless cleanup is requested. Remove selected-comparison state retained with--keep-baseafter its final use. Verify cleanup without disturbing unrelated worktrees.
The task is complete when the selected artifact is inspected, requested size or composition findings are reported, generated paths are named, and comparison state follows the selected workflow's retention policy.
Version History
- 5423ba0 Current 2026-09-22 10:56


