К основному содержанию
скилл CX Codex

lark-cli-router — скилл для Claude Code: что делает и как установить

Скилл lark-cli-router маршрутизирует задачи для Feishu, Lark и Doubao через встроенные руководства утилиты lark-cli. Помогает безопасно вызывать API документов, встреч, задач и чатов.

MIT 210 установок ★ 1 540 обновлён 2026-10-31

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add daymade/claude-code-skills --skill lark-cli-router -a claude-code
Открыть на GitHub

Что делает lark-cli-router

Скилл служит единой точкой входа для работы с экосистемой Lark и Feishu. Вместо хранения устаревших инструкций в системном промпте он находит и загружает актуальные руководства прямо из установленного интерфейса lark-cli. Поддерживаются документы, календарь, вики и поиск записей встреч по датам.

Без установленной утилиты lark-cli в системе скилл работать откажется. Агент сразу проверяет команду lark-cli --version и завершает работу с явной ошибкой при её отсутствии. Для вызовов скрипт выставляет переменную LARK_CLI_NO_PROXY=1, а при разборе структурированного вывода отключает служебные уведомления через флаги нотификаций.

Все опасные операции скилл выполняет осторожно. Для команд записи запрашивается --dry-run, а при возврате кода завершения 10 агент ждёт прямого подтверждения человека и не подставляет флаг --yes сам. Запросы к сервису Tencent IMA здесь не обрабатываются: для них предусмотрен отдельный инструмент.

Какие задачи решает

  • найти запись встречи в Feishu по дате или идентификатору
  • обновить форматирование и ширину таблиц в документе Lark
  • выгрузить историю сообщений и вложений из чата
  • проверить схему параметров API через команду lark-cli schema

Примеры запросов агенту

  • Найди запись встречи в Lark за вчерашний день через lark-cli.
  • Покажи список задач из Feishu и проверь доступные профили.
  • Обнови таблицу в документе Lark, сначала сделай dry-run.

Как установить lark-cli-router

1Через Skills CLI (Vercel)

npx skills add daymade/claude-code-skills --skill lark-cli-router -a claude-code

2Вручную: положить файлы

~/.claude/skills/lark-cli-router/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/lark-cli-router/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о lark-cli-router

Как установить lark-cli-router в Claude Code?

Выполните команду npx skills add daymade/claude-code-skills --skill lark-cli-router -a claude-code. Альтернативный вариант — скопировать конфигурацию в файл ~/.claude/skills/lark-cli-router/SKILL.md.

Что делает скилл lark-cli-router?

Он связывает языковую модель с утилитой lark-cli, динамически подгружая официальные руководства по API Lark и Feishu под конкретную задачу.

Что требуется для работы lark-cli-router?

В системе должен быть установлен бинарный файл lark-cli. Без него агент прервёт выполнение и не станет пытаться обойти утилиту через прямые HTTP-запросы.

Исходный текст

SKILL.md · MIT
---
name: lark-cli-router
description: >-
  Routes any Feishu/Lark/Doubao operation, including recording lookup by date (按日期找会议录音), through the version-matched lark-cli domain guide embedded
  in the installed CLI, then executes and verifies the task. Use for 飞书/Lark/Doubao docs, drive,
  sheets, Base, wiki, minutes, meetings, calendar, IM, mail, tasks, approval, apps, auth/scope,
  resource URLs or tokens, and lark-cli troubleshooting. This is the single Lark entry point; use
  ima-copilot instead for Tencent IMA.
metadata:
  requires:
    bins: ["lark-cli"]
---

# Lark CLI Router

Use this as the only model-visible Lark entry point. The CLI's embedded `lark-*`
guides are the version-synced source of truth; this router selects and loads them
instead of copying their domain instructions into another static catalog.

## Boundaries

- Tencent IMA is a different product. Route IMA notes or knowledge-base tasks to
  `ima-skill`, not here.
- Do not load all Lark guides. Select the smallest matching guide set for the
  current task.
- Do not bypass `lark-cli` with browser automation, raw `curl`, or guessed API
  contracts while the CLI or one of its embedded guides covers the task.

## Find an existing recording by date

When Feishu is the known source and the request is to find an existing recording
by date, read [recording lookup](references/recording-lookup.md) before searching.
Use its bounded candidate helper with explicit authorized profiles; do not start
ingest, gap audit or ASR for a playback-link lookup. Preserve a supplied minute
token or meeting ID and use the embedded guide's direct lookup instead.

## Preserve document layout

When updating a document with manual formatting, changing table widths, or
investigating full-width reading, read [document layout](references/document-layout.md)
before planning a write. Keep command syntax in the selected embedded Doc guide.

## Workflow

### 1. Confirm the runtime

