tiptap-editor — community tiptap-editor, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for AI Agents like Cursor, Windsurf, and Claude Code requiring advanced markdown editing capabilities with Tiptap Editor API An AI friendly markdown editor.

xiaolai xiaolai
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The tiptap-editor skill by xiaolai is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Ideal for AI Agents like Cursor, Windsurf, and Claude Code requiring advanced markdown editing capabilities with Tiptap Editor API

Core Value

Empowers agents to create and edit formatted content using Tiptap's high-level API for format commands, block type changes, list operations, and table operations via the Tiptap table extension, all while leveraging ProseMirror for direct content manipulation

Capabilities Granted for tiptap-editor

Formatting text with bold, italic, and underline commands
Converting content between block types like headings and paragraphs
Creating and managing lists and tables within markdown documents

! Prerequisites & Limits

  • Requires understanding of Tiptap Editor API patterns
  • ProseMirror access needed for low-level content manipulation
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

tiptap-editor

Install tiptap-editor, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Tiptap Editor API Patterns

Overview

This skill documents proper Tiptap API usage patterns for vmark development. It helps distinguish when to use Tiptap's high-level API vs direct ProseMirror access.

When to Use Tiptap API

Always prefer Tiptap API for:

  • Format commands (bold, italic, underline, etc.)
  • Block type changes (heading, paragraph, code block)
  • List operations (bullet, ordered, toggle, indent/outdent)
  • Table operations via Tiptap table extension
  • Content insertion and replacement
  • Editor state queries (isActive, getAttributes)

Tiptap patterns to use:

typescript
1// Direct commands 2editor.commands.toggleBold() 3editor.commands.setHeading({ level: 2 }) 4editor.commands.setContent(doc, { emitUpdate: false }) 5 6// Chained commands (for multiple operations) 7editor.chain().focus().setHeading({ level: 2 }).run() 8editor.chain().focus().toggleMark("underline").run() 9 10// State queries 11editor.isActive("blockquote") 12editor.isActive("heading", { level: 2 }) 13editor.getAttributes("link")

When Direct ProseMirror is Appropriate

Use ProseMirror directly for:

  • Markdown conversion layer (proseMirrorToMdast.ts, mdastToProseMirror.ts)
  • Multi-cursor/selection subclassing (MultiSelection.ts)
  • Custom node views
  • Low-level transaction manipulation
  • Schema-level operations

Known Issues in vmark

1. cursorHandlers.ts Block Boundary Issue

src/hooks/mcpBridge/cursorHandlers.ts uses doc.textContent which flattens the document and loses block boundaries. The correct approach is to use $pos helpers:

typescript
1// WRONG - loses block structure 2const text = doc.textContent; 3 4// RIGHT - respects block boundaries 5const $pos = doc.resolve(from); 6const currentNode = $pos.parent; 7const blockStart = $pos.before($pos.depth); 8const blockEnd = $pos.after($pos.depth);

2. Cursor Sync Drift After WYSIWYG Edits

sourceLine attributes are only set on initial parse. After WYSIWYG edits that add/remove blocks, line numbers no longer match the source. This is a known limitation.

3. HtmlNodeView.ts Store Issue

src/plugins/markdownArtifacts/HtmlNodeView.ts writes cursor info to wrong store.

References

  • references/patterns.md - Detailed API patterns and $pos usage
  • references/examples.md - Real code examples from vmark codebase

Workflow

  1. Identify operation type (format, block, selection, traversal)
  2. Check if Tiptap has a built-in command for it
  3. Use editor.commands.xxx() for single operations
  4. Use editor.chain().focus().xxx().run() when focus is needed or chaining
  5. For node traversal, use doc.resolve(pos) to get $pos helpers
  6. For state queries, use editor.isActive() or editor.getAttributes()

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is tiptap-editor?

Ideal for AI Agents like Cursor, Windsurf, and Claude Code requiring advanced markdown editing capabilities with Tiptap Editor API An AI friendly markdown editor.

How do I install tiptap-editor?

Run the command: npx killer-skills add xiaolai/vmark/tiptap-editor. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for tiptap-editor?

Key use cases include: Formatting text with bold, italic, and underline commands, Converting content between block types like headings and paragraphs, Creating and managing lists and tables within markdown documents.

Which IDEs are compatible with tiptap-editor?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for tiptap-editor?

Requires understanding of Tiptap Editor API patterns. ProseMirror access needed for low-level content manipulation.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add xiaolai/vmark/tiptap-editor. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use tiptap-editor immediately in the current project.

Related Skills

Looking for an alternative to tiptap-editor or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI