benchmark-agents
Advanced AI agent benchmark scenarios that push Vercel's cutting-edge platform features —…
Debug Vercel CDN caching — cache hit rate, stale content, revalidation behavior, ISR + PPR, per-request cache reasons (cacheReason) and PPR state (ppr_state), and costs.
$ npx -y skills add vercel/vercel-plugin --skill cdn-caching --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cdn-cachingContext preview
The summary Claude sees to decide when to auto-load this skill.
Debug Vercel CDN caching — cache hit rate, stale content, revalidation behavior, ISR + PPR, per-request cache reasons (cacheReason) and PPR state (ppr_state), and costs.
name: cdn-caching
description: Debug Vercel CDN caching — cache hit rate, stale content, revalidation behavior, ISR + PPR, per-request cache reasons (cacheReason) and PPR state (ppr_state), and costs.
metadata:
priority: 6
docs:
- 'https://vercel.com/docs/caching'
- 'https://vercel.com/docs/caching/cdn-cache'
- 'https://vercel.com/docs/incremental-static-regeneration'
- 'https://vercel.com/docs/cli/metrics'
bashPatterns:
- '\bvercel\s+cache\s+(purge|invalidate|dangerously-delete)\b'
promptSignals:
phrases:
- 'cache hit rate'
- 'isr cost'
- 'isr read units'
- 'isr write units'
- 'stale content'
- 'x-vercel-cache'
- 'cache reason'
- 'cacheReason'
- 'x-vercel-cache-reason'
- 'ppr state'
- 'ppr_state'
- 'x-vercel-ppr-state'
- 'stale_time'
- 'stale_tag'
- 'stale_error'
- 'draft_mode'
- 'prerender_bypass'
allOf:
- [cache, debug]
- [stale, cache]
- [revalidation, count]
- [cache, reason]
- [why, stale]
- [why, bypass]
- [cache, miss]
anyOf:
- 'revalidate'
- 'prerender'
- 'invalidate'
- 'draft mode'
- 'crawler'
- 'cold cache'
- 'request collapsed'
minScore: 6
retrieval:
aliases:
- cache reason
- ppr state
- cache hit rate
- stale content
intents:
- why is my page stale
- why is this request a bypass
- why was this a cache miss
entities:
- cacheReason
- ppr_state
- collapsed
- draft_mode
- prerender_bypass
- stale_time
- stale_tag
- stale_error
chainTo:
-
pattern: 'use cache|cacheLife|cacheTag'
targetSkill: next-cache-components
message: 'Next.js cache directives detected — loading Cache Components guidance for revalidate/tag tuning.'You are an expert in understanding Vercel's caching infrastructure, and how the CDN Cache, ISR, and PPR work.
Vercel caches at multiple layers between the visitor and your backend. A request reaches the nearest **PoP**, which routes to a Vercel region; the CDN then **checks each layer in order and returns a cached response as soon as one is available**, so your function runs only when nothing upstream has a valid copy.
**Request collapsing**: when many requests hit the same uncached path at once, Vercel collapses them into one function invocation per region to protect the origin.
| Value | Meaning | | ------------- | ---------------------------------------------------------------- | | `HIT` | Served from cache; no function ran | | `MISS` | Not cached; origin/function ran | | `STALE` | Served stale while revalidating in background (SWR / invalidate) | | `PRERENDER` | Served a prerendered ISR/PPR shell
Comprehensive Vercel ecosystem plugin — relational knowledge graph, skills for every major product, specialized agents, and Vercel conventions. Turns any AI agent into a Vercel expert.
Repo: vercel-labs/vercel-plugin
Advanced AI agent benchmark scenarios that push Vercel's cutting-edge platform features —…
End-to-end benchmark suite for vercel-plugin. Runs realistic projects through skill…
Run vercel-plugin eval scenarios in Vercel Sandboxes instead of local WezTerm panels.…
Create and launch benchmark test projects to exercise vercel-plugin skill injection across…
Audit vercel-plugin performance on real-world projects. Extracts tool calls from Claude Code…
Release vercel-plugin — run gates, bump version, generate artifacts, commit, and push. Use…