bundle
Skill0 starsChanged 3 months agoMITView on GitHub
Bundle and package projects for distribution. Supports frontend apps (Vite/Webpack), libraries (npm/PyPI), executables (Go/Rust binaries), and web extensions (Chrome/Firefox). Use when preparing releases, packaging for distribution, or creating deployable artifacts.
In this repository66 other files it gives its agents.
- adb-android-app-opsSkill
- agents-sdkSkill
- api-documentationSkill
- atlasSkill
- backend-api-auth-guardrailsSkill
- browser-useSkill
- changelogSkill
- chatgpt-appsSkill
- chrome-devtools-testSkill
- chronicleSkill
- cloudflare-deploySkill
- cloudflare-email-serviceSkill
- cloudflare-one-migrationsSkill
- cloudflare-oneSkill
- cloudflareSkill
- computer-useSkill
- create-planSkill
- database-analysisSkill
- database-data-guardrailsSkill
- debug-memory-leakSkill
- deep-initSkill
- deploySkill
- develop-web-gameSkill
- dev-workflowSkill
- docSkill
- durable-objectsSkill
- explainSkill
- figmaSkill
- firmware-feature-writerSkill
- fix-bugSkill
- fix-lintSkill
- frontend-mobile-uiux-designerSkill
- frontend-ui-guardrailsSkill
- gemini-cliSkill
- grok-x-searchSkill
- hermes-chromeSkill
- image-file-readerSkill
- imagegenSkill
- infra-ops-mobile-guardrailsSkill
- layout-reviewSkill
- localizeSkill
- multimodal-lookerSkill
- openai-docsSkill
- optimizeSkill
- parallel-devSkill
- plan-modeSkill
- playwrightSkill
- project-planningSkill
- qa-testerSkill
- refactorSkill
- review-changesSkill
- review-fix-shipSkill
- rust-programmerSkill
- sandbox-sdkSkill
- screenshotSkill
- security-auditSkill
- security-scanSkill
- security-threat-modelSkill
- source-command-collab-startSkill
- turnstile-spinSkill
- The first 60 shown.
The file
Files
Bundle Project
Package projects for distribution across different formats.
Bundle Type Detection
| Indicator | Bundle Type | Output |
vite.config.* / webpack.config.* | Frontend App | dist/ static files |
package.json with main/exports | npm Library | dist/ + package.json |
pyproject.toml with [build-system] | PyPI Library | dist/*.whl |
go.mod with main package | Go Binary | Single executable |
Cargo.toml with [[bin]] | Rust Binary | Single executable |
manifest.json (v3) | Web Extension | .zip for store upload |
Frontend App Bundle
Vite
# Production build
pnpm build # or npm run build
# Preview locally
pnpm previewOutput: dist/ with optimized static files
Webpack
# Production build
NODE_ENV=production npx webpack
# Analyze bundle size
npx webpack-bundle-analyzer dist/stats.jsonOptimization Checklist
- Tree shaking enabled
- Code splitting configured
- Assets minified (JS/CSS/images)
- Source maps for production (hidden)
- Gzip/Brotli compression ready
Library Bundle
npm Package
# Build library
pnpm build
# Check package contents before publish
npm pack --dry-run
# Verify exports
node -e "console.log(require('./dist'))"package.json requirements:
{
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"files": ["dist"]
}PyPI Package
# Build with poetry
poetry build
# Build with uv
uv build
# Check package
twine check dist/*Output: dist/package-version.whl and dist/package-version.tar.gz
Executable Bundle
Go Binary
# Build for current platform
go build -ldflags="-s -w" -o bin/app ./cmd/app
# Cross-compile all platforms
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o bin/app-linux-amd64 ./cmd/app
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o bin/app-darwin-arm64 ./cmd/app
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o bin/app-windows-amd64.exe ./cmd/appOptimization flags:
-s- Strip symbol table-w- Strip DWARF debug info-trimpath- Remove file paths from binary
Rust Binary
# Release build
cargo build --release
# Optimized for size
RUSTFLAGS="-C opt-level=s" cargo build --release
# Strip symbols (Linux/macOS)
strip target/release/appCargo.toml optimizations:
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = trueWeb Extension Bundle
Chrome Extension (Manifest V3)
# Build extension
pnpm build
# Create zip for Chrome Web Store
cd dist && zip -r ../extension-chrome.zip . -x "*.map"Firefox Extension
# Build with web-ext
npx web-ext build --source-dir=dist --artifacts-dir=artifacts
# Or manual zip
cd dist && zip -r ../extension-firefox.zip . -x "*.map"Extension Checklist
manifest.jsonversion updated- Icons included (16, 48, 128px)
- Permissions minimized
- Content Security Policy set
- No dynamic code execution (prohibited by CSP)
- Source maps excluded from zip
Bundle Verification
After bundling, verify:
# Check bundle size
du -sh dist/
# List contents
ls -la dist/
# For zip files
unzip -l extension.zipCommon Issues
| Issue | Cause | Solution |
| Bundle too large | No tree shaking | Check imports, use named exports |
| Missing assets | Wrong public path | Fix base in vite.config |
| Runtime errors | Missing polyfills | Add core-js or specific polyfills |
| Extension rejected | CSP violation | Remove dynamic code execution |
Output
Report bundle results:
- Bundle type and output location
- Total size (before/after compression)
- Files included
- Any warnings or optimization suggestions
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

