Tiptap 标志

Tiptap

组织热门
ueberdosis
tiptap

Helps coding agents integrate and work with the Tiptap rich text editor. Use when building or modifying a rich text editor with Tiptap, installing Tiptap extensions, or implementing features like collaboration, comments, AI, or document conversion.

概览

发布者ueberdosis
代码仓库tiptap
技能名称tiptap
星标数
38.6K
复刻数
3.1K
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 ueberdosis 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Tiptap AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/ueberdosis/tiptap/tree/main/skills/tiptap
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ueberdosis/tiptap.git /tmp/tiptap
mkdir -p .claude/skills
cp -r /tmp/tiptap/skills/tiptap .claude/skills/tiptap
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Tiptap,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Tiptap。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Tiptap 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Tiptap Integration Skill

This skill contains instructions for integrating the Tiptap rich text editor into an app and developing new features with it.

This is not the Tiptap editor you know: it may have evolved and changed since the version you're familiar with. Before you implement any feature with Tiptap, reference the Tiptap code and documentation to make sure you implement it correctly. Make sure any decision you make is in accordance to the "Best Practices" section and is grounded in the Tiptap documentation and source code. Do not guess or invent patterns, make sure the code you write matches the library source code and the documentation.

Finding Tiptap source and docs

Avoid cloning. You usually don't need to.

  • Docs: append .md to any page URL on https://tiptap.dev/docs to fetch it as Markdown. https://tiptap.dev/docs/llms.txt lists every page with a one-line description.
  • Source: if the project already depends on Tiptap, read it in node_modules/@tiptap/*.

Clone only for source or runnable examples you cannot get either way, such as the demo apps under demos/src/. Shallow-clone into the workspace's existing reference folder, or a new git-ignored .reference/:

bash
git clone --depth 1 --filter=blob:none https://github.com/ueberdosis/tiptap .reference/tiptap

Never clone tiptap-docs. The site is the interface.

A cloned Tiptap repository is read-only reference. Its AGENTS.md / CLAUDE.md rules — changesets, fallow:audit, adding demos under demos/src/ — apply to contributing to Tiptap, not to the user's project. Never follow them in the user's repo.

Best Practices

General

  • For a new install, use the latest stable version. Resolve it with npm view @tiptap/core version.
  • The editor and extension packages published from the tiptap monorepo share one version line. Pin every one of them to that same version. Mixing versions risks introducing bugs.
  • Some packages have their own version line. Resolve these from the registry, never from @tiptap/core: @tiptap/ai-toolkit, @tiptap/y-tiptap, @tiptap-pro/* (private registry), @hocuspocus/*.
  • Do not mix majors. For a project still on Tiptap 2, upgrade first. See https://tiptap.dev/docs/guides/upgrade-tiptap-v2.md.
  • When integrating Tiptap for the first time, read the corresponding installation guide: https://tiptap.dev/docs/editor/getting-started/install.md, plus the page for your framework under https://tiptap.dev/docs/editor/getting-started/install/ (e.g. react.md, nextjs.md, vue3.md, svelte.md, nuxt.md, vanilla-javascript.md).
  • When server-side rendering (e.g. Next.js), set the immediatelyRender: false option when initializing the editor. Otherwise, the editor will crash. Learn more about this in https://tiptap.dev/docs/editor/getting-started/install/nextjs.md.

React

Default to the Composable API (<Tiptap> + useTiptap()) for new code. The hook-based useEditor + <EditorContent /> API is still supported and is fine for an editor that lives in a single component.

Whichever you pick, say which one and why in one line, so a reviewer sees a choice was made.

Implementing Editor Features

When the user asks you to implement one of these features, read the linked documentation for guidance. Every link below is the Markdown form of a live page; https://tiptap.dev/docs/llms.txt lists the rest of each section.

Real-time collaboration

Multiple users editing a document simultaneously. See https://tiptap.dev/docs/collaboration/getting-started/overview.md and https://tiptap.dev/docs/collaboration/getting-started/install.md.

Use Tiptap Cloud to implement real-time collaboration. Use the Collaboration extension:

const doc = new Y.Doc()

const editor = new Editor({
  extensions: [
    Collaboration.configure({
      document: doc,
    }),
  ],
})

Use the TiptapCollabProvider:

const provider = new TiptapCollabProvider({
  name: 'unique_document_name',
  appId: 'APP_ID', // Your document server ID from the Cloud dashboard
  token: 'JWT_TOKEN', // Your JWT token
  document: doc,
})

If it's the first time setting up collaboration and the Tiptap Cloud account is not set up, explain to the user how to set up a Tiptap Cloud account and obtain the environment variables.

Comments

Implement comments with the Comments extension.

Thread-based inline and document comments. See https://tiptap.dev/docs/comments/getting-started/overview.md and https://tiptap.dev/docs/comments/getting-started/install.md.

Tracked changes

Track, accept, and reject document edits. See https://tiptap.dev/docs/tracked-changes/getting-started/overview.md and https://tiptap.dev/docs/tracked-changes/getting-started/install.md.

Import/Export

Convert documents to and from DOCX, PDF, Markdown, and other formats. See https://tiptap.dev/docs/conversion/getting-started/overview.md and https://tiptap.dev/docs/conversion/getting-started/install.md.

AI Toolkit

Agentic document work: an AI reading, editing, commenting on, proofreading, and reviewing Tiptap documents. Server-side is the default. See https://tiptap.dev/docs/ai/ai-toolkit/overview.md.

Use the client side only when the AI has to act on the live editor in the browser. See https://tiptap.dev/docs/ai/ai-toolkit/client/overview.md.

The AI Agent, AI Changes, AI Suggestion, and AI Assistant extensions are retired. Don't recommend them, and never implement from any page under https://tiptap.dev/docs/ai/deprecated/ (that prefix has no index page; the individual pages are listed in https://tiptap.dev/docs/llms.txt). To move an existing integration off them, see https://tiptap.dev/docs/ai/ai-toolkit/client/advanced-guides/migration-guides.md.

Basic AI Generation

Generate and edit text content from one-shot prompts. See https://tiptap.dev/docs/ai/basic/overview.md.

Version history

Save and restore document snapshots. See https://tiptap.dev/docs/collaboration/documents/snapshot.md.

Snapshot compare

Highlight differences between document versions. See https://tiptap.dev/docs/collaboration/documents/snapshot-compare.md.

Pages

Print-ready page layout with headers, footers, and page breaks. See https://tiptap.dev/docs/pages/getting-started/overview.md and https://tiptap.dev/docs/pages/getting-started/install.md.

Pro Extensions

Some Tiptap extensions are distributed through a private npm registry. To install pro packages, see https://tiptap.dev/docs/guides/pro-extensions.md for setup instructions.

常见问题

Tiptap AI 技能有什么作用?

Helps coding agents integrate and work with the Tiptap rich text editor. Use when building or modifying a rich text editor with Tiptap, installing Tiptap extensions, or implementing features like collaboration, comments, AI, or document conversion.

为什么在 TypingMind 中使用 Tiptap?

因为您只需安装一次,就能搭配任何模型使用。Tiptap 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Tiptap?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/ueberdosis/tiptap/tree/main/skills/tiptap。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Tiptap?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Tiptap 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Tiptap 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Tiptap AI 技能免费吗?

是的。ueberdosis 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