SkillsReviewed · larksuite

Lark Doc skill for lark-cli (Feishu cloud documents)

This is an instruction skill that teaches an AI agent to read, create and edit Lark (Feishu) cloud documents, wiki pages and mind notes through the lark-cli command line. It is for people who already use Lark or Feishu with an agent that can load skills. The main catch is that it also needs lark-cli, a Lark login and several sibling skills that are not in this package. The skill is a routing file plus fifteen reference files covering fetch, create, update, version history and rollback, media, cover images, whiteboards, mind notes, XML and Markdown syntax, and a draft-checking script. Its instructions are written mostly in Chinese. Nothing was executed during this review.

Researched 13 Nov 2026

In short.

This is an instruction skill that teaches an AI agent to read, create and edit Lark (Feishu) cloud documents, wiki pages and mind notes through the lark-cli command line. It is for people who already use Lark or Feishu with an agent that can load skills. The main catch is that it depends on lark-cli, a Lark login and several sibling skills that are not part of this package. Technically it is a SKILL.md router named lark-doc plus fifteen reference files. They cover docs +fetch, +create, +update and +script, version history with rollback, inserting, previewing and downloading media, cover images, whiteboards and mind notes. They also cover the XML and Markdown content formats that the documented lark-cli docs commands accept and return. The evidence does not establish which formats the underlying Lark service API uses natively. The skill is MIT licensed. The evidence does not establish cost, supported agent runtimes or live behaviour, and nothing was run.

Researched and written by an AI model and checked by a second AI model. How it works

This report covers the whole skills/lark-doc folder at commit 3d82c85419ad7560ad017db7a3972a596b5fbeb1: SKILL.md and fifteen reference files (create workflow, create, fetch, update, history, script, media insert, preview and download, cover resource, whiteboard, mind note, XML, XML extended blocks, Markdown). The repository root MIT LICENSE is included as the related notice, although it sits outside the folder. Excluded are the sibling skills the folder links to (lark-shared, lark-drive, lark-whiteboard, lark-sheets, lark-base, lark-meeting, lark-okr, lark-im), the lark-cli source and binary, and all other repository folders. The text was only read and no command was executed. Behaviour against a live Lark or Feishu service, scope requirements, cost and version compatibility were not tested.

The overview

What this resource is

