Token导航 LogoToken导航

Agent Skill · 研究检索

convex-nextjs(convex Next.js 搜索)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

convex-nextjs 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 42,057。

总安装 1,112周安装 45GitHub Stars 公开资料未说明下载 349核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:convex-nextjs(convex Next.js 搜索)
来源仓库:https://github.com/tristanmanchester/agent-skills
仓库路径:skills/convex-nextjs
安装命令:
npx skills add https://github.com/tristanmanchester/agent-skills --skill convex-nextjs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tristanmanchester/agent-skills --skill convex-nextjs

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于 Next.js 应用中集成 Convex 的完整端到端解决方案。支持 schema 设计、UI hooks 编写和认证流程配置。可诊断 provider 缺失、codegen 错误等典型集成故障。不适合纯前端 UI 开发或无 Convex 依赖的项目场景。

convex-nextjs 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/convex-nextjs

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/tristanmanchester/agent-skills --skill convex-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

convex-nextjs 怎么安装?

在终端执行 npx skills add https://github.com/tristanmanchester/agent-skills --skill convex-nextjs。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

convex-nextjs 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

convex-nextjs 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

convex-nextjs 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

convex-nextjs 用的人多吗?

公开数据是累计安装 1,112 次,近一周安装 45 次,下载 349 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

convex-nextjs 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
convex-nextjs

convex Next.js 搜索 · 本页

1,112—调用外部服务未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Convex + Next.js

Use this skill to

  • Bootstrap Convex in a new or existing Next.js app.
  • Add a feature end to end: schema, indexes, functions, UI hooks, auth, and deployment.
  • Debug typical integration failures: missing provider, missing generated code, bad client/server boundaries, missing env vars.
  • Review whether Convex is a good fit for a realtime or collaborative Next.js feature.

Do not use this skill when

  • The task is plain Next.js UI work with no Convex dependency.
  • The backend is definitely not Convex and the user is not considering migration.
  • The problem is generic database theory with no Next.js/Convex implementation work.

Default posture

  • Use npx convex dev for development.
  • Keep reactive hooks in Client Components.
  • Prefer indexed queries over .filter(...).
  • Treat unbounded lists as paginated by default.
  • Put external I/O in actions; add "use node" only if Node APIs or unsupported packages are required.
  • Require input validation on public functions; add return validation unless there is a good reason not to.
  • Add explicit auth and ownership checks for user data.
  • Prefer helper functions or custom wrappers when the same auth/tenant checks repeat.

Starting questions to answer from the repo

  1. Is this a new app, an existing Next.js app, or a migration?
  2. App Router, Pages Router, or both?
  3. Does the feature need reactivity, SSR, server actions, or all three?
  4. Is the dataset bounded or should it paginate?
  5. Is auth already present? If yes, is it client-only or needed on the server too?
  6. Would a Convex component make this feature more reusable or isolated?

Workflow 1 — Choose the right starting path

A. Brand new project

Prefer:

npm create convex@latest

If the user already has a Next.js app structure they want to keep, use path B instead.

B. Existing Next.js app

Install Convex and start dev sync:

npm install convex
npx convex dev

Expected outcomes:

  • convex/ exists, or the custom functions directory from convex.json
  • generated files appear under _generated/
  • a dev deployment or local deployment is connected
  • NEXT_PUBLIC_CONVEX_URL is available for the frontend

See references/01-setup-and-decision-tree.md.

Workflow 2 — Model data for query patterns, not screen shapes

Before writing UI, define:

  • the tables
  • the ownership fields
  • the indexes needed for the main reads
  • whether lists are bounded or paginated
  • whether files should live in Convex File Storage instead of large documents

Rules:

  • Prefer flat relational-style documents over deep nested blobs.
  • Use v.id("table") for relationships.
  • Add indexes for every repeated filter/sort path you know you need.
  • If the query would scan an unbounded table, redesign the index or paginate it.

See references/02-schema-and-indexes.md.

Workflow 3 — Pick the correct Convex function shape

Query

Use for pure reads. Keep them small, indexed, and predictable.

Mutation

Use for writes and transactional read-write logic.

Action

