360 Secure SkillHub
360 安全技能中心

Lark CLI Dev Hub Drive

该 Skill 说明如何使用 lark-cli 访问飞书/Lark 云空间,完成文档、表格、文件夹的搜索与类型识别、本地与云端的上传下载和同步、导入导出、评论与权限操作,并可在 Dev Hub 中登记文件类 Artifacts 记录。

afengzi
afengzi
热度 27.53
最近更新 2026-05-20 02:55:20
分类:效率依赖:代码执行 / 读写文件 / 第三方 API应用场景:文件转换 / 工作流 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add lark-cli-devhub-drive
Metadata
name
lark-cli-devhub-drive
description
Use when managing Feishu/Lark Drive files through lark-cli or feishu-cli for Dev Hub search, inspect, upload, download, import, export, sync, comments, permissions, and artifact registration.
metadata
{"requires":{"bins":["lark-cli"]}}

Lark CLI Dev Hub Drive

Drive is the file and artifact layer. Use it when project knowledge lives in files, folders, comments, exported docs, imported reports, or Drive permissions.

Discovery aliases: feishu-cli drive, 飞书云空间, lark-cli drive, Drive sync, Feishu file export, Lark artifact management.

Office Use Cases

  • Mirror a project folder between local disk and Feishu Drive with drive +pull, +push, +sync, or +status.
  • Import local .xlsx, .csv, .docx, or source material into Feishu cloud docs with drive +import.
  • Export Docs, Sheets, or Base snapshots before a release or audit with drive +export.
  • Inspect a user-provided URL and unwrap Wiki links before choosing Docs, Sheets, Base, or Slides skills.
  • Register important files in Dev Hub Artifacts with title, source URL, summary, project, area, and keywords.
  • Add comments to docs/sheets/slides when the user wants review feedback instead of content mutation.

Routing Rules

  • Use drive +search for resource discovery across docs, wiki, sheets, folders, and Base.
  • Use drive +inspect whenever the input is a URL and the real underlying type is unclear.
  • After locating a structured object, route to the right domain skill: Docs/Wiki, Sheets, Base, Slides, or Whiteboard.
  • Do not store downloaded private files in the repo unless the user explicitly wants that.

Useful Commands

lark-cli drive +search --query "release report" --as user --format json
lark-cli drive +inspect --url "$LARK_URL" --as user --format json
lark-cli drive +export --url "$DOC_URL" --output ./exports --as user
lark-cli drive +upload --file ./artifact.pdf --folder-token "$FOLDER_TOKEN" --as user
lark-cli drive +sync --local ./docs --folder-token "$FOLDER_TOKEN" --as user

Dev Hub Writeback

When a file becomes part of project knowledge, write or update an Artifacts record:

  • Artifact Type: File, Export, Import, Snapshot, Review, or Folder
  • Source URL: Feishu URL
  • Summary: what it contains and why it matters
  • Search Keywords: project, area, filename, owner, date, and decision keywords