CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

next-cache-components-optimizer

Optimize the meaningful UI available immediately from a Next.js route on an initial load (hard navigation) or named client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route and entry point at a time; the shipped test then guards against regression. Use when asked to grow a static shell, fix a slow first paint or non-instant navigation, diagnose which Suspense boundary blocks useful UI, or add instant() regression coverage. Requires Next.js 16.3+ with Cache Components already adopted.

Quality

85%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Quality

Content

73%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body delivers an unusually rigorous, gated workflow with concrete commands, explicit RED/GREEN validation, a differential, and a PR checklist — its strongest dimension. Its weaknesses are noticeable repetition of the same invariants across sections and the absence of the referenced bundle files (rig-template.md, test-template.md, red-test-robustness.md), which leaves the central instant() test example unverifiable.

Suggestions

State each invariant once: 'a ruler, not a stopwatch' and 'the verdict comes from the build, not the platform' each appear twice, and the rig invariant is restated in the mechanism section, phase A, and phase A's closing paragraph — say each once and cross-reference it.

Compress the 'What is invariant, and what is yours' meta-section; it re-derives content that phases 0 and A already convey, and could be a few lines.

Ship the referenced bundle files (rig-template.md, test-template.md, reference/red-test-robustness.md) with the skill — none are present in the directory — or inline a minimal instant() test example so the core artifact is visible.

DimensionReasoningScore

Conciseness

The body is expert-level with no basic-concept padding, but repeats itself: "a ruler, not a stopwatch" appears in both the mechanism section and Goal; "the verdict comes from the build, never the platform" appears in 'Yours: the rig' and again in phase A; and the meta 'What is invariant, and what is yours' section re-derives points made per-phase. This fits 'Mostly efficient but includes some unnecessary explanation or could be tightened' rather than the 4 anchor, whose over-explanation is only minor.

3 / 5

Actionability

Quotes: "npm ls next @next/playwright", "npx @next/codemod upgrade", the executable exposeTestingApiInProductionBuild config with per-platform conditions, the blocker→guide-pattern table, the rg partialPrefetching audit command, and explicit driving rules ("Soft navigation → drive a real <Link> click. Initial load → use page.goto() inside instant() with the baseURL option"). Mostly executable guidance; the minor gap is that the core artifact — an actual instant() test — is never shown inline, only delegated to test-template.md, which fits the 4 anchor rather than the copy-paste-ready 5.

4 / 5

Workflow Clarity

Quotes: "Work the phases P → G in order; each ends in a gate", "C-gate: do not start optimizing until the RED is verified trustworthy", "D-gate: phase D is complete when the locked test from phase C passes GREEN under the lock on the production-build rig", "Revert only the fix → RED; re-apply → GREEN", and a PR checklist with a global stop condition. Clear sequence, explicit validation checkpoints, a revert/re-apply feedback loop, and checklists — a direct match for the 5 anchor.

5 / 5

Progressive Disclosure

The body is appropriately split: a compact overview plus one-level-deep, clearly signaled references ("rig-template.md", "test-template.md", "reference/red-test-robustness.md") with a 'Files' section indexing each. However, none of the referenced bundle files exist in the skill directory (references/, scripts/, assets/ are absent), so the split cannot be verified and the core test content is unreachable — a minor organization gap that keeps this at 'Good structure; most content is appropriately placed' rather than the fully navigable 5 anchor.

4 / 5

Total

16

/

20

Passed

Description

88%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is strong: it states concrete, domain-specific actions for both navigation entry points, includes an explicit 'Use when' clause with realistic trigger phrases, and scopes itself with a version requirement. Keyword coverage and distinctiveness against the sibling prefetching skill are the only soft spots.

DimensionReasoningScore

Specificity

Quotes: "Optimize the meaningful UI available immediately from a Next.js route on an initial load (hard navigation) or named client-side navigation (soft navigation)", "Encode the goal as a failing @next/playwright instant() e2e and work it to green", "diagnose which Suspense boundary blocks useful UI", "the shipped test then guards against regression". Multiple specific concrete actions covering the full job (optimize both entry points, write failing test, drive to green, ship regression guard, diagnose blockers); this matches the anchor 'Lists multiple specific concrete actions; comprehensive coverage' rather than the 4 anchor, which implies coverage gaps.

5 / 5

Completeness

Quotes: clear what ("Optimize the meaningful UI available immediately... Encode the goal as a failing @next/playwright instant() e2e and work it to green") plus an explicit when ("Use when asked to grow a static shell, fix a slow first paint or non-instant navigation...") with concrete trigger phrases and a requirement ("Requires Next.js 16.3+ with Cache Components already adopted"). Both what and when are explicitly and concretely answered, matching the 5 anchor; not 4 because the when clause is fully explicit rather than merely adequate.

5 / 5

Trigger Term Quality

Quotes: "Use when asked to grow a static shell, fix a slow first paint or non-instant navigation, diagnose which Suspense boundary blocks useful UI, or add instant() regression coverage". Good natural phrasing users would say, but common synonyms are missing (e.g., stuck loading skeleton, spinner, slow streaming, layout shift), so it fits 'Good keyword coverage; a few natural terms missing' rather than the comprehensive 5 anchor.

4 / 5

Distinctiveness Conflict Risk

Quotes: "Next.js route", "@next/playwright instant() e2e", "Requires Next.js 16.3+ with Cache Components already adopted" — a clear, tightly scoped niche. However, the trigger "fix a slow first paint or non-instant navigation" overlaps with the closely related next-partial-prefetching skill territory, fitting 'Mostly distinct; minor overlap risk with closely related skills' rather than the minimal-conflict 5 anchor.

4 / 5

Total

18

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

vercel/next.js

Path

skills/next-cache-components-optimizer/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.