next-cache-components-optimizer
Installation
SKILL.md
next-cache-components-optimizer
Two loops, shared levers and primitives, different diagnostics:
- Page-render loop (ppr-loop.md) — grow the static shell of a single page. Rank Suspense fallback areas on a shell-only render.
- Nav loop (instant-nav-loop.md) — when the user clicks a link from A to B, show B's static layout immediately (chrome, structure, content-shaped fallbacks) instead of holding A's UI until B's data resolves. Capture B's suspended boundaries post-
pushstate, classify each bysuspended_by[].name, drop SSR-only client hooks.
Pick one and run it end-to-end.
requires
next-dev-loopinitiated for this session — it opens the headed browser, exposes theagent-browserCLI, and wires the dev MCP server that providesmcp get_logs.cacheComponents: trueinnext.config.ts. Refuse otherwise.
preflight (shared)
- Confirm
cacheComponents: true. - The user must already be at the page each loop needs in the headed browser (from
next-dev-loop) — logged in, with any state set up. This skill can't drive auth, SSO, or MFA; it takes the manual setup as the starting point. (Each sub-loop names which page it expects.) agent-browser get urlto anchor the current route.