Skip to content
Agentmart
Submit a tool

velt-comments-best-practices

Velt Comments implementation patterns and best practices for React, Next.js, and web applications.

Skill by velt

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/velt-js-velt-comments-best-practices

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Velt Comments implementation patterns and best practices for React, Next.js, and web applications. Use when adding collaborative commenting features, comment modes (Freestyle, Popover, Stream, Text, Page), rich text editor comments (TipTap, SlateJS, Lexical), media player comments, chart comments, comments sidebar setup and customization (embed mode, floating mode, focused thread, V2 sidebar), sidebar filtering with accessModes for privacy, isAnnotationPrivate() visibility routing, CommentDialogActionService.isSubmitInFlight() for duplicate-submit guards, VeltCommentDialogAgentSuggestion primitives for AI suggestion accept/reject UIs, agent comment annotations via REST API (agent block with agentSource/agentId/executionId, agent-specific GET filters, suggestionAccepted/suggestionRejected client events, sourceType "agent" UI rendering), or binding Comment Bubble / Comment Dialog / Comment Tool wireframe slots via template variables (velt-data, velt-if, velt-class).

Use cases: design, frontend, backend, data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/velt-comments-best-practices

What's inside

Skill name
velt-comments-best-practices
Description
Velt Comments implementation patterns and best practices for React, Next.js, and web applications. Use when adding collaborative commenting features, comment modes (Freestyle, Popover, Stream, Text, Page), rich text editor comments (TipTap, SlateJS, Lexical), media player comments, chart comments, comments sidebar setup and customization (embed mode, floating mode, focused thread, V2 sidebar), sidebar filtering with accessModes for privacy, isAnnotationPrivate() visibility routing, CommentDialogActionService.isSubmitInFlight() for duplicate-submit guards, VeltCommentDialogAgentSuggestion primitives for AI suggestion accept/reject UIs, agent comment annotations via REST API (agent block with agentSource/agentId/executionId, agent-specific GET filters, suggestionAccepted/suggestionRejected client events, sourceType "agent" UI rendering), or binding Comment Bubble / Comment Dialog / Comment Tool wireframe slots via template variables (velt-data, velt-if, velt-class).
License
MIT
Metadata
author: velt · version: 1.4.0
Instructions
198 lines in SKILL.md · view on GitHub

Files (94)

  • AGENTS.full.md
  • AGENTS.md
  • README.md
  • SKILL.md
  • metadata.json
  • core-authentication.md · rules/react/core/
  • core-document-setup.md · rules/react/core/
  • data-comment-annotations.md · rules/react/data/
  • data-filtering-grouping.md · rules/react/data/
  • debug-common-issues.md · rules/react/debug/
  • debug-verification.md · rules/react/debug/
  • mode-ace.md · rules/react/mode/
  • mode-canvas.md · rules/react/mode/
  • mode-chart-chartjs.md · rules/react/mode/
  • mode-chart-custom.md · rules/react/mode/
  • mode-chart-highcharts.md · rules/react/mode/
  • mode-chart-nivo.md · rules/react/mode/
  • mode-codemirror-comments.md · rules/react/mode/
  • mode-lexical.md · rules/react/mode/
  • mode-plate.md · rules/react/mode/
  • mode-quill.md · rules/react/mode/
  • mode-slatejs.md · rules/react/mode/
  • mode-tiptap.md · rules/react/mode/
  • standalone-comment-pin.md · rules/react/standalone/
  • _sections.md · rules/shared/
  • _template.md · rules/shared/
  • README.md · rules/shared/attach/
  • attach-download-control.md · rules/shared/attach/
  • config-attachments.md · rules/shared/config/
  • config-component-props.md · rules/shared/config/
  • config-dom-controls.md · rules/shared/config/
  • config-mentions-contacts.md · rules/shared/config/
  • config-moderation.md · rules/shared/config/
  • config-navigation.md · rules/shared/config/
  • config-reactions.md · rules/shared/config/
  • config-sidebar-access-modes.md · rules/shared/config/
  • config-sidebar-management.md · rules/shared/config/
  • config-status-priority.md · rules/shared/config/
  • config-text-formatting.md · rules/shared/config/
  • config-ui-behavior.md · rules/shared/config/
  • core-provider-setup.md · rules/shared/core/
  • data-activity-action-types.md · rules/shared/data/
  • data-agent-fields-query.md · rules/shared/data/
  • data-annotation-crud.md · rules/shared/data/
  • data-comment-annotation-data-provider.md · rules/shared/data/
  • data-comment-crud.md · rules/shared/data/
  • data-composer-api.md · rules/shared/data/
  • data-context-metadata.md · rules/shared/data/
  • data-read-status.md · rules/shared/data/
  • data-trigger-activities.md · rules/shared/data/
  • data-types-reference.md · rules/shared/data/
  • events-comment-lifecycle.md · rules/shared/events/
  • mode-freestyle.md · rules/shared/mode/
  • mode-inline-comments.md · rules/shared/mode/
  • mode-lottie-player.md · rules/shared/mode/
  • mode-page.md · rules/shared/mode/
  • mode-popover.md · rules/shared/mode/
  • mode-stream.md · rules/shared/mode/
  • mode-text.md · rules/shared/mode/
  • mode-video-player-custom.md · rules/shared/mode/
  • …and 34 more

