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.
2.3 KiB
2.3 KiB
name: v0-dev
docs:
- https://v0.dev/docs
- https://vercel.com/docs/v0
sitemap: https://v0.dev/sitemap.xml
bashPatterns:
- "\bnpx\s+v0\b"
- "\bbunx\s+v0\b"
- "\bv0\s+(generate|dev|chat)\b"
importPatterns:
- "@v0/sdk"
- "v0"
promptSignals:
phrases:
- "generate with v0"
- "v0 components"
- "use v0"
- "v0 generate"
minScore: 6
- pattern: "from\s+[''"]@/components/ui/|npx\s+shadcn|@shadcn/"
targetSkill: shadcn
message: "shadcn/ui components detected in v0 output — loading shadcn guidance for theming, registry, and component customization."
- pattern: "useChat\s*\(|streamText\s*\(|generateText\s*\(|from\s+[''"]ai[''"]"
targetSkill: ai-sdk
message: "AI SDK usage detected in v0-generated code — loading AI SDK v6 guidance for proper streaming, transport, and gateway patterns."
- pattern: "from\s+[''"]next/image[''"]|from\s+[''"]next/font[''"]|from\s+[''"]next/link[''"]"
targetSkill: nextjs
message: "Next.js imports in v0 output — loading Next.js 16 guidance for App Router patterns, async APIs, and proxy.ts."
retrieval:
aliases: ["v0", "ai code gen", "ui generator", "prompt to code"]
intents: ["generate ui with v0", "use v0 cli", "integrate v0 sdk", "create component from prompt"]
entities: ["v0", "v0 CLI", "v0 SDK", "AI code generation"]
chainTo:
- pattern: "from\s+[''"]@/components/ui/|npx\s+shadcn|@shadcn/"
targetSkill: shadcn
message: "shadcn/ui components detected in v0 output — loading shadcn guidance for theming, registry, and component customization."
- pattern: "useChat\s*\(|streamText\s*\(|generateText\s*\(|from\s+[''"]ai[''"]"
targetSkill: ai-sdk
message: "AI SDK usage detected in v0-generated code — loading AI SDK v6 guidance for proper streaming, transport, and gateway patterns."
skipIfFileContains: "convertToModelMessages|toUIMessageStreamResponse"
- pattern: "from\s+[''"]next/image[''"]|from\s+[''"]next/font[''"]|from\s+[''"]next/link[''"]"
targetSkill: nextjs
message: "Next.js imports in v0 output — loading Next.js 16 guidance for App Router patterns, async APIs, and proxy.ts."
skipIfFileContains: "generateStaticParams|generateMetadata"
Guidance for v0-dev. Install from registry for full content.