davenov:cc:expert-convex-nextjs

📁 kaladivo/davenov-cc-collection 📅 5 days ago
1
总安装量
1
周安装量
#54918
全站排名
安装命令
npx skills add https://github.com/kaladivo/davenov-cc-collection --skill davenov:cc:expert-convex-nextjs

Agent 安装分布

amp 1
opencode 1
cursor 1
codex 1
github-copilot 1

Skill 文档

<quick_start> Route based on user’s stated need:

  • Schema/database work: Apply validator patterns and index design from references/schema-design.md
  • Function authoring: Use new syntax with args/returns validators from references/function-patterns.md
  • Authentication: Implement proxy.ts routing pattern from references/ssr-auth.md
  • Server rendering: Use preloadQuery + usePreloadedQuery from references/ssr-auth.md
  • Debugging: Check error table and verification checklist from references/debugging.md

If user’s need is ambiguous, present intake menu to clarify scope. </quick_start>

<core_workflow>

  1. Set up a new Convex + Next.js project
  2. Add/modify Convex functions (queries, mutations, actions)
  3. Design or update the database schema
  4. Implement authentication with Convex Auth
  5. Add server rendering with preloadQuery
  6. Debug an issue
  7. Something else

Wait for response before proceeding.

</core_workflow>

<success_criteria> Task is complete when:

  • Schema compiles without errors (npx convex dev shows no TypeScript errors)
  • All functions have explicit args and returns validators
  • All queries use .withIndex() with corresponding schema indexes (no .filter())
  • Document IDs use Id<"tableName"> type, not string
  • Authentication flow works correctly (proxy.ts routing, ConvexAuthNextjsProvider setup)
  • preloadQuery successfully eliminates loading spinners on server-rendered pages
  • User can run verification checklist without failures </success_criteria>