SKILL.md (first lines)

# Velt Comments Best Practices

Comprehensive implementation guide for Velt's collaborative comments feature in React and Next.js applications. Contains 87 rules across 13 categories, prioritized by impact to guide automated code generation and integration patterns.

## When to Apply

Reference these guidelines when:
- Adding collaborative commenting to a React/Next.js application
- Implementing any Velt comment mode (Freestyle, Popover, Stream, Text, Page, Inline)
- Integrating comments with rich text editors (TipTap, SlateJS, Lexical)
- Adding comments to media players (Video, Lottie animations)
- Adding comments to charts (Highcharts, ChartJS, Nivo)
- Building custom comment interfaces with standalone components

## Rule Categories by Priority

| Priority | Category | Impact | Prefix |
|----------|----------|--------|--------|
| 1 | Core Setup | CRITICAL | `core-` |
| 2 | Comment Modes | HIGH | `mode-` |
| 3 | Standalone Components | MEDIUM-HIGH | `standalone-` |
| 4 | Comment Surfaces | MEDIUM-HIGH | `surface-` |
| 5 | UI Customization | MEDIUM | `ui-` |
| 6 | Data Model | MEDIUM | `data-` |
| 7 | Debugging & Testing | LOW-MEDIUM | `debug-` |
| 8 | Moderation & Permissions | LOW | `permissions-` |
| 9 | Attachments & Reactions | MEDIUM | `attach-` |
| 10 | Wireframe Variables | MEDIUM | `wireframe-variables-` |

## Quick Reference

### 1. Core Setup (CRITICAL)

- `core-provider-setup` - Initialize VeltProvider with API key
- `core-authentication` - Authenticate users before using comments
- `core-document-setup` - Configure document context for comments

### 2. Comment Modes (HIGH)

- `mode-freestyle` - Pin comments anywhere on page
- `mode-popover` - Google Sheets-style cell comments
- `mode-stream` - Google Docs-style sidebar stream
- `mode-text` - Text highlight comments
- `mode-page` - Page-level comments via sidebar
- `mode-inline-comments` - Traditional inline thread style
- `mode-tiptap` - TipTap editor integration
- `mode-slatejs` - SlateJS editor integration
- `mode-lexical` - Lexical editor integration
- `mode-canvas` - Canvas/drawing comments
- `mode-lottie-player` - Lottie animation frame comments
- `mode-video-player-prebuilt` - Velt prebuilt video player
- `mode-video-player-custom` - Custom video player integration
- `mode-chart-highcharts` - Highcharts data point comments
- `mode-chart-chartjs` - ChartJS data point comments
- `mode-chart-nivo` - Nivo charts data point comments
- `mode-chart-custom` - Custom chart integration

### 3. Standalone Components (MEDIUM-HIGH)

- `standalone-comment-pin` - Manual comment pin positioning
- `standalone-comment-thread` - Render comment threads
- `standalone-comment-composer` - Add comments programmatically

### 4. Comment Surfaces (MEDIUM-HIGH)

- `surface-sidebar` - Comments sidebar component
- `surface-sidebar-setup` - Sidebar setup, display modes (embed/floating/page/focused-thread/fullscreen), filterConfig, groupConfig, sortOrder, V2 sidebar, navigation events
- `surface-sidebar-v2` - Primitive-architecture V2 sidebar with 27+ composable primitives, unified filter model, and focused-thread view
- `surface-sidebar-button` - Toggle sidebar button

