docs
БесплатноБез исполняемых скриптовНе проверенMake and revise a living doc in the Docs format as a local folder: doc/doc.json names the doc, its tabs and its dropdown lists, and each tab is a tree of…
от JimLiu★ 865 звёзд на GitHubОб этом скилле
Docs
A doc is a live document: a title, one or more tabs, and in each tab a tree of blocks (headings,
paragraphs, lists, tables, code, quotes, rules, pictures) whose text can carry chips (a date, a person, a
dropdown, a link to another tab). A doc is a folder, <root>; the doc itself is in <root>/doc/, and you write it
only through this skill's script, never by hand. The local page (started by open-artifact open) shows the doc,
lets people edit it, and what they type lands in the same folder. SKILL.md, reference/ and scripts/ are the
type's own files: leave them as they are.
Say "your doc" to the person (or the word they use: page, plan, report), and refer to it by its title, never by ids or folders.
open-artifact below stands for node <this skill's folder>/scripts/cli.mjs (Node 22 or later).
With the Artifact tool (an Open Artifact host runs this type for you): create a doc with
Artifact {action: "quickstart", intent: "document"}, then Artifact {action: "publish", type_url: "open-artifact://type/docs", title}; its result gives the doc's url (open-artifact://artifact/<id>), its root
and how the commands below map onto the tool. There, each doc command is Artifact {action: "call", url, name, args}: create, read, update, batch and delete take args: {call: <the same JSON as below>} (a tab's
read or update as {ref: {object: "node", id: "<tab>"}, payload: {…}}, see The calls), export takes args: {format, tab?, paper?, out?} and import takes args: {file: "<absolute path>", name?}; open-artifact upload
is {action: "call", url, name: "upload", args: {file: "<absolute path>"}}. Never write the doc's files with
publish. The page is shown as the create result says (its view_url in your app's built-in browser when you have
one, else Artifact {action: "open", url}). Comments are ArtifactComments. Never run open-artifact open,
serve, share, wait or stop under a host.
The calls
Standalone, a new doc is a folder designs/<slug>/ in the working directory unless the person names another
(<slug>: the title in lowercase words joined by -; a title not in Latin letters takes a short English
rendering of it: designs/hiring-plan-2027/).
| Command | Does |
|---|---|
open-artifact create <root> <birth> |
Makes the doc: {name, doc: {markdown, blocks?}, batch?}. See Making a doc. |
open-artifact create <root> --markdown <file> [--name n] |
Makes it from a markdown file (-: stdin); the name defaults to its first # line. |
open-artifact import <root> <file> [--name n] |
A Markdown, text, Word (.docx) or PDF file as a new tab of the doc in the folder, or as a new doc when the folder holds none: {ok, format, tabs, bytes, images, notes, created?}. See Importing a file. |
open-artifact read <root> |
The doc: its name, its tabs (files: id, name, order, subtabOf, rev, and content.id, the tab's body), its dropdown lists (enums) and how the page shows it (display, once set). |
open-artifact read <root> <tab> |
A tab's outline: each top-level block with its id and hash, text cut at 200 characters, containers folded. |
open-artifact read <root> <tab> --view / --parent <id> |
The whole tab, or one block, in full: every text run with its id. |
open-artifact read <root> <tab> --search <text> |
Every place the words stand (any case): block, text, and the range of char ids. |
open-artifact read <root> <tab> --markdown / --since <rev> |
The tab as markdown / what changed since that rev (here: unchanged, or the whole tab again with full). |
open-artifact read <root> <tab> --suggestions |
The open suggestions in the tab (Suggesting). |
open-artifact read <root> <tab> --history / --at <rev> |
The tab's versions / the tab as a version left it (Versions). |
open-artifact update <root> <call> |
Ops on one tab: {"tab": "<tab>", "ops": [...]}, optionally with ifRev, or "suggest": true to propose them (Suggesting). All or nothing. |
open-artifact batch <root> <call> |
Several members in one go, all or nothing: new tabs, their content, renames, dropdown lists (reference/tabs.md). |
open-artifact delete <root> '{"ref": {"object": "file", "id": "<tab>"}}' |
Removes a tab (a doc keeps at least one). |
open-artifact export <root> [--tab t] [--out f.md] |
The doc as markdown (on stdout without --out), each tab under a <!-- tab: name --> line when there are several. |
open-artifact export <root> --format docx|pdf|html [--tab t] [--paper a4|letter] [--out file] |
The doc as a Word file, a PDF or a page to print: {ok, out, format, bytes, pages?, notes?}. See Exporting. |
open-artifact upload <root> <file>… |
Stores a picture for the doc; prints its /_blob/<id> url first. See Pictures. |
open-artifact check <root> |
Reads doc/doc.json and every tab the way the page does; one line per finding, exit 1 on errors. |
| `open-artifact archive |
Установить docs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл docs?
Make and revise a living doc in the Docs format as a local folder: doc/doc.json names the doc, its tabs and its dropdown lists, and each tab is a tree of blocks (headings, paragraphs, lists and checklists, tables, code, quotes, pictures) whose characters carry ids, with chips for dates, @-mentions, links to tabs and dropdowns. This skill's script creates the doc (from markdown or a skeleton), imports a Markdown, Word (.docx) or PDF file as a new doc or a new tab, reads it, edits it in place block by block or as suggestions the person accepts or rejects, and exports it as Markdown, Word, PDF or HTML; a local page shows it where people type, comment, react and look back through each tab's versions, shared on the local network by link when asked. Use when someone asks for a document, report, plan, proposal, brief, memo, spec, handbook, guide or meeting notes to keep, share, comment on or revise together (even one they will send as Word or PDF), names the Docs type, or wants to change a folder that holds doc/doc.json. Not for a static HTML page, changing a Word file (.docx) they already have as Word, a slide deck, or an answer read once in chat.
Как установить скилл docs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл docs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic