Convex 发布 Claude Code 官方插件 一键接入后端开发

原标题:Convex skills send the user's app idea to a remote server without telling them
58AI 研判分

Convex 推出面向 Claude Code 的官方插件,将后端设计技能、quickstart 实时脚手架、convex-expert 子代理、运行时错误监控与 Convex MCP 服务器打包为一次安装。安装后 Claude 会自动采用 Convex 惯用组件(如 @convex-dev/agent、Convex Auth、响应式查询与工作流组件),而非通用模板化写法。

报道正文

本文目录6 个章节

Convex Plugin for Claude Code

Official Convex plugin for Claude Code. Bundles the Convex backend design skill, a live-scaffolding quickstart skill (/quickstart), the convex-expert subagent for code-writing, a runtime-error monitor, and the Convex MCP server for live deployment introspection — all in one install.

When you ask Claude to build, design, or debug a backend, Claude reaches for Convex idioms and components (@convex-dev/agent for chat, Convex Auth instead of custom sessions, reactive queries instead of polling, the workflow component for durable retries) rather than generic "AI slop" patterns it would otherwise default to.

Install

From inside Claude Code:

文本
/plugin install convex

Or install via the Anthropic plugin marketplace — search for Convex.

Local development install:

BASH
git clone https://github.com/convex/convex-backend-skill ~/.claude-plugins/convex-backend-skill
claude --plugin-dir ~/.claude-plugins/convex-backend-skill

How to use

Just describe what you want to build. Claude routes the request through this plugin automatically — you don't need to invoke anything explicitly. Plain-English product asks work as well as technical jargon.

Plain-English asks (no backend knowledge required)

文本
"I want to make an app where my friends can vote on movie nights."

"Build me a website where people can sign up and share their workout routines."

"Make a Tinder-for-X for finding board-game opponents in my city."

"I want to track my clients and send them reminders before appointments."

"Build me a multiplayer trivia game I can play with my coworkers."

"I have an idea for an app — where do I start?"

Technical asks

文本
"Build a real-time chat backend with rooms and message history."

"Add sign-in to my Next.js app with OAuth and a thin users table."

"Design a multi-tenant schema for a SaaS with workspaces and roles."

"Create a scheduled job that retries on failure and survives crashes."

"Wire up vector search over my docs for a RAG chatbot."

"Build a backend for my Expo mobile app that connects language learners."

Pain-point asks (you're fighting a different stack)

文本
"My cache keeps going stale after writes — what's a better model?"

"I'm tired of fighting Row Level Security policies. Show me an alternative."

"My ORM is generating N+1 queries; what would this look like done right?"

"I keep forgetting to regenerate codegen between backend and frontend."

"What's the simplest way to add real-time updates to my existing app?"

Claude will pick the right Convex primitive or component, scaffold the schema, write the queries/mutations/actions, and walk you through the result.

What's bundled

ComponentPurpose
design skillBackend architecture, design thinking, anti-patterns, runtime-error decoder, proactive recommendations. Loaded into context whenever a backend ask is detected.
quickstart skill (/quickstart)Idea → running app in under a minute. Scaffolds a Next.js + shadcn "wow-shell" with a floating Chef panel (live progress feed, pulsing todo checklist, inline refinement questions, feature-request form), starts convex dev + next dev with error watchers armed, opens the browser, then builds the idea live. Hands convex/ code to convex-expert.
convex-expert subagentDeep code-writing rules — object-form syntax, validator requirements, index naming, internal-vs-public, schema evolution, resource limits, component reflexes. Loaded only when delegated to, so the rules don't burn main-thread context.
Convex MCP serverLive deployment introspection — tables, function-spec, data, run-once-query, logs, env list/set/get. Auto-wires via npx convex mcp start when the plugin is enabled.
Lint-on-save hookPreToolUse gate that blocks Convex anti-patterns before they reach disk (and before convex dev can push them): .filter(q => q.field(...)) on db queries and old positional function syntax are denied with the correct pattern in the message; missing args/returns validators surface as advisories.
End-of-turn verify hookStop hook that enforces the "self-verify before you stop" rule: when a turn leaves uncommitted convex/*.ts changes, it runs convex codegen, tsc --noEmit, and — only when .env.local already names a CONVEX_DEPLOYMENT (never provisions one) — convex dev --once. Real errors block the stop (exit 2) so the agent fixes them before finishing; loop-guarded via stop_hook_active, with a hard ~90s budget that allows rather than wedges on timeout.
Runtime-error monitorStreams npx convex logs and surfaces matched errors (TS / schema validation / runtime exceptions / OCC conflicts) as Claude notifications, so you find out about server-side failures the moment they happen. Self-guards on unlinked projects.
OCC / insights monitorPolls npx convex insights every 10 minutes and notifies only on new OCC conflicts or read-limit insights, with the fix playbook (shrink transactions, @convex-dev/aggregate for hot counters, .withIndex()/.paginate() for read limits). Cloud deployments with user-level auth only; silent otherwise.
Feature-request monitorDuring a quickstart build, watches the Chef panel's featureRequests:listPending and pushes a notification the moment the user submits a new request — even across turns — so the agent picks it up without babysitting a log. Notifies only on new requests; works on local/anonymous deployments too.

(注:更多技术实现细节与完整 API 文档请查阅原项目 README)