### 5. UI Customization (MEDIUM)

- `ui-comment-dialog` - Customize comment dialog
- `ui-comment-bubble` - Customize comment bubble
- `ui-wireframes` - Use wireframe components
- `ui-autocomplete-primitives` - Use standalone autocomplete primitive components to build custom autocomplete UIs without requiring the full VeltAutocomplete panel
- `ui-agent-suggestion-primitives` - 21 VeltCommentDialogAgentSuggestion* primitives for custom AI suggestion accept/reject UIs, resolution banners, header menus, and footer navigation
- `ui-v2-primitives` - Set defaultCondition={false} on V2 primitive sub-components to bypass SDK default show/hide logic when overriding sections in wireframe compositions

### 6. Data Model (MEDIUM)

- `data-context-metadata` - Add custom metadata
- `data-comment-annotations` - Work with annotations
- `data-filtering-grouping` - Filter and group comments
- `data-activity-action-types` - Use CommentActivityActionTypes constant for type-safe comment activity filtering instead of raw strings
- `data-trigger-activities` - Set triggerActivities on CommentData to auto-create activity records via POST /v2/commentannotations/add
- `data-comment-annotation-data-provider` - Use config-based URL endpoints on CommentAnnotationDataProvider without placeholder callbacks; additionalFields replicates fields to resolver while retaining in Velt storage; fieldsToRemove strips fields from Velt's DB for PII removal
- `data-agent-fields-query` - Use agentFields on CommentRequestQuery to filter getCommentAnnotationCount() to agent-tagged annotations; unread count equals total count when agentFields is set

### 7. Debugging & Testing (LOW-MEDIUM)

- `debug-common-issues` - Common issues and solutions
- `debug-verification` - Verification checklist

### 8. Moderation & Permissions (LOW)

- `permissions-private-mode` - Control global comment visibility with enablePrivateMode/disablePrivateMode and update per-annotation visibility with updateVisibility
- `permissions-comment-saved-event` - Subscribe to the commentSaved event for reliable post-persist side-effects (webhooks, analytics, external sync)
- `permissions-visibility-option-dropdown` - Enable the visibility dropdown in the comment composer to let users select public or private before submitting, and subscribe to visibilityOptionClicked events
- `permissions-comment-save-triggered-event` - Use commentSaveTriggered for immediate UI feedback (spinners, disabled states) on save button click — before the async database write completes
- `permissions-visibility-routing` - Use isAnnotationPrivate() utility for unified privacy checks across legacy iam.accessMode and new visibilityConfig.type (restricted, organizationPrivate)
- `permissions-submit-in-flight` - Use CommentDialogActionService.isSubmitInFlight(dialogInstanceId) to guard against duplicate submits in custom-actions sidebar hosts
- `permissions-comment-interaction-events` - Prefer past-tense event aliases commentToolClicked and sidebarButtonClicked over the present-tense originals in new code
- `permissions-anonymous-user-data-provider` - Register setAnonymousUserDataProvider() to resolve tagged contact emails to userIds at comment save time

### 9. Attachments & Reactions (MEDIUM)

- `attach-download-control` - Control attachment download behavior and intercept clicks

### 10. Configuration (MEDIUM)

- `config-mentions-contacts` - @Mentions, contacts, user assignment, autocomplete
- `config-status-priority` - Custom status and priority levels, resolve/update workflows
- `config-reactions` - Emoji reactions — enable, customize, add/delete/toggle
- `config-attachments` - File attachments — enable, upload, delete, allowed types
- `config-text-formatting` - Rich text formatting options in composer
- `config-navigation` - Navigation, deep linking, scroll-to-comment, shareable links
- `config-dom-controls` - Restrict comment placement to specific DOM elements
- `config-sidebar-management` - Programmatic sidebar data, filtering, and configuration

From velt-js/velt-plugin-claude, MIT.

More from velt-js/velt-plugin-claude

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jun 9, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.4.0
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from velt

Cite this page

velt-comments-best-practices skill. Agent Mart. https://agentmart.dev/skills/velt-js-velt-comments-best-practices (last updated 2026-10-24)