CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the `cacheComponents` flag, work through a flood of blocking-prerender / instant validation errors, run the `cache-components-instant-false` codemod, or decide between opting routes out with `export const instant = false` and fixing them in place.

Quality

95%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

SKILL.md
Quality
Evals
Security

Quality

Content

88%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.

This is a high-quality operational skill: an unambiguous multi-step workflow with pervasive validation gates, copy-paste-ready commands and code, and well-signaled one-level-deep references. Its only weaknesses are moderate: repeated maxims and over-long paragraphs that could be tightened, and a body that keeps more detail inline than a leaner overview-plus-references split would.

Suggestions

State the "fetch the linked docs page for every distinct error; don't improvise from the inline message" rule once (e.g. in 'working surfaces') and reference it from the loop steps instead of repeating it three times — same for the "never use internal labels (Incremental/Direct) with the user" rule.

Split the long `next build` bullet in 'finding blocking routes' into sub-bullets or move the `--debug-build-paths` glob examples and route-table-glyphs detail into a reference file, keeping SKILL.md closer to an overview.

Condense the two full check-in scripts (pre-step and step 3) into a single shared checklist reference, since they overlap heavily in content (what you did / what changed / the question).

DimensionReasoningScore

Conciseness

The body is dense with skill-specific operational knowledge Claude doesn't have (codemod dirty-tree behavior, first-explicit-config-wins resolution, `--debug-build-paths` glob gotchas) and doesn't pad with known concepts. However, several maxims repeat ("fetch the docs page ... don't improvise" appears three times; "don't say Incremental / internal labels" appears three times) and a few single-paragraph bullets (the `next build` bullet in 'finding blocking routes') run very long, so it sits between anchors 3 and 4 — noticeably above the midpoint but with real tightening opportunities.

4 / 5

Actionability

Fully executable throughout: copy-paste commands (`npx @next/codemod@latest cache-components-instant-false ./app`, `next build --debug-prerender --debug-build-paths="app/admin/**/page.tsx"`, `npx skills add ...`, grep patterns), an exact hand-written opt-out code snippet, exact error strings to expect, and scripted check-in questions for the user. Common cases (incremental vs direct, browser vs build-only) each get concrete loops.

5 / 5

Workflow Clarity

Clear sequence (requires → strategy choice → pre-step → per-feature inner loop → feature verification) with explicit validation checkpoints: the per-route success bar ("dev loop reports no errors AND `next build` passes"), fix-then-rerun-build feedback loops until the build passes, a step-3 checklist with grep verification, sibling re-checks after shared-code fixes, and a defined build-only fallback loop. Matches the anchor-5 pattern of sequence + explicit validation + error-recovery loops.

5 / 5

Progressive Disclosure

Both bundle files exist, are one level deep, and are well signaled with purpose in context ("read [references/per-page-decisions.md] before editing" for judgment calls; dev-only-validations.md framed as an optional follow-up in 'further reading'), and sections are easy to navigate. But the SKILL.md body carries nearly all detail inline (~250 lines) — material like the route-table-glyphs discussion and the full check-in scripts could live in references — so it is good structure with minor organization gaps rather than the concise-overview-plus-references shape of anchor 5.

4 / 5

Total

18

/

20

Passed

Description

100%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 exemplary: it states a concrete two-part capability, gives an explicit and multi-trigger 'Use when' clause with exact flag, codemod, and error vocabulary, and is tightly scoped so it cannot be confused with adjacent Next.js skills. Every dimension lands at the top anchor.

DimensionReasoningScore

Specificity

Names the domain and multiple concrete actions with exact identifiers: "Turn on Cache Components", "resolve the blocking routes it surfaces", "flip the `cacheComponents` flag", "run the `cache-components-instant-false` codemod", "opting routes out with `export const instant = false`". Coverage is comprehensive across enable, fix, codemod, and decision actions, matching the anchor-5 example rather than the minor-gaps anchor 4.

5 / 5

Completeness

Explicitly answers both: what ("Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces") and when ("Use when the user wants to enable, adopt, or migrate to Cache Components, flip the `cacheComponents` flag, work through a flood of blocking-prerender / instant validation errors, run the ... codemod, or decide between ..."). The when-clause lists concrete trigger phrases, matching anchor 5; it is far more explicit than the anchor-4 example where 'when' could be more specific.

5 / 5

Trigger Term Quality

Natural synonyms are covered ("enable, adopt, or migrate to Cache Components") alongside exact user-facing vocabulary: the flag key, the codemod slug, "blocking-prerender / instant validation errors", and the `instant = false` export. A user needing this skill would say almost exactly these phrases.

5 / 5

Distinctiveness Conflict Risk

Clear niche (Cache Components adoption in Next.js App Router) with triggers unique to this skill — the named codemod, error classes, and `instant = false` export won't fire sibling skills like partial-prefetching adoption or the shell optimizer. Minimal conflict risk.

5 / 5

Total

20

/

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-adoption/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.