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 by suspended_by[].name, drop SSR-only client hooks.

Pick one and run it end-to-end.

requires

  • next-dev-loop initiated for this session — it opens the headed browser, exposes the agent-browser CLI, and wires the dev MCP server that provides mcp get_logs.
  • cacheComponents: true in next.config.ts. Refuse otherwise.

preflight (shared)

  1. Confirm cacheComponents: true.
  2. 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.)
  3. agent-browser get url to anchor the current route.
Installs
2
GitHub Stars
5
First Seen
Jul 27, 2026
next-cache-components-optimizer — fellipeutaka/leon