Agent skill · Audited from source
Phy Bundle Size Audit
skill · LeoYeAI/openclaw-master-skillsMIT licenceAudited 8 Oct 2026 · source 4f3b4a2a472e
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 4f3b4a2a472e and found no filesystem, network or shell access and no hard-coded secrets. What it does: JavaScript bundle size auditor and budget enforcer. Parses webpack stats JSON, Vite bundle report, Rollup output, or Next.js build output to identify largest chunks, flag chunks that exceed configurable size budgets,…
Cite
Cite this page
ModelsAtlas. “Phy Bundle Size Audit (LeoYeAI/openclaw-master-skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/leoyeai/phy-bundle-size-audit
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | WARN | 1 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (1)
MEDIUMObfuscation / stealthobf.base64_blob · skills/compdf-conversion-cli/scripts/license.xml:9
<key>k5Ey9KFlkqpj+SDkUw+5ED9lTA3En/qUi0zdrydUCH3kMWTE3Eh65NXnFCaxlY2omY2JHnlEoK7Li7oOEvM7eG5VPdcO/sFlMfoCRdnLYdepJ+uLzYwOWR8W4yQVve/clxVFTVRL4DFleKInGdpAxIbHZT2yi4ADAMENls1N1XSLojRuqXePXDeAT/4Mv4TTx0s
- Why
- No further detail recorded for this rule.
- Fix
- —
Audit 0.4.1 · source sha 4f3b4a2a472e · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- PublisherLeoYeAI GitHub userOwner of the repository this skill is read from
- Source folderLeoYeAI/openclaw-master-skills/skills/phy-bundle-size-auditThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4f3b4a2a472eA new audit runs when the source changes
- Repository statusNot archivedLast push 80 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: JavaScript bundle size auditor and budget enforcer. Parses webpack stats JSON, Vite bundle report, Rollup output, or Next.js build output to identify largest chunks, flag chunks that exceed configurable size budgets,…
---
name: phy-bundle-size-audit
description: JavaScript bundle size auditor and budget enforcer. Parses webpack stats JSON, Vite bundle report, Rollup output, or Next.js build output to identify largest chunks, flag chunks that exceed configurable size budgets, detect duplicate dependencies across chunks, find treeshaking failures (packages that should be side-effect-free but aren't), and generate CI fail-gate commands. Outputs a GitHub PR annotation-ready summary with per-chunk size, gzip estimate, and actionable optimization suggestions. Zero external API — pure local file analysis. Triggers on "bundle too large", "webpack stats", "chunk size", "bundle budget", "treeshaking", "bundle analyzer", "/bundle-size-audit".
license: Apache-2.0
metadata:
author: PHY041
version: "1.0.0"
tags:
- webpack
- vite
- bundler
- performance
- treeshaking
- developer-tools
- javascript
- nextjs
- rollup
---
# Bundle Size Auditor
You added one import. Your Lighthouse score dropped 12 points. Your LCP went from 1.8s to 3.1s.
This skill parses your bundler's output — webpack stats JSON, Vite build report, or Next.js `.next/` directory — identifies the largest chunks, finds which packages are bloating them, detects treeshaking failures, and gives you the exact code changes to fix it.
**Supports webpack, Vite, Rollup, Next.js. Zero external API.**
---
## Trigger Phrases
- "bundle too large", "my bundle is huge", "reduce bundle size"
- "webpack stats", "analyze webpack output", "chunk size"
- "bundle budget", "size limit", "bundle regression"
- "treeshaking not working", "dead code in bundle"
- "which package is largest", "find large dependencies"
- "Next.js bundle", "Vite build report"
- "/bundle-size-audit"
---
## How to Provide Input
```bash
# Option 1: Webpack stats JSON (most detailed)
webpack --profile --json > stats.json
/bundle-size-audit stats.json
# Option 2: Vite build (auto-detected)
vite build
/bundle-size-audit dist/
# Option 3: Next.js build (auto-detected)
next build
/bundle-size-audit .next/
# Option 4: Rollup stats
rollup -c --bundleConfigAsCjs
/bundle-size-audit rollup-stats.json
# Option 5: Set size budgets
/bundle-size-audit --max-chunk 250kb --max-initial 500kb
# Option 6: Focus on a specific chunk or package
/bundle-size-audit --chunk main --package lodash
# Option 7: Generate CI fail-gate only
/bundle-size-audit --ci-config
```
---
## Step 1: Detect Build Artifacts
```bash
python3 -c "
import os, json
from pathlib import Path
# Priority order for detection
checks = [
('webpack stats', ['stats.json', 'webpack-stats.json', 'build/stats.json']),
('Next.js', ['.next/build-manifest.json', '.next/server/pages-manifest.json']),
('Vite', ['dist/', 'dist/assets/']),
('Rollup', ['dist/', 'build/']),
('Create React App', ['build/static/js/', 'build/asset-manifest.json']),
]
found = []
for name, paths in checks:
for p in paths:
if os.path.exists(p):
found.append((name, p))
break
if found:
for name, path in found:
size = 0
if os.path.isfile(path):
size = os.path.getsize(path)
print(f'Detected {name}: {path} ({size:,} bytes)')
else:
# Directory — count JS files
js_files = list(Path(path).rglob('*.js'))
total = sum(f.stat().st_size for f in js_files)
print(f'Detected {name}: {path}/ ({len(js_files)} JS files, {total/1024:.0f} KB total)')
else:
print('No build artifacts found.')
print('Run your build first:')
print(' webpack --profile --json > stats.json')
print(' vite build')
print(' next build')
"
```
---
## Step 2: Parse Bundle Data
### For Webpack Stats JSON
```python
import json
from pathlib import Path
def parse_webpack_stats(stats_path):
"""Parse webpack stats.json into chunk/asset summary."""
with open(stats_path) as f:
stats = json.load(f)
assets = []
for asset in stats.get('assets', []):
name = asset['name']
size = asset['size']
# Only JS and CSS assets
if not any(name.endswith(ext) for ext in ['.js', '.css', '.mjs']):
continue
assets.append({
'name': name,
'size': size,
'size_kb': round(size / 1024, 1),
'gzip_estimate_kb': round(size / 1024 * 0.3, 1), # ~30% compression typical
'chunks': asset.get('chunkNames', []),
'initial': asset.get('isOverSizeLimit', False),
})
# Sort by size desc
assets.sort(key=lambda x: x['size'], reverse=True)
# Module analysis — find largest modules
modules = []
for module in stats.get('modules', []):
if module.get('size', 0) > 10 * 1024: # >10KB only
modules.append({
'name': module.get('name', 'unknown'),
'size': module.get('size', 0),
'size_kb': round(module.get('size', 0) / 1024, 1),
'reasons': [r.get('moduleName', '') for r in module.get('reasons', [])[:3]],
})
modules.sort(key=lambda x: x['size'], reverse=True)
return assets, modules[:50] # top 50 modules
def parse_webpack_chunks(stats_path):
"""Identify chunks and their composition."""
with open(stats_path) as f:
stats = json.load(f)
chunks = []
for chunk in stats.get('chunks', []):
chunks.append({
'id': chunk.get('id'),
'names': chunk.get('names', []),
'size': chunk.get('size', 0),
'size_kb': round(chunk.get('size', 0) / 1024, 1),
'initial': chunk.get('initial', False),
'entry': chunk.get('entry', False),
'module_count': len(chunk.get('modules', [])),
'files': chunk.get('files', []),
})
chunks.sort(key=lambda x: x['size'], reverse=True)
return chunks
```
### For Vite / CRA (dist/ directory)
```python
import os
from pathlib import Path
Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4f3b4a2
npm install date-fns npm install --save-dev webpack-bundle-analyzer
git clone https://github.com/LeoYeAI/openclaw-master-skills git -C openclaw-master-skills checkout 4f3b4a2a472e
Commands as the repository documents them: shown, never run by us. Our verdict covers commit 4f3b4a2a472e only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| OpenClaw | Mentioned in its text, not tested | Skills for OpenClaw · About OpenClaw |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
4f3b4a2a472e
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/leoyeai/phy-bundle-size-audit/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
LeoYeAI/openclaw-master-skills
Run tests on BrowserStack. Use when user mentions "browserstack", "cross-browser", "cloud testing", "browser matrix", "test on safari", "test on firefox", or "browser compatibility".
LeoYeAI/openclaw-master-skills
Analyze test coverage gaps. Use when user says "test coverage", "what's not tested", "coverage gaps", "missing tests", "coverage report", or "what needs testing".
LeoYeAI/openclaw-master-skills
Generate Playwright tests. Use when user says "write tests", "generate tests", "add tests for", "test this component", "e2e test", "create test for", "test this page", or "test this feature".
LeoYeAI/openclaw-master-skills
Set up Playwright in a project. Use when user says "set up playwright", "add e2e tests", "configure playwright", "testing setup", "init playwright", or "add test infrastructure".
LeoYeAI/openclaw-master-skills
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding…
LeoYeAI/openclaw-master-skills
PDF conversion toolkit featuring AI layout analysis and OCR. Converts PDFs to Word, Markdown, JSON, PPT, CSV, HTML, and XML for seamless LLM data processing.
Add this badge to your README
[](https://modelsatlas.com/skills/leoyeai/phy-bundle-size-audit/)
<a href="https://modelsatlas.com/skills/leoyeai/phy-bundle-size-audit/"><img src="https://modelsatlas.com/skills/leoyeai/phy-bundle-size-audit/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Phy Bundle Size Audit
What does the Phy Bundle Size Audit skill do?
Is Phy Bundle Size Audit safe to install?
What can Phy Bundle Size Audit access on my machine?
Which assistants does Phy Bundle Size Audit work with?
How current is this page?
Sources
- github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/phy-b — the audited source at commit 4f3b4a2a472e and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Phy Bundle Size Audit skill do?
- Is Phy Bundle Size Audit safe to install?
- What can Phy Bundle Size Audit access on my machine?