WaveXis Performance Audit
Skill2 starsChanged 4 months agoMITView on GitHub
Performance auditing with wavexis. Core Web Vitals measurement (LCP, CLS, INP), CPU traces, JS/CSS coverage, heap snapshots, Lighthouse audits, CI budgets.
- Installs packages
In this repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- allure-reportsSkill
- android-nativeSkill
- appian-lowcodeSkill
- appium-mobileSkill
- behave-bddSkill
- BiDiWave Cross-BrowserSkill
- BiDiWave Network InterceptionSkill
- CDPWave DebuggingSkill
- CDPWave TestingSkill
- db2-oracleSkill
- ebook-writerSkill
- flask-apiSkill
- flet-desktopSkill
- google-crawling-indexingSkill
- google-ranking-appearanceSkill
- google-seo-fundamentalsSkill
- google-seo-monitoringSkill
- jinja2-templatesSkill
- jmeter-load-testingSkill
- k6-load-testingSkill
- karate-api-testingSkill
- octane-almSkill
- paramiko-sshSkill
- postman-api-automationSkill
- prestashop-moduleSkill
- prompt-engineering-best-practicesSkill
- pytest-advancedSkill
- robot-frameworkSkill
- salesforce-devSkill
- sonarqube-quality-gatesSkill
- sql-serverSkill
- Skill NameSkill
- testcontainersSkill
- wave-ecosystem-guideSkill
- WaveXis AccessibilitySkill
- WaveXis CI/CD IntegrationSkill
- wavexis-cli-automationSkill
- wavexis-mcp-agent-integrationSkill
- WaveXis Network TestingSkill
- WaveXis Session RecordingSkill
- WaveXis Web ScrapingSkill
- webdriverioSkill
- wordpress-themesSkill
- xctest-iosSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 209
When --assert is used, the command exits with:
- Distinctive: line 228
Run Lighthouse audits directly from wavexis.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
WaveXis Performance Audit
Description
Performance auditing with wavexis — measure Core Web Vitals (LCP, CLS, INP), capture CPU traces, analyze JS/CSS coverage, take heap snapshots, run Lighthouse audits, and enforce CI performance budgets.
When to Invoke
- Measuring Core Web Vitals (LCP, CLS, INP) for a page
- Running Lighthouse audits (performance, accessibility, best practices, SEO)
- Capturing CPU performance traces
- Analyzing JS or CSS code coverage
- Taking heap snapshots for memory analysis
- Setting up CI performance gates with budgets
- Generating performance reports for CI/CD
Prerequisites
pip install wavexis[cdp]- Chrome or Edge installed
- Basic familiarity with wavexis CLI (see
wavexis-cli-automationskill)
perf Command
The perf command provides subcommands for performance profiling.
Metrics
Collect performance metrics from a page load:
wavexis perf metrics https://example.comOutput includes:
- First Contentful Paint (FCP)
- Largest Contentful Paint (LCP)
- Cumulative Layout Shift (CLS)
- Interaction to Next Paint (INP)
- Total Blocking Time (TBT)
- Time to Interactive (TTI)
- Speed Index
- Time to First Byte (TTFB)
Trace
Capture a CPU performance trace:
wavexis perf trace https://example.com --output trace.jsonProfile
Capture a CPU profile:
wavexis perf profile https://example.com --output profile.jsonJS Coverage
Measure JavaScript code coverage:
wavexis perf coverage https://example.com --output js-coverage.jsonReturns:
- URL of each JS file
- Total bytes
- Used bytes
- Unused bytes
- Usage percentage
CSS Coverage
Measure CSS code coverage:
wavexis perf css-coverage https://example.com --output css-coverage.jsonHeap Snapshot
Take a heap snapshot for memory analysis:
wavexis perf heap-snapshot https://example.com --output heap.heapsnapshotperf options
| Option | Type | Default | Description |
--output | str | stdout | Output file path |
--timeout | int | 30000 | Page load timeout (ms) |
--wait-until | str | load | Wait condition: load, domcontentloaded, networkidle |
--repeats | int | 1 | Number of runs to average |
--mobile | flag | off | Emulate mobile device |
--throttle | flag | off | Apply CPU/network throttling |
cwv Command
Measure Core Web Vitals with 0-100 scoring.
Basic CWV measurement
wavexis cwv https://example.comCWV with mobile emulation
wavexis cwv https://example.com --mobileCWV with throttling
wavexis cwv https://example.com --throttleCWV with multiple runs
wavexis cwv https://example.com --repeats 5CWV output
{
"lcp": {
"value": 2200,
"unit": "ms",
"rating": "needs-improvement",
"score": 75
},
"cls": {
"value": 0.05,
"unit": "score",
"rating": "good",
"score": 100
},
"inp": {
"value": 180,
"unit": "ms",
"rating": "good",
"score": 92
},
"overall": {
"score": 89,
"rating": "needs-improvement"
}
}Rating thresholds
| Metric | Good | Needs Improvement | Poor |
| LCP | ≤ 2.5s | 2.5s - 4.0s | > 4.0s |
| CLS | ≤ 0.1 | 0.1 - 0.25 | > 0.25 |
| INP | ≤ 200ms | 200ms - 500ms | > 500ms |
CWV with budget
wavexis cwv https://example.com --budget budget.jsonExits with code 1 if any metric exceeds the budget.
CWV Budgets
Budget JSON format
{
"lcp_ms": 2500,
"cls": 0.1,
"inp_ms": 200,
"fcp_ms": 1800,
"tbt_ms": 200,
"tti_ms": 3800,
"speed_index_ms": 3400
}Budget with CI assert
wavexis cwv https://example.com \
--budget budget.json \
--assertWhen --assert is used, the command exits with:
- 0 — all metrics within budget
- 1 — one or more metrics exceeded budget
Budget keys
| Key | Unit | Description |
lcp_ms | ms | Largest Contentful Paint |
cls | score | Cumulative Layout Shift |
inp_ms | ms | Interaction to Next Paint |
fcp_ms | ms | First Contentful Paint |
tbt_ms | ms | Total Blocking Time |
tti_ms | ms | Time to Interactive |
speed_index_ms | ms | Speed Index |
ttfb_ms | ms | Time to First Byte |
lighthouse Command
Run Lighthouse audits directly from wavexis.
Basic Lighthouse audit
wavexis lighthouse https://example.comSpecific categories
wavexis lighthouse https://example.com \
--categories performance,accessibility,best-practices,seoMobile form factor
wavexis lighthouse https://example.com \
--form-factor mobile \
--throttleLighthouse with output
wavexis lighthouse https://example.com \
--output lighthouse-report.html \
--format htmlOutput formats
# HTML report
wavexis lighthouse https://example.com --format html --output report.html
# JSON report
wavexis lighthouse https://example.com --format json --output report.json
# Both
wavexis lighthouse https://example.com --format html,json --output reportLighthouse options
| Option | Type | Default | Description |
--categories | str | all | Comma-separated categories |
--form-factor | str | mobile | mobile or desktop |
--throttle | flag | off | Apply CPU/network throttling |
--output | str | stdout | Output file path |
--format | str | html | html, json, or both |
--budget | str | None | Performance budget JSON |
Report Generation
Combined performance report
wavexis perf metrics https://example.com --output metrics.json
wavexis cwv https://example.com --output cwv.json
wavexis lighthouse https://example.com --output lighthouse.htmlMulti-action YAML for full audit
actions:
- navigate:
url: https://example.com
wait_until: networkidle
- cwv:
budget:
LCP_ms: 2500
CLS: 0.1
INP_ms: 200
- lighthouse:
categories:
- performance
- accessibility
form_factor: mobile
- perf:
trace: true
output: trace.json
- screenshot:
full_page: trueCI Integration
Performance gate in CI
# Run CWV with budget assertion
wavexis cwv https://staging.example.com \
--budget ci-budget.json \
--assert \
--mobile \
--throttle
# Exit code 0 = pass, 1 = fail
echo "Performance gate: $?"GitHub Actions integration
- name: Performance audit
run: |
wavexis cwv https://staging.example.com \
--budget ci-budget.json \
--assert \
--mobile \
--throttle \
--output cwv-results.json
- name: Upload results
if: always()
uses: actions/upload-artifact@v4
with:
name: perf-results
path: cwv-results.jsonLighthouse CI gate
wavexis lighthouse https://staging.example.com \
--categories performance \
--form-factor mobile \
--throttle \
--budget lighthouse-budget.json \
--assertBudget for Lighthouse
{
"performance": 80,
"accessibility": 90,
"best-practices": 85,
"seo": 85
}Interpreting Results
Core Web Vitals ratings
| Rating | Color | Meaning |
| Good | Green | Meets Google thresholds |
| Needs Improvement | Orange | Close to thresholds, may affect UX |
| Poor | Red | Fails thresholds, likely affects UX |
Lighthouse scores
| Score Range | Rating | Action |
| 90-100 | Good | Maintain |
| 50-89 | Needs Improvement | Optimize |
| 0-49 | Poor | Critical — fix immediately |
Common performance issues
| Symptom | Likely Cause | Metric Affected |
| Slow first paint | Render-blocking resources | FCP, LCP |
| Large layout shifts | Images without dimensions | CLS |
| Slow interaction | Long JavaScript tasks | INP, TBT |
| Slow page load | Large JS bundles | TTI, Speed Index |
| High unused JS | Unoptimized bundles | JS Coverage |
| High unused CSS | Unused stylesheets | CSS Coverage |
| Memory leaks | Growing heap | Heap Snapshot |
Best Practices
- Use
--mobilefor CWV — Google ranks on mobile-first. - Use
--throttle— simulate real-world network/CPU conditions. - Run multiple times —
--repeats 5gives stable averages. - Set budgets — define
--budgetJSON for CI gates. - Use
--assertin CI — exit code 1 fails the build. - Save reports —
--outputfor artifacts and trend analysis. - Test staging, not production — avoid skewing real-user data.
- Check JS/CSS coverage — high unused % means optimization opportunity.
- Monitor trends — compare results across builds.
- Fix poor ratings first — they have the highest UX impact.
Common Pitfalls
- No throttling — results look good but don't reflect real users.
- Single run — CWV can vary; use
--repeatsfor stability. - Testing localhost — network latency is zero; use
--throttle. - Ignoring INP — INP replaced FID; it's now a Core Web Vital.
- Budget too strict — set realistic budgets based on current performance.
- Not saving results — without
--output, results are lost. - Wrong form factor — mobile and desktop scores differ significantly.
- Ignoring coverage — unused JS/CSS is a major performance bottleneck.
References
references/cwv-thresholds.md— Official Google CWV thresholdsreferences/perf-metrics-reference.md— Performance metrics referencereferences/lighthouse-scoring.md— Lighthouse audit categories and scoringassets/templates/perf-audit.yml— Performance audit YAML templateassets/templates/cwv-budget.json— CWV budget JSON templateassets/templates/ci-perf-gate.yml— CI performance gate template- wavexis on GitHub
- Core Web Vitals
- Lighthouse
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.