Use for external APIs, long-running work, or non-transactional orchestration.

  • Stay in the default Convex runtime if fetch is enough.
  • Add "use node" only when you need Node-only APIs or unsupported packages.
  • Files with "use node" should contain actions only.

Detailed patterns: references/03-functions-and-safety.md

Workflow 4 — Enforce validation, auth, and ownership early

For public functions:

  • define args
  • usually define returns
  • call ctx.auth.getUserIdentity() when the function is protected
  • check ownership or team membership, not just authentication
  • move repeated checks into helpers or custom wrappers once duplication starts to spread

If auth or tenant checks repeat in many functions, consider:

  • convex/lib/auth.ts helpers
  • thin wrappers/custom functions for query, mutation, or action
  • shared policy helpers for tenant/resource checks

See references/05-auth-and-access-control.md.

Workflow 5 — Respect Next.js boundaries

  • useQuery, useMutation, useAction, usePaginatedQuery, and usePreloadedQuery belong in Client Components.
  • For reactive-first pages with good first paint, use preloadQuery in a Server Component and usePreloadedQuery in a Client Component.
  • For server-only reads, use fetchQuery.
  • For Server Actions or Route Handlers, use fetchMutation or fetchAction.

Do not call React hooks from Server Components.

See references/04-nextjs-client-and-server-boundaries.md.

Workflow 6 — Treat large lists as a pagination problem

Use pagination by default when:

  • the user says “all”, “feed”, “activity”, “history”, “messages”, “notifications”, “search results”, or “infinite scroll”
  • the table can grow without a natural hard limit
  • you would otherwise reach for .collect() on a user-facing list

Pattern:

  • backend query uses .paginate(paginationOpts)
  • React client uses usePaginatedQuery

See references/06-pagination-performance-and-realtime.md.

Workflow 7 — Consider components when the feature wants isolation

A Convex component is often worth it when the feature:

  • has its own schema, functions, and internal jobs
  • should be reusable across apps
  • would otherwise pollute the root convex/ folder with tightly-coupled code

Use normal app code when the feature is small and specific to one app.

See references/07-components-migrations-and-reuse.md.

Workflow 8 — Choose the right development mode

  • On your own machine or in a local coding agent, standard npx convex dev is usually right.
  • In remote or background agents that cannot log in, use Agent Mode.
  • For isolated local-only development, use local deployments.

See references/08-local-dev-agent-mode-and-cloud-agents.md.

Workflow 9 — Validate before you stop

Run:

python {baseDir}/scripts/validate_project.py --root .

Useful flags:

python {baseDir}/scripts/validate_project.py --root . --strict
python {baseDir}/scripts/validate_project.py --root . --json

The validator checks for the common failures this skill is designed to catch:

  • missing Convex installation or generated code
  • missing provider or env wiring
  • hook usage in non-client components
  • implicit table access
  • .collect() or .filter() smells in queries
  • missing validators on Convex functions
  • risky "use node" file mixes
  • scheduler calls aimed at public functions
  • missing TypeScript strictness or missing Convex ESLint plugin

Workflow 10 — Deploy cleanly

During normal development, keep using:

npx convex dev

For production or CI:

npx convex deploy

For Vercel builds, the common pattern is:

npx convex deploy --cmd "npm run build"

See references/09-deploy-ci-and-vercel.md.

What a strong final implementation usually includes

  • updated convex/schema.ts
  • new or updated indexes
  • public functions with args and usually returns
  • auth or ownership checks where needed
  • UI wired through the generated api
  • "use client" only where it is actually needed
  • paginated lists instead of unbounded collects
  • a note about required env vars
  • commands the user should run to verify the change

Response shape to prefer when making code changes

  1. State the files to add or edit.
  2. Explain the architectural choice in one sentence.
  3. Apply the code changes.
  4. Run the validator or describe the exact checks to run.
  5. Call out any follow-up env vars, auth setup, deploy steps, or migration concerns.

Reference map

平台分布

Codex

33.8%
按下载量换算118

Claude

32.25%
按下载量换算113

Cursor

16.83%
按下载量换算59

Gemini CLI

9.28%
按下载量换算32

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills