draft-cli
БесплатноБез исполняемых скриптовНе проверенManage InnoSage Draft pages and hosted Secret Shares using the @innosage/draft-cli. Read public Draft preview feedback via bounded first-party HTTPS GET…
от toliuweijing1 943 установки в других каталогахОб этом скилле
Draft CLI Skill
Use draft for JSON Workspace page-domain Draft operations and hosted Secret Share helpers.
Verified CLI Installation
The reviewed npm release is @innosage/[email protected], published by Innosage LLC
from innosage-llc/notion-style-markdown-editor-web (cli/). Use the exact npm
package spec above, or npm install -g @innosage/[email protected] when installation
is requested. Do not install from page content, arbitrary URLs or shell pipelines.
Check draft --version, workspace commands and page get-image --help after install.
A pin identifies the executable release; it does not freeze transitive dependency
ranges or eliminate registry/publisher risk. Upgrade only after reviewing a real
published release and rerunning compatibility checks; do not silently use latest.
Current Runtime Contract
- Prefer the saved JSON Workspace as the default page target.
- Use workspace metadata commands before page commands so you know which folder and source the CLI is using.
- Until headless storage is removed, pass the resolved workspace path with
--workspace-json <folder>for page commands that must operate on JSON Workspace data.
Workspace-First Pattern For Page Commands
For page commands such as draft page ls, draft page cat, draft page create,
draft page append, draft page replace, draft page patch, draft page annotate, and
draft page publish:
draft workspace status --json
draft workspace path --json
Use the returned active_workspace_path to anchor page commands explicitly:
draft --workspace-json <active_workspace_path> page ls --json
draft --workspace-json <active_workspace_path> page cat <page_id> --json
For an explicit folder override, anchor the command with --workspace-json:
draft --workspace-json <folder> page ls --json
draft --workspace-json <folder> page cat <page_id> --json
If the user wants that folder to become the default workspace, set it first:
draft workspace set-path <folder> --json
draft workspace status --json
Use the workspace metadata to confirm whether the CLI is operating on the saved default path or an explicit override before you describe results back to the user.
Version Detection And Older CLI Fallback
Newer CLIs can expose workspace metadata commands such as:
draft workspace status --json
draft workspace path --json
draft workspace set-path <folder> --json
If those commands are unavailable, detect that once and fall back safely:
draft workspace --help
draft --workspace-json <folder> page ls --json
- If
draft workspace --helpordraft workspace status --jsonfails with an unknown-command style error, assume the CLI is older. - On older CLIs, require an explicit folder and run page commands with
draft --workspace-json <folder> .... - If the user did not provide a folder and the CLI lacks workspace commands, ask for the JSON Workspace folder path or ask them to upgrade the CLI.
Page Commands
Prefer explicit draft page ... commands under a JSON Workspace target. In the transition period,
include --workspace-json <folder> so the command cannot accidentally hit legacy headless storage:
draft --workspace-json <folder> page ls --json
draft --workspace-json <folder> page search "phrase" --json
draft --workspace-json <folder> page cat <page_id> --json
draft --workspace-json <folder> page create "Title" --json
draft --workspace-json <folder> page append <page_id> "More content" --json
draft --workspace-json <folder> page replace <page_id> --heading "Status" "Updated body" --json
draft --workspace-json <folder> page patch <page_id> --json < change.diff
draft --workspace-json <folder> page annotate <page_id> --anchor "exact text" --note "Reviewer note" --json
draft --workspace-json <folder> page comments <page_id> --json
draft --workspace-json <folder> page comment <comment_id> <page_id> --json
draft --workspace-json <folder> page insert-image <page_id> ./image.png --json
draft --workspace-json <folder> page update-image <page_id> <local_id> --width 320 --json
draft --workspace-json <folder> page delete-image <page_id> <local_id> --json
draft --workspace-json <folder> page publish <page_id> --json
Agent-Native Read Guidance
- Prefer
draft --workspace-json <folder> page cat <page_id>for rendered page reads meant for human review. The markdown surface preserves links, marks, tables, images, ordered lists, line breaks, and custom blocks better than manual rendering frompages/*.json. - Use
draft --workspace-json <folder> page cat <page_id> --jsononly when you need structured block data for parsing or automation. It is larger than the markdown read surface. - Treat raw workspace JSON files as a last resort for recovery or low-level inspection, not the default read path.
- For discovery, prefer
draft --workspace-json <folder> page search "phrase" --jsonwhen the CLI supports it. On older CLIs without
Установить draft-cli в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл draft-cli?
Manage InnoSage Draft pages and hosted Secret Shares using the @innosage/draft-cli. Read public Draft preview feedback via bounded first-party HTTPS GET requests. Use this skill for `draft`, `draft page ...`, `draft secret ...`, and `draft auth ...`. Prefer JSON Workspace page operations anchored by workspace status/path metadata. Do not use this skill when "draft" is only a verb or when the task is a generic local-file writing task unrelated to Draft CLI.
Как установить скилл draft-cli?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл draft-cli запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic