Add the mobile performance playbook to the audit skill - #158
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Turns the shield.fi optimization pass into something the audit and lighthouse skills apply on any site: a measured fix ladder, the false findings to discard first, and two scripts that produce the numbers. No new skill; the count stays at 38.
Summary
Start with
skills/audit/references/performance-playbook.md.injected.js, DevTools panel CLS, warm-cache panels, preview toolbar), an eight-rung fix ladder with the effect each one measured (AVIF, unused client code, inline CSS, per-route CSS chunking, font subsetting withunicode-range, platform elements over client widgets, WebGL gated on the renderer string, scroll libraries on touch), the traps found on the way, and the report shape.net-capture.mjs: cold load under emulated Slow 3G / 3G / 4G with 4x CPU, prints requests, bytes by type, TTFB/FCP/LCP/load and a request timeline.BLOCKregex aborts a resource class for what-does-paint-wait-on experiments.bundle-attribution.py: attributes a route's shipped JS to packages and app directories from source maps; separates the framework floor from what the project controls.Test plan
bun run lint:skills: 38 skills, 0 errorsbun run lint:links: 190 links okbun run typecheckcleanbun run lintand 14 tests (codex shim detection, npm installer stub, setup.sh bootstrap) fail on main the same way; untouched here