velt-expert agent persona, and two MCP servers — so it can scaffold, debug, and extend Velt features with accurate, up-to-date patterns.
When to Use AI Plugins
- You are building with Velt in Cursor or Claude Code and want your AI agent to have deep Velt SDK knowledge
- You want slash-command skills like
/install-velt,/add-comments, or/velt-helpavailable in your editor - You want always-on rules that prevent common Velt integration mistakes (e.g., incorrect
VeltProviderplacement, missingsetDocuments) - You want the
velt-expertagent persona for architecture and integration guidance
AI plugins bundle MCP servers, skills, rules, and an agent into a single installable package. If you only need one of these:
- MCP servers only: See the MCP Installer
- Skills only (for any AI agent): See Agent Skills
- No AI agent: See the CLI
Prerequisites
- Node.js 18+
- Cursor or Claude Code with plugin support
- A Velt API key
Quickstart
- Cursor
- Claude Code
/velt-help in your editor’s AI chat. The agent should respond using Velt-specific knowledge.
What’s Included
The plugin bundles four types of resources:| Resource | Count | Description |
|---|---|---|
| Skills | 8 | Slash commands for common Velt tasks |
| Rules | 6 | Embedded best practices (3 always-on, 3 glob-triggered) |
| Agent | 1 | velt-expert persona for architecture guidance |
| MCP Servers | 2 | velt-installer (guided setup) and velt-docs (documentation search) |
Available Skills
| Skill | Description | MCP Tool Used |
|---|---|---|
/install-velt | Full guided Velt SDK installation | install_velt_interactive |
/add-comments | Add comments (freestyle, popover, text, stream, page, editor) | install_velt_interactive |
/add-crdt | Add CRDT collaborative editing (Tiptap, BlockNote, CodeMirror, ReactFlow) | install_velt_interactive |
/add-notifications | Add in-app notifications, email, webhooks | install_velt_interactive |
/add-presence | Add real-time user presence indicators | install_velt_interactive |
/add-cursors | Add live cursor tracking | install_velt_interactive |
/screenshot | Capture app screenshot for visual reference | take_project_screenshot |
/velt-help | Answer questions about the Velt SDK | velt-docs MCP |
Embedded Rules
The plugin includes 6 rules distilled from 105 agent-skills rules. Three are always active; three activate when your AI agent works on matching files.| Rule | Covers | Activation |
|---|---|---|
velt-core-setup | Installation, VeltProvider, API key, domain safelist | Always on |
velt-auth-patterns | User object, authProvider, JWT, auth provider mapping | Always on |
velt-document-identity | setDocuments, document ID strategies, anti-patterns | Always on |
velt-comments-patterns | All comment modes, component placement, editor integration | Glob-triggered |
velt-crdt-patterns | CRDT stores, Tiptap integration, history disable | Glob-triggered |
velt-notifications-patterns | Setup, panel config, hooks, email, webhooks | Glob-triggered |
How It Works
The plugin follows a three-tier priority chain when answering questions or generating code:- Embedded rules (always loaded) — distilled best practices that cover the most common mistakes
- Reference agent-skills (vendored snapshot) — full detailed patterns with code examples from the agent-skills repository
- velt-docs MCP (live query) — fetches the latest API details or topics not covered by the first two tiers
Claude Code Implementation
The Claude Code plugin lives atpackages/claude-velt/ and follows the Claude Code plugin specification.
Plugin Structure
Plugin Manifest
The manifest at.claude-plugin/plugin.json registers the plugin with Claude Code:
MCP Server Configuration
The.mcp.json file configures two MCP servers that Claude Code connects to automatically:
velt-installer— runs locally vianpx, exposesinstall_velt_interactive,take_project_screenshot, anddetect_comment_placementtoolsvelt-docs— connects to the remote Velt docs API over HTTP for live documentation queries
Agent Persona
Thevelt-expert agent at agents/velt-expert.md is a Velt SDK specialist. It uses frontmatter to register with Claude Code:
VeltProvidergoes inpage.tsx, notlayout.tsx(Next.js App Router)- All files importing
@veltdev/reactneed"use client"directive - Authenticate users before setting documents
setDocumentsin a child component, never inVeltProvider’s component- For Tiptap CRDT: always disable history (
StarterKit.configure({ history: false }))
Combined Rules Guide
Unlike Cursor (which uses individual.mdc rule files with alwaysApply and glob triggers), the Claude Code plugin combines all 6 rules into a single guides/velt-rules.md file. This guide covers:
- Core setup —
VeltProvider, API key, domain safelist - Authentication — user object,
authProvider, JWT, provider mapping - Document identity —
setDocuments, ID strategies, anti-patterns - Comments — all modes (freestyle, popover, text, stream, page, editor-integrated)
- CRDT — store types, Tiptap integration, history disable
- Notifications — panel config, hooks, email via SendGrid, webhooks
SKILL.md includes a footer that references this guide:
Skill Format
Each Claude Code skill usesdescription frontmatter (Cursor uses both name and description):
Marketplace Wrapper
For distribution through the Claude Code marketplace, a wrapper exists atpackages/claude-marketplace/:
marketplace.json registers the plugin collection:
Differences from Cursor Plugin
| Aspect | Cursor (cursor-velt) | Claude Code (claude-velt) |
|---|---|---|
| Manifest | .cursor-plugin/plugin.json with displayName, logo, category, tags, skills, rules, agents, mcpServers fields | .claude-plugin/plugin.json with simpler schema (no displayName, logo, or path references) |
| Rules | 6 individual .mdc files with alwaysApply / glob frontmatter | Single guides/velt-rules.md combining all 6 rules |
| MCP config | mcp.json (top-level file) | .mcp.json (dotfile), velt-docs uses "type": "http" |
| Skill frontmatter | name + description | description only |
| Agent footer | No rules reference footer | Appends guides/velt-rules.md reference to agent and all skills |
| Logo | assets/logo.svg included | Not included |
| Marketplace | Direct plugin registration | Separate claude-marketplace/ wrapper with marketplace.json |
Contributing
If you are contributing to the plugin itself, the repository uses a shared-source architecture. All canonical content lives inpackages/shared/ and is built into platform-specific outputs.
Build Workflow
Sync Options
By default,npm run sync looks for the agent-skills repository at ../agent-skills. To override:
What the Build Does
- Adds platform-specific frontmatter to skills and agents
- Converts shared rules to
.mdcfiles (Cursor) or a combinedguides/velt-rules.md(Claude Code) - Copies the vendored agent-skills reference into both plugins
- Generates the Claude Code marketplace wrapper
Validation Checks
npm run validate verifies:
- All 8 skills present in both plugins
- Both MCP servers configured
- Agent persona present
- JSON manifests valid and free of path traversal
- Reference agent-skills present
Troubleshooting
Plugin not loading after installation
Restart your editor after adding the plugin path. Verify the plugin directory contains a.cursor-plugin/plugin.json (Cursor) or .claude-plugin/plugin.json (Claude Code) manifest file.
Skills not appearing
Confirm the plugin directory points to the correct built output (packages/cursor-velt or packages/claude-velt), not the root repository or packages/shared.
Stale rules or skills
If you updated the shared source, re-run the build:MCP servers not connecting
The plugin configures two MCP servers automatically. If they fail to connect, verify thatnpx -y @velt-js/mcp-installer runs successfully in your terminal:
https://docs.velt.dev/mcp is reachable from your network.
Claude Code: guides/velt-rules.md not found
Ensure you are pointing at packages/claude-velt, not packages/cursor-velt. The Claude Code plugin uses a combined rules guide at guides/velt-rules.md, while Cursor uses individual .mdc files in rules/.
Next Steps
- MCP Installer: AI-assisted Velt installation through MCP (without the full plugin)
- Agent Skills: Standalone skill packages for any AI coding agent
- CLI: Terminal-based Velt setup without an AI agent
- Quickstart: Manual step-by-step Velt setup
- Key Concepts: Understand documents, locations, users, and access control

