/edit-doc:edit-docfrom edit-doc
Creates self-contained HTML documents with a built-in editor or a standalone Markdown editor that saves via File System Access API or download. No server or login required.
Ships in edit-doc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
공통 규칙 (이 스킬의 모든 단계에 적용)
Two deliverables live in assets/ (built, self-contained) and their sources.
.html file. Open it, click 편집, save. skeleton.html is the golden template; examples/demo.html is a filled example..md is plain text and cannot carry a JS editor, so md-editor.html is a standalone source+preview editor that opens and saves any .md. Ship it next to the markdown file.Both save through one engine (assets/save-engine.js): the File System Access API when the browser supports it (and it remembers the file across sessions via IndexedDB), a plain download otherwise. Both autosave a backup to localStorage and offer to restore it. No dependencies, no network.
The editor is a built file you copy. You never write it. A document whose editor you typed yourself saves wrong (a copy per save, or nothing at all), even when it looks right.
Copy first, with a shell command, before writing anything. This skill's folder is the base directory shown when the skill loaded; skeleton.html sits two levels up from it:
cp "<base directory>/../../skeleton.html" doc.html
Use the requested file name instead of doc.html. If you have no shell, Read <base directory>/../../skeleton.html and Write it out unchanged. Do not start from a blank file.
Then Edit the copy in two places only. Put the document's design in <style id="doc-style"> and its body inside <main id="doc-content">. Preserve the user's content, language, and any design they gave you; do not impose the example's look.
In <script id="doc-meta">, replace REPLACE-WITH-UNIQUE-ID with a fresh unique id so autosave and the saved-file link track this document. Leave everything else as copied: <style id="ed-editor-style">, <script id="ed-editor-script">, and the #ed-* UI blocks.
Check the copy took: grep -c 'id="ed-editor-script"' doc.html prints 1. If it prints 0, you rewrote the file; start over from step 1.
Open the result in a browser tool if one is available and verify (see Verification). If no browser tool is available, say which interactive checks you could not run.
md-editor.html to the output folder (it is fully self-contained).<textarea id="md-src"> initial content, or tell the user to open their .md with the 열기 button..md (Cmd/Ctrl+S), can 다른 이름 to a new file, and can export the rendered preview to a standalone .html..html.Keyboard: Cmd/Ctrl+E toggles edit (HTML), Cmd/Ctrl+S saves, Cmd/Ctrl+O opens (Markdown).
Edit sources in assets/ (doc-editor.css, doc-editor.js, save-engine.js, md-render.js, md-editor-app.js), then:
node build.mjs
This regenerates skeleton.html, examples/demo.html, and md-editor.html with the engine inlined. Never hand-edit the generated HTML's engine; edit the source and rebuild.
#doc-content and all #ed-* UI blocks; doc-meta has a unique id.EditDoc.getHTML(): the editor is present and #doc-content is not actively editable.EditDoc.getReadOnlyHTML(): no #ed-bar, no #ed-editor-script, content and design intact.document.execCommand for formatting. It is deprecated but still works in every current browser and needs zero dependencies, which is the whole point of a file that runs standalone. Rich structural editing (nested components, track changes) is out of scope.ed-*, --ed-*) avoids most collisions; check unusual document stylesheets.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub hanmariyang/giting-skills --plugin edit-docOther plugins' skills for the same job