mirror of
https://github.com/vercel/vercel-plugin.git
synced 2026-09-14 15:39:47 +08:00
3a8a8b2bea
- Fix skill store cross-root slug lookup: installed skills under registrySlug names (e.g., next-best-practices) now resolve when queried by engine name (e.g., nextjs). Full-body injection rate went from 5% to 78% in evals. - Fix on-demand install: remove dead hooks.json registrations (library module with no entry point), keep inline calls from pretooluse/user-prompt-submit. Non-registry skills now dedup normally instead of wastefully reinjectiing summary-only content that can never upgrade. - Add suppressWhenProjectFacts to engine rules: next-upgrade and turbopack suppressed in greenfield mode (was 12 useless injections per session). - Add deriveRegistryInstallSet to orchestrator-install-plan (was missing export that crashed on-demand-skill-install on every invocation). - Sync all engine rule registries from skills.sh API via build-registry.ts. 22 skills now have registry backing across 11 official Vercel repos. Exclude vercel-labs/vercel-plugin and vercel/vercel-plugin self-references. - Add build:registry to the build pipeline (hooks → registry → manifest). - Create 7 new engine rules: electron, vercel-composition-patterns, vercel-react-native-skills, web-design-guidelines, deploy-to-vercel, vercel-react-view-transitions, workflow-init. - Add .claude/skills/ to .gitignore (installed skill caches). - Add Verification Checklist to CLAUDE.md.
36 lines
1.7 KiB
Markdown
36 lines
1.7 KiB
Markdown
---
|
|
name: runtime-cache
|
|
docs: https://nextjs.org/docs/app/building-your-application/caching
|
|
sitemap: https://nextjs.org/sitemap.xml
|
|
pathPatterns:
|
|
- "lib/cache/**"
|
|
- "src/lib/cache/**"
|
|
- "lib/cache.*"
|
|
- "src/lib/cache.*"
|
|
bashPatterns:
|
|
- "\\bnpm\\s+(install|i|add)\\s+[^\\n]*@vercel/functions\\b"
|
|
- "\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@vercel/functions\\b"
|
|
- "\\bbun\\s+(install|i|add)\\s+[^\\n]*@vercel/functions\\b"
|
|
- "\\byarn\\s+add\\s+[^\\n]*@vercel/functions\\b"
|
|
validate:
|
|
- pattern: "from\\s+[''\"\"](redis|ioredis)[''\"\"]|require\\s*\\(\\s*[''\"\"](redis|ioredis)[''\"\"]|new\\s+Redis\\("
|
|
message: "Direct Redis/ioredis client detected. Use Upstash Redis (@upstash/redis) for serverless-native Redis with HTTP-based connections."
|
|
severity: recommended
|
|
skipIfFileContains: "from\\s+[''\"\"]\\@upstash/redis[''\"\"]"
|
|
upgradeToSkill: vercel-storage
|
|
upgradeWhy: "Replace direct Redis/ioredis with @upstash/redis for serverless-compatible HTTP-based Redis that works without persistent TCP connections."
|
|
chainTo:
|
|
- pattern: "from\\s+[''\"\"]@vercel/kv[''\"\"]"
|
|
targetSkill: vercel-storage
|
|
message: "@vercel/kv is sunset — loading Vercel Storage guidance for Upstash Redis migration."
|
|
- pattern: "from\\s+[''\"\"]ioredis[''\"\"]|new\\s+Redis\\("
|
|
targetSkill: vercel-storage
|
|
message: "Direct Redis client detected — loading Vercel Storage guidance for Upstash Redis (serverless-native) integration."
|
|
retrieval:
|
|
aliases: ["cache api", "kv cache", "region cache", "tag invalidation"]
|
|
intents: ["add caching", "cache api response", "invalidate cache", "set up runtime cache"]
|
|
entities: ["Runtime Cache", "tag-based invalidation", "key-value", "cache"]
|
|
---
|
|
|
|
Guidance for runtime-cache. Install from registry for full content.
|