Scenarios and Shortcut Routing
CRITICAL: Determine the scenario first, then read the reference file for that scenario; do not read all reference files at once at the start of a task. Read each file only once, when first entering the corresponding phase.
Identity: Document operations recommend explicitly specifying --as user。
Local file references uniformly follow file access permissions: within CWD, prefer using @./相对路径, and for other directories use @绝对路径. For relative resource paths inside XML, check CWD first; only when the file does not exist, check the directory where the source XML file is located; for files with the same name, CWD takes precedence. Inline content, stdin, and online documents have no source file directory, so no fallback is performed.
Document Content
- Read / Summarize —
+fetch: read the reference first, then retrieve the document. - Create from scratch —
创建工作流: fully execute the creation workflow first;a simple task is not a reason to skip it; - Import / Empty Document —
+create: skip the creation workflow only when creating an empty document or importing user-provided complete content as-is. - Edit / block direct link —
+update: semantic rewriting, polishing, reorganization, supplementary writing, or formatting are all completed according to the update reference.
Auxiliary Capabilities
- Draft initialization, parsing, and statistics —
+script: supports parsing document URLs / tokens and local XML, counts words, and returns character diagnostics; does not support Markdown input. - Historical Versions —
+history-list/+history-revert/+history-revert-status: query, roll back document historical versions, or check rollback task status.
Resources, Whiteboards, and Mind Notes
- Insert local assets —
+media-insert: insert local images or files at the end of the document. - Preview assets —
+media-preview: preview images, attachments, or assets in a document or comment. - Download assets —
+media-download: download images, attachments, assets, or whiteboard thumbnails in a document. - Docx Cover —
+resource-download/+resource-update/+resource-delete: download, update, or delete a Docx cover. - Whiteboard —
画板工作流: when creating or updating a whiteboard, read the workflow first; updating an existing whiteboard must reuse the existing token, and creating a new blank whiteboard is prohibited; usewhiteboard +updateto write. - Mind Notes —
mindnotes: for an existing mind note, use思维笔记链路; for a new mind note, uselark-doc-whiteboard。
Authentication and Scope
When executing a Shortcut, do not pre-read lark-shared or pre-run auth status --verify; read that Skill only when encountering unauthenticated, token / identity, or scope errors, then retry after fixing. For authentication, identity, or scope management requests, use that Skill directly.
Out of Scope for This Skill
- Drive file-level operations: find documents, import/export, cloud space file upload / download / permission management →
lark-drive. When copying a document, creating a duplicate, or saving as a duplicate, follow its guidance to uselark-cli drive files copy; do not usedocs +fetch+docs +createto rebuild the body. - Standalone comment operations: add, paginate and view, reply to comments, or add/remove reactions →
lark-drive; when only a compact comment context is needed, directly use the default JSON response'sdocs +fetch。