SuperAPI AI Directory

lark-doc

Office & productivity

View repository

Updated 10-14 05:33

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: prefer using @./相对路径within the CWD, and use @绝对路径for other directories. For relative resource paths inside XML, check the 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, the CWD takes precedence. Inline content, stdin, and online documents have no source file directory, and 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;
  • Import / Empty document — +create: skip the creation workflow only when creating an empty document or importing the 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.
  • Version history — +history-list / +history-revert / +history-revert-status: query, roll back document version history, or check rollback task status.

Resources, boards, 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, and 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 through, 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。