The resource is the folder skills/lark-doc in the larksuite/cli repository [https://github.com/larksuite/cli/tree/main/skills/lark-doc], as captured at commit 3d82c85419ad7560ad017db7a3972a596b5fbeb1. Its SKILL.md gives the name lark-doc. It describes the skill as content operations for Feishu cloud documents (Docx and Wiki): reading, creating and editing documents, inserting or downloading image attachments, and working with mind notes. It sits beside other skills in the same repository, such as lark-shared, lark-drive, lark-whiteboard, lark-sheets and lark-base, and refers to them by relative path.

The folder holds SKILL.md and fifteen reference files: create workflow, create, fetch, update, history, script, media insert, media preview, media download, cover resource, whiteboard, mind note, XML syntax, XML extended blocks and Markdown syntax. The licence names Lark Technologies Pte. Ltd. as copyright holder, with the year 2026. The evidence gives no version number for the skill.

Overall assessment

On the evidence, this is a substantial, well-structured agent skill rather than a stub. SKILL.md works as a router. It tells the agent to identify the scenario first and read only that scenario's reference file, once, instead of loading everything at the start. The references give concrete command lines, parameters, return-value shapes and safety rules. Examples include how to find a history version before reverting, why overwrite is risky, and which URLs may be downloaded.

The main caveats are practical. The skill assumes lark-cli is installed and authenticated, it points to sibling skills outside this folder, and it is written mostly in Chinese. Only the text was read and no command was run, so the real behaviour of lark-cli, the Lark service and the skill together is not assessed. Nothing in the files looks malicious. The write-capable commands (update, overwrite, history revert, mindnotes create, media insert) change real documents, so it is worth having a human confirm intent before they run.

Who it is for

It suits teams that keep their documents in Lark or Feishu and want an AI agent to work on them. Typical jobs are summarising a document, drafting a new one from scratch, rewriting a section, inserting images or attachments, rolling back a bad edit, or adding nodes to an existing mind note. It also suits developers who build or maintain agent setups around lark-cli and want ready-made operating instructions.

It is not for people who do not use Lark or Feishu. According to SKILL.md, it also does not cover spreadsheet or Base data inside documents, file-level Drive operations (finding, importing, exporting, copying and permissions) or standalone comment threads. Those go to other skills: lark-sheets, lark-base and lark-drive.

Because the instructions and descriptions are largely in Chinese, an English-speaking user relies on the agent's model reading Chinese reliably, which was not assessed. The evidence does not say which agent products can load this skill format. The front matter only lists the binaries and skills it requires.

What it enables

Read: docs +fetch returns a whole document or part of it. The scopes are outline, section, range and keyword, and the detail levels are simple, with-ids and full. Output can be XML, Markdown, or im-markdown for later use with lark-im, and a specific revision can be requested. Unresolved comments visible to the current user can be returned with the body.

Create: docs +create makes a new document from XML (the default) or Markdown. It takes an optional title, a parent folder or wiki node, and a reference map. A seven-step creation workflow is required when writing a document from scratch, and SKILL.md says simple tasks are no reason to skip it. The documented exemption covers only two cases: creating an empty document, or importing complete user-supplied content verbatim.

Edit: docs +update supports str_replace, block_insert_after, block_copy_insert_after, block_replace, block_delete, block_move_after, append and overwrite.

History: docs +history-list lists versions, and docs +history-revert reverts to the history_version_id of a chosen entry. If the revert returns running, docs +history-revert-status is polled while the task is still running, and only done counts as success. Failed and partial_failed are terminal states. At those states the agent stops and reports, checking failed_block_tokens first.

History also has a separate restore path that applies only in one case. The user must have asked for a specific revision_id, and no matching history record may turn up after paging through the list until has_more is false. The agent then fetches that revision in full and checks it. If it differs from the current revision, the agent writes it back with a single overwrite. If the target revision is clearly unreadable, the agent stops and reports. A failed or partially failed revert does not trigger this overwrite path.

Media can be inserted from a file or the clipboard, previewed and downloaded. Cover images can be downloaded, replaced or deleted. Whiteboards can be added as Mermaid, SVG or PlantUML, or as blank boards. Existing mind notes can be read, and nodes can be added or updated.

Extra block types in XML include callouts, grids, tables, code blocks, formulas, bookmarks, buttons, reminders, sheets, tasks, chat cards, sub-page lists, OKR blocks and HTML5 blocks (limited to 500KB).

Using it

What you need before using it

SKILL.md metadata requires the binary lark-cli and the skill lark-shared. The cliHelp entries list the commands lark-cli docs --help and lark-cli mindnotes --help. Authentication, identity and scopes are handled by lark-shared, which is not part of this folder.

The files disagree about when to read lark-shared. For running shortcuts, SKILL.md says the agent should not read lark-shared or run auth status --verify in advance. It should read lark-shared only after an unauthenticated, token, identity or scope error, then retry. Requests that are themselves about managing authentication, identity or scopes go straight to lark-shared. By contrast, the media insert, media preview, media download, cover image and mind note references each make reading lark-shared first a prerequisite. No single rule covers every case.

SKILL.md recommends passing --as user explicitly. Creating a document as a bot triggers an attempt to grant the current CLI user full_access.

The evidence names one permission scope: docx:document:readonly, which docs +script parse needs to read an online document. No other scopes are listed.

Some features depend on other tools or skills. The whiteboard flow relies on lark-whiteboard. Resolving a wiki mind note uses drive +inspect from lark-drive. Embedded sheets, Base tables and meeting transcripts are handed to lark-sheets, lark-base and lark-meeting. Inserting from the clipboard on Linux needs xclip, wl-paste or xsel.

The creation workflow requires the agent to search for images when images are needed and the user has supplied none. Other steps expect the agent to start sub-agents for complex whiteboards and to run shell commands. Whether a given agent runtime supports these is unknown.

This folder does not state which operating systems lark-cli supports, how to install it, or which Lark account type or plan is required.

How it works

The skill is plain Markdown instructions and contains no scripts of its own. The agent reads SKILL.md, which lists scenarios and the matching docs shortcut (+fetch, +create, +update, +script, +history-*, +media-*, +resource-*). It then loads only the reference file for the current scenario and runs lark-cli commands in a shell. Routing uses the URL path or token, not the domain. Links under doubao.com with /docx/ or /wiki/ paths count as documents, while a /page/<token> link is a Miaoda app, not a cloud document.

The documented lark-cli docs commands take and return document content in a Lark XML dialect by default, or in Markdown when requested. The evidence does not establish which formats the underlying Lark service API uses natively. Fetched content may include a reference_map sidecar that holds resource attributes and comments, and it should be kept together with the content.

For edits, the recommended loop has five steps. Observe fetches the smallest scope with block IDs. Diagnose and Patch Plan come next, then Patch, and Verify fetches the document again. The update reference says to re-fetch after each write and to treat previously obtained block IDs as possibly stale rather than reusing them.

For writing a document from scratch, the workflow runs as follows. The agent works out the reader's task, collects material and records a Presentation Decision JSON. It runs docs +script --command init-draft to get a workspace and draft path, writes the XML, and runs docs +script --command parse to check it. Finally it runs docs +create. The parse step is described as a profile check, not a schema validator, so the server's result is final.

Embedded resources in fetched content are routed by type. Images and attachments can be previewed or downloaded by token. A url is fetched only if it is a trusted public HTTPS address.

Setup

The evidence contains no installation guide for the skill or for lark-cli. A reasonable reading is that three things are needed. The skill folder must be available to the agent next to its sibling skills, at least lark-shared because of the relative links. lark-cli must be on the path. The user must be authenticated. Exactly how to do each step is not stated and was not verified.

When running commands, the references say to pass content from a file (--content with @./path, or - for stdin) rather than as an inline string, to avoid shell-escaping problems. For local files, the main rule is to use a relative path inside the current working directory, or an absolute path elsewhere. The references do not all agree on path rules; see the limitations section.

Example of use (from the documentation, not run)

The commands below are taken from the reference files to illustrate the documented flow; none of them was run. To change one section of a long document, the agent would first list the structure with: lark-cli docs +fetch --doc "<document URL or token>" --scope outline --max-depth 2. It would then read one section with block IDs: lark-cli docs +fetch --doc "<document URL or token>" --scope section --start-block-id "<heading_block_id>" --detail with-ids. Replace every placeholder, including the angle brackets, with the real document URL or token and the actual block IDs returned by the previous fetch. Do not type the placeholders literally.

Next it would patch only that block: lark-cli docs +update --doc "<document URL or token>" --command block_replace --block-id "<block_id>" --content '<p>New paragraph</p>', again using the real block ID from the fetch output. After the write it should fetch again to check the result and get fresh block IDs. The update reference says to treat IDs as changed after every write, and a replacement invalidates the old ID.

If the result is wrong, the history reference describes listing versions with docs +history-list, choosing the target entry and reverting with docs +history-revert using that entry's history_version_id. If the revert returns running, docs +history-revert-status is checked while the task is still running, and only done means success. If the status becomes failed or partial_failed, the agent stops and reports, checking failed_block_tokens first. A failed revert is not a reason to overwrite the document.

For a new document, the documented route has four steps. First, run docs +script --command init-draft with a Presentation Decision JSON. Second, write XML to the returned draft path. Third, check it with docs +script --command parse. Finally, run docs +create --doc-format xml --content "@<draft path>".

Assessment & evidence

Limitations and risks

Scope gaps: the skill hands off to lark-shared, lark-drive, lark-whiteboard, lark-sheets, lark-base, lark-meeting, lark-okr and lark-im. None of these is in this folder, so any behaviour that depends on them is unknown. The mind note reference also uses docs +media-upload, which has no reference file in this folder. Embedded spreadsheet (Sheets) and Base data operations, file-level Drive operations and standalone comment operations are explicitly out of scope. Ordinary tables written in document XML are supported.

Internal inconsistencies: the files give different rules for local file paths. SKILL.md says local files can be given as @./relative or @absolute paths. The Markdown reference says @file accepts only relative paths under the working directory, and that absolute paths fail with an unsafe file path error. The script reference allows relative or absolute paths. The update reference says reference-map files must be relative paths in the task directory. An agent could therefore pick a form that fails. The media-insert reference also warns that it cannot extract a document ID from /wiki/ URLs, so the document ID should be passed instead.

Data-safety risks: overwrite rebuilds the body and the block IDs and may lose comments and unsupported resources, which is why the references advise against it. History revert can end as partial_failed or failed. Writes change real documents, and no dry run is stated for them; only docs +script lists a --dry-run option.

Documents fetched from Lark become input to the agent. The evidence sets safety rules for downloading URLs: public HTTPS only, no private, loopback or link-local hosts, and every redirect checked again. It gives no general guidance on instructions hidden in document text, and this risk was not assessed.

Other limits: whiteboard SVG does not support patterns, clip paths, masks or filters other than shadows. Complex diagrams need sub-agents and the separate lark-whiteboard skill. Clipboard insert depends on platform tools. Nothing here was executed, so correctness against the live service is unverified.

Why it is rated this way

The skill is rated as a real, usable resource because its guidance is concrete and can be checked. Commands, parameters, return shapes and failure states are spelled out. It also includes defensive rules: confirm write intent, do not create a new document after a partial create failure, stop on a revision conflict, do not guess file paths, and validate download URLs. Splitting the guidance into per-scenario reference files, each read only when needed, is a sound design for agents with limited context.

It is not rated higher because several claims cannot be checked from the text alone. These include whether lark-cli exposes exactly these flags, which scopes each command needs, how the dependent skills behave, and whether the long mandatory workflows help or hinder in practice. The conflicting file-path rules in SKILL.md, the Markdown reference and the script reference, along with the heavy reliance on external skills, are further reasons for caution.

Alternatives

The evidence itself points to related skills in the same repository for neighbouring jobs. lark-drive covers finding, copying, importing and exporting files, managing their permissions, and standalone comments. lark-sheets and lark-base cover spreadsheet and Base data, and lark-whiteboard covers editing existing whiteboards. These complement this skill rather than replace it. To copy a document, the skill says to use lark-cli drive files copy rather than rebuilding the content with fetch and create.

Another option is to call lark-cli docs commands directly, using lark-cli docs --help for details, or to work in the Lark editor without an agent. Whether other third-party skills or tools for Lark documents exist, and how they compare, was not researched in this review.

Evidence base

The findings rest on the full text of 16 files in skills/lark-doc and the repository LICENSE, all captured at commit 3d82c85419ad7560ad017db7a3972a596b5fbeb1. The 16 files are SKILL.md and the references for create workflow, create, fetch, update, history, script, media insert, media preview, media download, cover resource, whiteboard, mind note, XML, XML extended blocks and Markdown.

Strong evidence: command names, parameters, return fields, safety rules and routing rules, all stated directly in the files. Weak or missing evidence: install steps, version history, complete scope requirements (only docx:document:readonly for online parsing is named), real-world behaviour, performance, user reports and the content of sibling skills. Nothing was run, so no statement here is a test result.

Access & freshness

Costs

The skill is released under the MIT licence, which grants use free of charge, and the evidence mentions no price for the skill. The costs of lark-cli, a Lark or Feishu subscription, API usage, and the language-model usage of the agent running the skill are unknown. The media download reference describes rate-limit errors and advises against retrying immediately, recommending exponential backoff instead. Quota allowances, rate-limit values and any related charges are unknown.

One indirect cost is that the instructions are long and procedural. The creation workflow is mandatory when writing from scratch ('simple tasks are not a reason to skip it'), and the editing loop fetches before and after each write. This may add steps and tokens to routine tasks. How much was not measured.

Licence and rights

The repository LICENSE is the MIT License, copyright 2026 Lark Technologies Pte. Ltd. It allows use, copying, modification, merging, publishing, distribution, sublicensing and selling, provided the copyright notice and permission notice are kept in all copies or substantial portions. The software is provided as is, without warranty.

The LICENSE file sits at the repository root, not inside skills/lark-doc. The captured skill folder has no separate licence or notice, so the root licence is the only licence evidence. This file does not cover rights to the Lark or Feishu service, its trademarks or the terms for using its API, and the evidence does not describe them.

Freshness

The content was captured on 2026-11-13 from commit 3d82c85419ad7560ad017db7a3972a596b5fbeb1. The skill has no version number, changelog or date of its own. Its publication date, the date of its last substantive update and its compatibility with current lark-cli releases are unknown. The evidence also does not show whether newer commits exist or how often the folder changes.

Because the skill depends on lark-cli flags and a live Lark service, the instructions may drift out of step with the installed lark-cli version. Compare the documented flags with the output of lark-cli docs --help and lark-cli mindnotes --help on the installed version.

Suggested next steps

If you use Lark or Feishu and an agent that loads skills, try it first on a test document you can afford to lose. Start with read-only work: docs +fetch with the outline and section scopes. Then try one small block_replace edit and confirm the result by fetching again. Before relying on the flags in the references, check them against lark-cli --help on your installed version.

Install or enable the sibling skills the folder points to, at least lark-shared. Add lark-drive, lark-whiteboard, lark-sheets and lark-base if you need those tasks. Require a human to confirm before overwrite, history revert, mind note writes or media insertion. Decide in advance how the agent should handle the conflicting path rules, for example by keeping drafts inside the working directory and using relative paths.

Before wider rollout, check the Lark account plan and API quotas, which this folder does not state. Also check the permission scopes your operations need. The folder names docx:document:readonly for parsing an online document with docs +script, but the full scope requirements for other operations are unknown.

Evidence for this report

LICENSEnotice · checked 2026-11-13
skills/lark-doc/SKILL.mdselected · checked 2026-11-13
skills/lark-doc/references/lark-doc-create.mdselected · checked 2026-11-13
skills/lark-doc/references/lark-doc-fetch.mdselected · checked 2026-11-13
skills/lark-doc/references/lark-doc-md.mdselected · checked 2026-11-13
skills/lark-doc/references/lark-doc-script.mdselected · checked 2026-11-13
skills/lark-doc/references/lark-doc-update.mdselected · checked 2026-11-13
skills/lark-doc/references/lark-doc-xml.mdselected · checked 2026-11-13