agentleFS
TsuzatTsuzat/Edra/.agents/skills/tiptap/SKILL.md

tiptap

Skill675 starsChanged 4 months agoMITView on GitHub

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.

4 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 1

    1. AkaraChen/luna★ 4100% same

    Edited · 1

    1. fjrevoredo/mini-diarium★ 31891% same

    Wrote their own version · 2

    1. ueberdosis/tiptap★ 39ksame name
    2. ragna-ai/ragna-studio★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 7 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the workspace already has a reference folder with other repositories, clone them there.

    line 28
  2. Distinctive:

    Before doing any task that involves the Tiptap editor:

    line 34
  3. Distinctive:

    Use the latest stable version of Tiptap 3.

    line 43
  4. Very specific:

    All packages that start with @tiptap/ must have the same version number.

    line 44
  5. Distinctive:

    When integrating Tiptap for the first time, read the corresponding installation guide in tiptap-docs.

    line 45
  6. Very specific:

    When server-side rendering (e.g.

    line 46
  7. Very specific:

    Prefer using the React Composable API.

    line 50
  8. Distinctive:

    When the user asks you to implement one of these features, read the corresponding section in tiptap-docs for guidance.

    line 54
  9. Distinctive:

    Use Tiptap Cloud to implement real-time collaboration.

    line 60
  10. Distinctive:

    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 …

    line 85
  11. Very specific:

    Run AI workflows that edit rich text documents on the server.

    line 116

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
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. 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.

Initial setup

Clone the tiptap and tiptap-docs repositories so you can search the source code and documentation.

If the workspace already has a reference folder with other repositories, clone them there.

Otherwise, clone the repositories in a new .reference folder. The reference folder should be git-ignored.

Referencing the Tiptap documentation

Before doing any task that involves the Tiptap editor:

  1. Pull the latest changes of the main branch in the local tiptap and tiptap-docs repositories
  2. Research the documentation and source code to see how to implement it

Best Practices

General

  • Use the latest stable version of Tiptap 3.
  • All packages that start with @tiptap/ must have the same version number.
  • When integrating Tiptap for the first time, read the corresponding installation guide in tiptap-docs.
  • 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 tiptap-docs.

React

  • Prefer using the React Composable API. See tiptap-docs/src/content/guides/react-composable-api.mdx

Implementing Editor Features

When the user asks you to implement one of these features, read the corresponding section in tiptap-docs for guidance.

Real-time collaboration

Multiple users editing a document simultaneously. See tiptap-docs/src/content/collaboration/.

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 tiptap-docs/src/content/comments/.

Tracked changes

Track, accept, and reject document edits. See tiptap-docs/src/content/tracked-changes/.

Import/Export

Convert documents to and from DOCX, PDF, Markdown, and other formats. See tiptap-docs/src/content/conversion/.

AI content generation

Generate text content into the document using AI. See tiptap-docs/src/content/content-ai/capabilities/ai-toolkit/workflows/insert-content.mdx.

AI agent document editing

Give an AI agent the ability to edit Tiptap documents. See tiptap-docs/src/content/content-ai/capabilities/ai-toolkit/.

AI review and proofreading

Review, proofread, and suggest style improvements. See tiptap-docs/src/content/content-ai/capabilities/ai-toolkit/workflows/proofreader.mdx.

AI server-side processing

Run AI workflows that edit rich text documents on the server. See tiptap-docs/src/content/content-ai/capabilities/server-ai-toolkit/.

Version history

Save and restore document snapshots. See tiptap-docs/src/content/collaboration/documents/snapshot.mdx.

Snapshot compare

Highlight differences between document versions. See tiptap-docs/src/content/collaboration/documents/snapshot-compare.mdx.

Pages

Print-ready page layout with headers, footers, and page breaks. See tiptap-docs/src/content/pages/.

Pro Extensions

Some Tiptap extensions are distributed through a private npm registry. To install pro packages, see tiptap-docs/src/content/guides/pro-extensions.mdx for setup instructions.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.