fritzprix/libr-agent/bundle-size-enforcer
Claude Code and agent skill by fritzprix/libr-agent
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Monitor and enforce the frontend bundle size budget. Use when checking bundle size, preventing regressions, or validating build output against budget constraints.
Install
npx vskill@latest install fritzprix/libr-agent/bundle-size-enforcerSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as fritzprix/libr-agent/bundle-size-enforcer.
Bundle Size Enforcer
Monitor and enforce LibrAgent's frontend bundle size budget.
Budget Configuration
Bundle size budgets are defined in bundle-size-budget.json and checked by scripts/check-bundle-size.ts.
Verification
CI runs this command and fails on budget overruns.
Audit Checklist
- [ ] Production build completes without errors
- [ ]
perf:bundlepasses all budget checks - [ ] No new large dependencies added without budget review
- [ ] Dynamic imports used for code splitting where appropriate
- [ ] Tree shaking is effective (no unused exports from dependencies)
Common Bundle Bloat Patterns
- Large dependencies: Check for accidental inclusion of test/build-only packages
- Unused code: Run
pnpm dead-codeto find unused exports - Duplicate code: Check for duplicated utility functions
- Large assets: Images, fonts, and other assets should be optimized
- Unused styles: Tailwind PurgeCSS may remove custom classes - use safelist if needed
Pre-commit Check
Run before committing frontend changes:
If budget is exceeded:
- Identify the new/changed dependency or code
- Consider dynamic imports or lazy loading
- Update
bundle-size-budget.jsononly if the increase is justified
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.kilo/skill/bundle-size-enforcer/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fritzprix/libr-agent/bundle-size-enforcer)