Run `lark-cli --version`. If the binary is absent, fail visibly and report that
`lark-cli` is required; do not invent another transport or confuse the separate
Skill-install command with a CLI-binary installer.

Set `LARK_CLI_NO_PROXY=1` for every invocation in this environment. When stable
machine-readable JSON is needed, also set
`LARKSUITE_CLI_NO_UPDATE_NOTIFIER=1` and
`LARKSUITE_CLI_NO_SKILLS_NOTIFIER=1` so notices do not pollute the result.

### 2. Select the embedded guide

Run `lark-cli skills list --json`. Match the user's intent and any URL path or
token to the returned `name`, `description`, and `metadata.cliHelp`.

Do not derive the CLI domain by stripping `lark-` from the guide name: exceptions
exist, and `metadata.cliHelp` or the guide itself is authoritative.

Select the guide from the live descriptions. A compatibility guide that delegates
to another Skill is for an explicitly requested legacy name; load its canonical
owner for the task. For a multi-domain request, select a workflow guide or a small
ordered set of domain guides from those descriptions.

### 3. Load the selected instructions completely

Read the selected guide before acting:

```bash
lark-cli skills read lark-doc
lark-cli skills read lark-doc/references/lark-doc-fetch.md
```

The first form prints the guide's `SKILL.md`; the second reads a referenced file.
Read every file the selected guide marks required for the current branch.

Embedded reads reject `..`. Rebase a sibling pointer such as
`../lark-whiteboard/references/x.md` to:

```bash
lark-cli skills read lark-whiteboard/references/x.md
```

Always try `lark-cli skills read` first for Markdown and reference files. If it
returns `reference ... not found`, resolve that exact guide-relative path under
`~/.agents/skills/<guide-name>/`. Before the first such fallback for a guide,
confirm with the host's SHA-256 tool that its installed `SKILL.md` is byte-identical
to `lark-cli skills read <guide-name>`; a mismatch must fail visibly and trigger a
bundle refresh. This explicitly keeps `lark-apps/creative-design/` reachable even
though the current binary does not embed it.

Machine resources under `scripts/` or `assets/` are never embedded, so resolve
them directly in the same installed bundle. If a required file is absent, stop
and report that the disk bundle must be installed or refreshed; do not fabricate
a replacement.

### 4. Inspect, execute, and verify

1. Treat `metadata.cliHelp` as a help recipe, not always a literal command. Run its
   concrete commands; resolve any placeholder from the loaded guide first. If the
   field is absent, use the guide's own commands or the selected domain's `--help`.
2. Prefer a matching `+shortcut`; otherwise use a typed resource command.
3. Before a typed call whose parameters are not already explicit in the guide,
   run `lark-cli schema <service.resource.method>`.
4. Use `lark-cli api` only as the documented escape hatch when no shortcut or
   typed command covers the endpoint.
5. Preserve any explicitly supplied `--profile`; never guess a profile or identity.
   Use `lark-cli whoami` when identity is material or ambiguous.
   Before a read through another existing profile, confirm that it belongs to the
   requesting user and that the profile/read is already authorized. Keep
   `--profile` explicit; do not switch the global profile or enumerate unrelated
   accounts. If ownership is unknown, skip that candidate and report the gap.
   Different app-specific openIds alone do not establish different people.
6. For writes, use `--dry-run` when the command supports a useful preview. If a
   high-risk write exits `10`, present the proposed action and wait for explicit
   human confirmation; never append `--yes` automatically.
7. Separate transport completion from business success. Process exit `0` alone
   does not prove the requested result; for JSON output, inspect `ok` and errors
   as well. Outer `ok == true` does not prove each item succeeded. Do not test for
   a top-level `code == 0`; interpret domain results using the loaded guide.
   For an authorized conversation archive that includes linked materials, derive
   the requested set from every captured root and complete thread-reply page,
   including nested auto-expanded replies; load the current `lark-im` message-list,
   thread-list and enrichment references to interpret pagination and reply errors.
   Extract links and attachment identities from that union of raw message content,
   retaining parent relationships; unfinished pages, omitted replies, recalled
   content and denied resources remain explicit gaps and `partial`, while an
   overview-only request keeps its narrower scope.
   For batches, reconcile each requested resource identity with its returned
   item, error and expected result/artifact. Identify missing, duplicate and
   unrequested items; a duplicate never fills a missing request. Count verified
   successes, explicit failures and missing/unknown results against the request
   total, counting each requested identity at most once; report anomalies
   separately, and report `partial` whenever any requested result is not verified.
   For example, three requested items with one verified
   result, one permission error and one missing item are `partial: 1/3 successful,
   1 failed, 1 missing`, even with exit `0` and outer `ok == true`.
8. After a write, follow the selected guide's domain-specific verification
   contract. If it defines none, perform the narrowest independent read that proves
   the requested state changed. A guide that explicitly forbids an opportunistic
   second query takes precedence. Report partial results or missing coverage.

