SuperAPI AI Directory

lark-doc

Office & productivity

View repository

Updated 10-13 21:32

About this skill

docs

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

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 use lark-cli drive files copy; do not use docs +fetch + docs +create to 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's docs +fetch。