vellum-ai/vellum-assistant/assistant/src/config/bundled-skills/document-editor/SKILL.md
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.
- Source repository stars
- 1,002
- Declared platforms
- 0
- Static risk flags
- 0
- Last source update
- 2026-08-04
- Source checked
- 2026-08-04
Decision brief
What it does—and where it fits
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.
Not for
- Don't use appcreate for blog posts, articles, or written content. Use documentcreate — 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 documentcreate, not in chat and not into a .md file in the workspace. Acknowledge what you're doing and stream to the edito…
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/vellum-ai/vellum-assistant --skill "assistant/src/config/bundled-skills/document-editor"Inspect the Agent Skill "document-editor" from https://github.com/vellum-ai/vellum-assistant/blob/32b93fb5c0f5e77d2a15e2f214d3726208c9d208/assistant/src/config/bundled-skills/document-editor/SKILL.md at commit 32b93fb5c0f5e77d2a15e2f214d3726208c9d208. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Workflow
1. Call documentfind to preview matches and confirm the pattern is correct. 2. Call documentreplacetext to apply the changes.
Call documentfind to preview matches and confirm the pattern is correct.Call documentreplacetext to apply the changes.Fix a recurring typo: Find "recieve", replace with "receive". - 02
Addressing comments workflow
1. Read the block or call commentlist to see open comments. 2. For each comment, edit the document to address the feedback. 3. Call commentresolve on comments you have addressed. 4. If a comment is ambiguous, call commentreply to ask for clarification instead of guessing.
Read the block or call commentlist to see open comments.For each comment, edit the document to address the feedback.Call commentresolve on comments you have addressed. - 03
Usage Notes
The mode parameter on documentupdate defaults to append.
The mode parameter on documentupdate defaults to append.Documents are automatically saved and accessible via the Generated panel.Users can manually edit documents at any time. - 04
Tools
documentcreate - Opens a new document editor with an optional title and initial Markdown content. Returns a surfaceid for subsequent updates. This is the entry point for any new piece of writing.
documentcreate - Opens a new document editor with an optional title and initial Markdown content. Returns a surfaceid for subsequent updates. This is the entry point for any new piece of writing.documentupdate - Updates content in an open document editor by surfaceid. Supports replace (overwrite) and append (add to end) modes.documentread - Reads the current content of a document by surfaceid when it belongs to the current conversation, or when the current actor is the guardian/local user. Use to verify content before editing. - 05
Creating a new document
This is the default path when the user asks you to write something.
Create the document: Call documentcreate with a title (inferred from the request). Call the tool immediately, not after conversational preamble.Write content in Markdown: Use proper structure ( for titles, for sections), bold, italic, code blocks, tables, lists, blockquotes as appropriate.CRITICAL - Stream content in chunks: Call documentupdate MULTIPLE times, not just once. Break content into logical chunks (paragraphs, sections, or every 200-300 words). Call documentupdate with mode: "append" for EACH…
Permission review
Static risk signals and limitations
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 84/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 1,002 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- vellum-ai/vellum-assistant
- Skill path
- assistant/src/config/bundled-skills/document-editor/SKILL.md
- Commit
- 32b93fb5c0f5e77d2a15e2f214d3726208c9d208
- License
- MIT
- Collected
- 2026-08-04
- Default branch
- main
View the original 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_idfor 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. Supportsreplace(overwrite) andappend(add to end) modes. - document_read - Reads the current content of a document by
surface_idwhen 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. Withquery, 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.
- Create the document: Call
document_createwith a title (inferred from the request). Call the tool immediately, not after conversational preamble. - Write content in Markdown: Use proper structure (
#for titles,##for sections), bold, italic, code blocks, tables, lists, blockquotes as appropriate. - CRITICAL - Stream content in chunks: Call
document_updateMULTIPLE times, not just once. Break content into logical chunks (paragraphs, sections, or every 200-300 words). Calldocument_updatewithmode: "append"for EACH chunk separately. When you are streaming into the document you just created,surface_idis optional — omit it and pass onlycontent, 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:
- Find the
surface_idfrom the<active_documents>context block. - Use
document_updatewith the existingsurface_id— do NOT calldocument_createagain. - Choose the right editing tool:
document_updatewithmode: "append"— adding new content to the end.document_updatewithmode: "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.
- Do NOT use
document_updatewithmode: "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:
- Check the
<active_documents>block in your context — it lists all documents in this conversation with theirsurface_idand title. - If the document is NOT in
<active_documents>, calldocument_listwith aquerymatching the document title. For guardian/local users, this searches across previous conversations and sessions. - Once you have the
surface_id, calldocument_opento 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 withdocument_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 searchquery(required) — the search string or regex patternregex(optional, defaultfalse) — treatqueryas a regular expressioncase_sensitive(optional, defaultfalse) — 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 modifyfind(required) — the search string or regex patternreplace(required) — the replacement string (supports$1,$2backreferences whenregexistrue)regex(optional, defaultfalse) — treatfindas a regular expressioncase_sensitive(optional, defaultfalse) — match case exactlymax_replacements(optional) — limit the number of replacements made
Returns the number of replacements made and whether the content changed.
Workflow
- Call
document_findto preview matches and confirm the pattern is correct. - Call
document_replace_textto 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})withregex: true, replace with$3-$1-$2to convertMM/DD/YYYYtoYYYY-MM-DD. - Swap or reorder sections: Use
document_readto get the content, identify the sections to swap, then calldocument_replace_textto replace the first section with the second and vice versa. For complex rearrangements, use multipledocument_replace_textcalls withmax_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
- Read the
<document_comments>block or callcomment_listto see open comments. - For each comment, edit the document to address the feedback.
- Call
comment_resolveon comments you have addressed. - If a comment is ambiguous, call
comment_replyto ask for clarification instead of guessing.
Anti-Patterns
- Don't use
app_createfor blog posts, articles, or written content. Usedocument_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.mdfile 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_updatewithmode: "append"so users see progress in real time.
Usage Notes
- The
modeparameter ondocument_updatedefaults toappend. - 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.
Alternatives
Compare before choosing
coreyhaines31/marketingskills
ab-testing
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
coreyhaines31/marketingskills
churn-prevention
When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' 'involuntary churn,' 'people keep canceling,' 'churn rate is too high,' 'how do I keep users,' or 'customers are leaving.' Use this whenever someone is losing subscribers o
alirezarezvani/claude-skills
app-store-optimization
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
wanshuiyin/Auto-claude-code-research-in-sleep
citation-audit
Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.