On authentication or permission errors, load `lark-shared` and its embedded
`lark-shared/references/lark-shared-identity-and-permissions.md`. Follow its
user/bot and missing-scope branch, and interpret the current CLI's auth status:

```bash
lark-cli --profile "<authorized-profile>" auth status --json
```

When completing an agent-initiated device flow, inspect the exit status and the
granted and missing scopes as well as the success text. If a nonzero exit and
success text coexist, do not restart the flow or declare success from the text
alone. Read `auth status`, then perform the narrowest real read in the selected
business domain with the explicit profile and `--as user`. Keep unrelated
missing scopes visible as separate limitations; follow the domain guide to
decide whether the required read actually works.

Do not classify `needs_refresh` as unusable login. When the status says it will
auto-refresh on the next user API call, an already-authorized ordinary read may
proceed with explicit `--profile` and `--as user`; let the CLI renew normally.
Do not initiate login, new grants/scopes or manual credential writes merely to
handle that state. A ready token still does not prove target read permission.

Scope an actual target read-permission denial to its target/profile/identity and
stop that route. Do not turn authentication failures or that refusal into retry
loops or browser/raw-API fallbacks.
It does not prove that every other already-authorized profile of the requesting
user is denied. Assess another profile only after the ownership/authorization
check above, and verify its own target result rather than assuming access.

© daymade · MIT · daymade/claude-code-skills

Похожие скиллы

Все скиллы по теме «Заметки, задачи и проекты» →
mcp-lark aahl Скилл подключает агента к MCP-серверу FeiShu (Lark) и даёт управлять чатами, письмами, документами, таблицами, задачами и календарями. CX Codex +1 2 800установок lark-event larksuite Скилл lark-event для Claude Code запускает подписку на события Lark и передаёт их потоком NDJSON. Он включается для обработки сообщений, изменений задач и других событий в реальном времени. CX Codex +1 484 000установок feishu-lark OpenClaudia Скилл feishu-lark для Claude Code и Codex — отправляет текстовые и интерактивные карточки в Feishu и Lark через вебхуки или Bot API. Работает также с Cursor, GitHub Copilot, Gemini CLI и OpenCode. CX Codex +1 1 600установок feishu2codex Codex Lark contributors Плагин feishu2codex для Claude Code подключает Feishu и Lark к рабочим процессам через официальный CLI. Он запускает настройку и авторизацию перед работой с данными. CX Codex ★ 1 596звёзд репо lark-im larksuite Подключает Lark IM: отправляет сообщения, ищет историю, управляет чатами и файлами. Выполняет задачи командных коммуникаций. CX Codex +1 490 400установок feishu-user-plugin EthanQC MCP-сервер feishu-user-plugin и CLI для Feishu/Lark: 85 инструментов, три слоя авторизации, отправка сообщений от имени пользователя через cookie и protobuf. CX Codex +1 ★ 12звёзд репо

Из того же набора102

Весь набор →
prior-work-retrieval Скилл prior-work-retrieval для Claude Code находит и проверяет уже существующие наработки в проекте до написания нового кода. Запускается по прямому запросу о повторном использовании. CX Codex +1 218установок continue-claude-code-work Скилл continue-claude-code-work возвращает прерванную работу Claude Code по истории сессии: восстанавливает цель, незавершённые запросы и следующий шаг. CX Codex +1 216установок interaction-design-board Скилл interaction-design-board собирает несколько кликабельных HTML-прототипов одного интерфейса в Design Board, где можно выбрать вариант или попросить ремикс до того, как агент изменит продакшен-код. CX Codex +1 213установок codex-1m-context-window-setup Скилл codex-1m-context-window-setup для Codex настраивает и проверяет окно контекста, включая автоуплотнение и расширение до 500K или 1M. Помогает диагностировать лимиты модели. CX Codex +1 211установок excalidraw-use Скилл excalidraw-use раскладывает готовые картинки по сцене Excalidraw ровной сеткой, снимает слайды Vite-деки в отдельные изображения и читает .excalidraw на битые картинки. CX Codex +1 187установок meme-creator Скилл meme-creator для Claude Code накладывает логотипы, аватары и стикеры на движущиеся объекты в видео и сохраняет результат в MP4 и GIF. Создаёт мемы и реакции из видеоклипов. CX Codex +1 174установок agent-web-search-setup Скилл agent-web-search-setup для Claude Code и других платформ диагностирует и чинит веб-поиск на моделях через прокси и реселлеров. CX Codex +1 162установок macos-permissions Скилл macos-permissions для Claude Code находит причины сбоев TCC, сетевых алертов и зависших окон Keychain. Помогает при бесконечных диалогах и падении фоновых LaunchAgent. CX Codex +1 152установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой