Логотип Document Editor

Document Editor

ОрганізаціяПопулярне
vellum-ai
document-editor

Use whenever the user wants to write or draft an article, blog post, essay, report, or any long-form content. Creates the content in a rich text editor instead of dumping it in chat, so it can be streamed, reviewed, edited, and exported.

Огляд

Видавецьvellum-ai
Репозиторійvellum-assistant
Назва навичкиdocument-editor
Зірки
1.3K
Форки
186
Файли в пакеті
12
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 12

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: vellum-ai. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Document Editor у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/vellum-ai/vellum-assistant/tree/main/assistant/src/config/bundled-skills/document-editor
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vellum-ai/vellum-assistant.git /tmp/vellum-assistant
mkdir -p .claude/skills
cp -r /tmp/vellum-assistant/assistant/src/config/bundled-skills/document-editor .claude/skills/document-editor
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Document Editor в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Document Editor, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Document Editor не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Write and edit long-form documents using the built-in rich text editor. Documents open in workspace mode with chat docked to the side. When a request is about writing prose (an article, blog post, report, essay, story, or similar), create it here rather than writing it into the chat response.

Tools

  • document_create - Opens a new document editor with an optional title and initial Markdown content. Returns a surface_id for subsequent updates. This is the entry point for any new piece of writing.
  • document_update - Updates content in an open document editor by surface_id. Supports replace (overwrite) and append (add to end) modes.
  • document_read - Reads the current content of a document by surface_id when it belongs to the current conversation, or when the current actor is the guardian/local user. Use to verify content before editing.
  • document_find - Searches a document for text or regex patterns. Returns matching lines with line numbers, match positions, and matched text.
  • document_replace_text - Targeted find-and-replace within a document. Supports literal and regex patterns (with backreferences). Optionally limit the number of replacements.
  • document_list - Lists documents. Without query, lists the current conversation's documents. With query, searches by title; guardian/local users can search across conversations, while other actors are scoped to the current conversation.
  • document_open - Opens an existing document in the editor panel by surface_id. Use this when a document exists but isn't visible in the editor — for example after the user switches devices, refreshes the page, or when the editor panel was closed. Fetches the document from storage and sends it to the client.
  • document_delete - Deletes a document by surface_id. Use to clean up unwanted documents.

Creating a new document

This is the default path when the user asks you to write something.

  1. Create the document: Call document_create with a title (inferred from the request). Call the tool immediately, not after conversational preamble. Anything you pass as initial_content is saved right then, so the first document_update must start with the next chunk rather than repeating it.
  2. Write content in Markdown: Use proper structure (# for titles, ## for sections), bold, italic, code blocks, tables, lists, blockquotes as appropriate.
  3. CRITICAL - Stream content in chunks: Call document_update MULTIPLE times, not just once. Break content into logical chunks (paragraphs, sections, or every 200-300 words). Call document_update with mode: "append" for EACH chunk separately. Each append carries ONLY that chunk: content already in the document is committed, and resending it would print it twice. When you are streaming into the document you just created, surface_id is optional: omit it and pass only content, and the update targets that document. The user experiences real-time content appearing as you write.

Recovering from a failed update

If a document_update call fails with an Invalid input error, do NOT call document_create again — that produces a duplicate for the user. The most common cause is a missing content field: resend the call with the chunk's Markdown in content. You can omit surface_id to target the document you are currently writing; pass it explicitly only when editing a different existing document.

Editing an existing document

When the user requests changes to a document:

  1. Find the surface_id from the <active_documents> context block.
  2. Use document_update with the existing surface_id — do NOT call document_create again.
  3. Choose the right editing tool:
    • document_update with mode: "append" — adding new content to the end.
    • document_update with mode: "replace" — ONLY for full rewrites where the majority of the document is changing.
    • document_find + document_replace_text — for everything else. Fixing typos, renaming terms, swapping sections, reordering content, adjusting formatting, or any edit that touches only part of the document. This is the default choice for edits. It avoids rewriting the entire document and eliminates the risk of accidentally dropping content.
  4. Do NOT use document_update with mode: "replace" for targeted edits. Rewriting the entire document to change a few words or rearrange sections is wasteful and error-prone.

Retrieving existing documents

When the user asks to see, open, or pull up a document:

  1. Check the <active_documents> block in your context — it lists all documents in this conversation with their surface_id and title.
  2. If the document is NOT in <active_documents>, call document_list with a query matching the document title. For guardian/local users, this searches across previous conversations and sessions.
  3. Once you have the surface_id, call document_open to open the editor panel. This surfaces the editor on the client and returns document metadata (surface_id, title, word_count) — not the full content. If you need the actual document text, follow up with document_read.

Never search the filesystem, conversation history, or archives to find a document. Always use document_list with a query.

If the user says they can't see a document you know exists (e.g. after switching from macOS to web, or after a page refresh), call document_open with the surface_id to re-surface the editor panel on their current client.

Find & Replace

Use document_find and document_replace_text for surgical edits that target specific text patterns without rewriting the entire document.

document_find

Search a document for literal text or regex patterns. Parameters:

  • surface_id (required) — the document to search
  • query (required) — the search string or regex pattern
  • regex (optional, default false) — treat query as a regular expression
  • case_sensitive (optional, default false) — match case exactly

Returns a list of matches with line numbers, line content, match positions, and matched text. Use this to preview what will be affected before making replacements.

document_replace_text

Targeted find-and-replace within a document. Parameters:

  • surface_id (required) — the document to modify
  • find (required) — the search string or regex pattern
  • replace (required) — the replacement string (supports $1, $2 backreferences when regex is true)
  • regex (optional, default false) — treat find as a regular expression
  • case_sensitive (optional, default false) — match case exactly
  • max_replacements (optional) — limit the number of replacements made

Returns the number of replacements made and whether the content changed.

Workflow

  1. Call document_find to preview matches and confirm the pattern is correct.
  2. Call document_replace_text to apply the changes.

Examples:

  • Fix a recurring typo: Find "recieve", replace with "receive".
  • Rename a term throughout: Find "widget" (case-insensitive), replace with "component".
  • Reformat dates with regex: Find (\d{2})/(\d{2})/(\d{4}) with regex: true, replace with $3-$1-$2 to convert MM/DD/YYYY to YYYY-MM-DD.
  • Swap or reorder sections: Use document_read to get the content, identify the sections to swap, then call document_replace_text to replace the first section with the second and vice versa. For complex rearrangements, use multiple document_replace_text calls with max_replacements: 1.

Comments

Users can leave inline comments on documents. Open comments are surfaced in a <document_comments> context block so you can see pending feedback.

  • comment_list — Lists open comments on a document by surface_id. Use this to check for feedback before or after editing, especially when the user asks you to address comments.
  • comment_resolve — Marks a comment as resolved by comment_id. Use this after you have addressed the feedback in the document content. Always edit the document first, then resolve the comment.
  • comment_reply — Posts a reply to an existing comment by comment_id. Use this to ask clarifying questions or explain why you made (or declined) a change before resolving.

Addressing comments workflow

  1. Read the <document_comments> block or call comment_list to see open comments.
  2. For each comment, edit the document to address the feedback.
  3. Call comment_resolve on comments you have addressed.
  4. If a comment is ambiguous, call comment_reply to ask for clarification instead of guessing.

Anti-Patterns

  • Don't use app_create for blog posts, articles, or written content. Use document_create — apps are for interactive content with state/data.
  • Don't write the article into the chat response. Long-form prose goes in the document editor via document_create, not in chat and not into a .md file in the workspace. Acknowledge what you're doing and stream to the editor.
  • Don't wait to generate everything before sending. Stream content in chunks via document_update with mode: "append" so users see progress in real time.

Usage Notes

  • The mode parameter on document_update defaults to append.
  • Documents are automatically saved and accessible via the Generated panel.
  • Users can manually edit documents at any time.
  • Write in clear, engaging prose. Use active voice, vary sentence structure, and break content into logical sections with descriptive headings.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Document Editor?

Use whenever the user wants to write or draft an article, blog post, essay, report, or any long-form content. Creates the content in a rich text editor instead of dumping it in chat, so it can be streamed, reviewed, edited, and exported.

Навіщо використовувати Document Editor у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Document Editor — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Document Editor у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/vellum-ai/vellum-assistant/tree/main/assistant/src/config/bundled-skills/document-editor. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Document Editor?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Document Editor?

Зі скількома забажаєте. У TypingMind ви можете використовувати Document Editor із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Document Editor?

Так. На GitHub цю навичку публікує vellum-ai за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