keybase/client/prod-bundles
- community
Checking that the SKILL.md file is still in the repository.
Use when the user asks to build production bundles, check bundle sizes, audit tree-shaking, or verify mobile/desktop code separation. Covers both the desktop Vite prod build and the iOS/Android Metro bundle.
Install
npx vskill@latest install keybase/client/prod-bundlesSKILL.md
Build production bundles for both platforms and analyze them for correct tree-shaking.
Build Commands
Desktop (Vite):
Output lands in shared/desktop/dist/. Prod bundles have no .dev or .profile suffix — filter with:
iOS (Metro):
Output: shared/ios/dist/main.jsbundle
Android (Metro):
Output: shared/android/dist/main.jsbundle
Tree-Shaking Audit
Desktop — check mobile-only modules are absent:
iOS bundle — check bare `isMobile`/`isElectron` are inlined as literals (Babel plugin):
Key Facts
- Vite (desktop): the
defineblock inshared/vite.config.mts(makeDefines) replaces bare globals (isMobile,isElectron, etc.) with literals, and the prod minifier drops the dead branches. - Metro (iOS/Android): The
makePlatformPluginBabel plugin inbabel.config.jsinlines the same globals at transform time, enabling Metro'sconstant-folding-pluginto DCE dead branches. - Native-only module aliasing (desktop): packages in
shared/native-only-modules.jsare aliased toshared/null-module.jsby the resolve config inshared/vite.config.mts, and pre-bundled throughoptimizeDeps. After changing that file, clear Vite's dep cache:rm -rf shared/node_modules/.vite.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskill/prod-bundles/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/keybase/client/prod-bundles)