본문으로 건너뛰기
cccskills
무료GitHub에 공개

lark-markdown

Read, create, upload, and edit Markdown files stored in 飞书 Drive. Compare saved versions or check a remote file against a local draft to review changes before updating shared content.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。

不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

설치 방법 보기

이럴 때 유용합니다

  • Upload a Markdown draft to Drive
  • Replace text in a shared Markdown file
  • Compare saved versions or a local draft

포함된 파일(6)

  • SKILL.md4.9 KB
  • references/lark-markdown-create.md4.6 KB
  • references/lark-markdown-diff.md6.3 KB
  • references/lark-markdown-fetch.md1.7 KB
  • references/lark-markdown-overwrite.md2.2 KB
  • references/lark-markdown-patch.md4.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

markdown (v1)

CRITICAL — 开始前 MUST 先用 Read 工具读取 ../lark-shared/SKILL.md,其中包含认证、权限处理

快速决策

  • 身份:Markdown 文件通常属于用户云空间资源,优先使用 --as user。如为自动化场景,或应用已创建并持有目标文件权限,可按场景使用 --as bot。首次以 user 身份访问前执行 lark-cli auth login

  • markdown +create / +overwrite 失败时,先判断是不是身份和权限问题:bot 更常见的是 app scope 或目标目录 ACL,user 更常见的是用户授权或用户 ACL;不要不加判断地来回切身份重试。

  • 用户要上传、创建一个原生 .md 文件,使用 lark-cli markdown +create

  • 用户要比较原生 .md 文件的历史版本差异,或比较远端 Markdown 与本地草稿,使用 lark-cli markdown +diff

  • 用户要读取 Drive 里某个 .md 文件内容,使用 lark-cli markdown +fetch

  • 用户要对 Markdown 文件做局部文本替换 / 正则替换,优先使用 lark-cli markdown +patch

  • 用户要覆盖更新 Drive 里某个 .md 文件内容,使用 lark-cli markdown +overwrite

  • 用户要先拿 Markdown 文件的历史版本号,再做比较/下载/回滚,先用 lark-drive 的 lark-cli drive +version-history

  • 用户要把本地 Markdown 导入成在线新版文档(docx),不要用本 skill,改用 lark-drive 的 lark-cli drive +import --type docx

  • 用户要对 Markdown 文件做rename / move / delete / 搜索 / 权限 / 评论等云空间(云盘/云存储)操作,不要留在本 skill,切到 lark-drive

  • markdown +create / +overwrite 命中 missing scope、permission denied、not found、quota_exceeded、version limit 时,默认停止重试并按报错 hint 处理;只有 rate_limit、server_error 或临时网络错误才做有限退避重试。

  • markdown +create 的目标参数不要猜:Drive 文件夹用 --folder-token,Wiki 节点用 --wiki-token。如果用户给的是 URL,可以直接传完整 URL;CLI 会归一成 token。不要把 doc/sheet/wiki URL 放进 --folder-token 试错。

核心边界

  • 本 skill 处理的是 Drive 中作为普通文件存储的 Markdown,不是 docx 文档
  • --name 和本地 --file 文件名都必须显式带 .md 后缀;不满足时 shortcut 会直接报错
  • --content 支持:
    • 直接传字符串
    • @file 从本地文件读取内容
    • - 从 stdin 读取内容
  • markdown +patch 的内部语义是:先完整下载 Markdown,再本地替换,再整文件覆盖上传
  • markdown +patch 不是服务端原子 patch;它是 CLI 侧编排出来的局部更新能力
  • markdown +patch 当前只支持单组 --pattern / --content
  • markdown +patch 替换后的最终内容不能为空;CLI 会拒绝上传空文件,因为 Drive 不支持零字节 Markdown,且空文件通常是误操作
  • --file 只接受本地 .md 文件路径

正则替换时要特别注意 --pattern 的转义:

# BAD: 未转义正则特殊字符,可能匹配到错误位置
lark-cli markdown +patch --file-token boxcnxxxx --regex --pattern "version (1.0)" --content "version (2.0)"

# GOOD: 显式转义括号和点号
lark-cli markdown +patch --file-token boxcnxxxx --regex --pattern "version \\(1\\.0\\)" --content "version (2.0)"

Shortcuts(推荐优先使用)

Shortcut 是对常用操作的高级封装(lark-cli markdown +<verb> [flags])。有 Shortcut 的操作优先使用。

Shortcut说明
+createCreate a Markdown file in Drive
+diffCompare two remote Markdown versions, or compare remote Markdown against a local file
+fetchFetch a Markdown file from Drive
+patchPatch a Markdown file in Drive via fetch-local-replace-overwrite
+overwriteOverwrite an existing Markdown file in Drive

参考

  • lark-shared — 认证和全局参数
  • lark-drive — Drive 文件管理、导入 docx、move/delete/search 等

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Find and process approval requests in 飞书, including approving, rejecting, transferring, or returning them. Review forms and progress, search existing approval forms and workflows, and submit native requests such as leave or expense claims.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Review pending and completed approval requests
  • Approve, reject, or return a request
  • Find an existing form and submit leave or expense claims
larksuite/cli1.8만2026년 10월 16일 업데이트

lark-apps

무료

Build, publish, and manage apps on 妙搭(Spark/Miaoda) through local development or cloud AI sessions. Create page designs, manage data and permissions, inspect logs and usage, and configure automated triggers.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Build and publish a business app
  • Create landing pages and interactive prototypes
  • Inspect production logs and usage
larksuite/cli1.8만2026년 10월 16일 업데이트

Retrieve your own attendance clock records from 飞书 through lark-cli. The skill fills in fixed query parameters and uses read-only attendance access to look up the records you want to check.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking your own attendance clock records
  • Reviewing recorded clock-ins and clock-outs
  • Asking an agent to retrieve attendance records
larksuite/cli1.8만2026년 10월 16일 업데이트

lark-base

무료

Build and manage business tables in Feishu Base, including fields, records, views, and data queries. Create forms and dashboards, configure automated workflows, organize BaseApp pages and components, and manage role-based access permissions.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Create business tables and update records
  • Filter and summarize table data
  • Create information collection forms
larksuite/cli1.8만2026년 10월 16일 업데이트

Manage events, attendees, and meeting rooms in 飞书. Check shared availability, get meeting time suggestions that account for working hours and breaks, and create or update events with room reservations.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Review today's events or search upcoming meetings
  • Find suitable meeting times for several people
  • Book a room with a calendar event
larksuite/cli1.8만2026년 10월 16일 업데이트

Finds Lark contacts by name or email and retrieves open_id, an identifier used in later actions. It also looks up profile details, personal status, and signatures, and searches for bots or agents visible to the current user.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Identifying a colleague before messaging or scheduling
  • Looking up a profile from a known open_id
  • Checking colleagues’ personal status and signatures
larksuite/cli1.8만2026년 10월 16일 업데이트

larksuite의 스킬 모두 보기

이 스킬의 문제 신고