Agent Skills › pingdotgg/t3code › bundle-analysis

bundle-analysis

GitHub

用于测量前端包体积、对比不同版本或固定样本的构建产物,分析模块组成与依赖关系,并清理临时比较状态。

.repos/effect-smol/.agents/skills/bundle-analysis/SKILL.md pingdotgg/t3code

触发场景

需要测量当前构建包的体积大小 对比两个分支或提交的包体积差异 分析包内最大模块和意外引入的依赖 清理遗留的包分析临时文件

安装

npx skills add pingdotgg/t3code --skill bundle-analysis -g -y
更多选项

非标准路径

npx skills add https://github.com/pingdotgg/t3code/tree/main/.repos/effect-smol/.agents/skills/bundle-analysis -g -y

不安装直接使用

npx skills use pingdotgg/t3code@bundle-analysis

指定 Agent (Claude Code)

npx skills add pingdotgg/t3code --skill bundle-analysis -a claude-code -g -y

安装 repo 全部 skill

npx skills add pingdotgg/t3code --all -g -y

预览 repo 内 skill

npx skills add pingdotgg/t3code --list

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>. Use HEAD~1 for the latest commit. Read tmp/bundle-stats.txt and 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 dist output.
  • Cleanup: Stable comparisons retain tmp/bundle-base for reuse unless cleanup is requested. Remove selected-comparison state retained with --keep-base after 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.

版本历史

  • 5423ba0 当前 2026-09-22 10:56

同 Skill 集合

.agents/skills/contribution-triage/SKILL.md
.agents/skills/ios-debugger-agent/SKILL.md
.agents/skills/ios-simulator-browser/SKILL.md
.agents/skills/test-t3-app/SKILL.md
.agents/skills/test-t3-mobile/SKILL.md
.repos/effect-smol/.agents/skills/ai-docs/SKILL.md
.repos/effect-smol/.agents/skills/changesets/SKILL.md
.repos/effect-smol/.agents/skills/ci-maintenance/SKILL.md
.repos/effect-smol/.agents/skills/dependency-maintenance/SKILL.md
.repos/effect-smol/.agents/skills/effect-development/SKILL.md
.repos/effect-smol/.agents/skills/grill-me/SKILL.md
.repos/effect-smol/.agents/skills/jsdocs/SKILL.md
.repos/effect-smol/.agents/skills/migration-guidance/SKILL.md
.repos/effect-smol/.agents/skills/package-development/SKILL.md
.repos/effect-smol/.agents/skills/performance-analysis/SKILL.md
.repos/effect-smol/.agents/skills/scratchpad/SKILL.md
.repos/effect-smol/.agents/skills/test-development/SKILL.md
.repos/effect-smol/.agents/skills/vendored-assets/SKILL.md

元信息

文件数
0
版本
ac8dce0
Hash
94ab06b3
收录时间
2026-09-22 10:56

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 16:36
浙ICP备14020137号-1